12-23-2020 05:00 AM - edited 12-23-2020 05:01 AM
Good morning,
I´m interested in learning about ansible usage for automating some network deployments. For this reason, I´m trying to use Sandbox for my first Ansible Learning Labs, but I´m getting the error below when executing the first one from my local CentOS machine:
(venv) [root@localhost intro_module]# ansible-playbook -i inventory 01_aci_tenant_pb.yml
What would you like to name your Tenant?: test
PLAY [ENSURE APPLICATION CONFIGURATION EXISTS] *********************************
TASK [ENSURE APPLICATIONS TENANT EXISTS] ***************************************
fatal: [sandboxapicdc.cisco.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host sandboxapicdc.cisco.com port 22: Connection timed out", "unreachable": true}
PLAY RECAP *********************************************************************
sandboxapicdc.cisco.com : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
I also tried to create a tennant or an EPG using the web Sandbox interface (I got to do it some weeks before), but I´m getting an error that sounds similar:
Error: 400 - the messaging layer was unable to deliver the stimulus (connection error, Connection refused) |
My question is: ¿Is it only happening to me or is it something wrong with Sandbox Environment?
Thanks in advance and merry christmas
12-24-2020 07:09 AM
I dont think you SSH to the always-on sandbox "sanboxapicdc.cisco.com" and Ansible is failing to connect on port 22.
Either test with a revered sandbox or try the REST API for always-on.
If you getting an error on the GUI - sometimes you can get an error due to the sandbox environment and load. But that gets fixed pretty quickly.
If you need a more reliable lab .. use a revered lab instead of on always-on
12-28-2020 06:05 AM
Could you please let me know which learning lab you are following? In my understanding, there is only HTTPS access available. against host sandboxapicdc.cisco.com, not for SSH.
12-30-2020 01:42 PM
I checked mgmnt setting on sandbox, it is set to allow SSH, see pic:
12-30-2020 02:40 PM - edited 12-30-2020 02:47 PM
You cannot SSH to sandboxapicdc.cisco.com sandbox. Even if its allowed on the APIC.. there must be a firewall sitting in front of these sandboxes ..
Nmap scan report for sandboxapicdc.cisco.com (64.103.37.54)
Host is up (0.065s latency).
Not shown: 998 filtered ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide