sdn-pros / level5-ansible-cvp

Ansible with CV lab of the Level 5 Lab Guide.
6 stars 16 forks source link

playbooks/lab-reset.yml : "Error - the following devices do not exist in CVP ['leaf1-DC1', 'leaf2-DC1', 'leaf3-DC1', 'leaf4-DC1', #3

Open dharmbhai opened 1 year ago

dharmbhai commented 1 year ago

As of this post, 15Feb2023, ATD has changed the names on the Dual DC topology from whats mentioned in the playbook lab-reset.yml

➜  level5-ansible-cvp git:(main) ✗ ansible-playbook playbooks/lab-reset.yml

PLAY [Assign configlets to devices (via group_vars/CVP.yml)] *****************************************************************************************************************************************

TASK [Build default container topology] **************************************************************************************************************************************************************
changed: [CloudVision]

TASK [Apply configlets for default config] ***********************************************************************************************************************************************************
fatal: [CloudVision]: FAILED! => {"changed": false, "msg": "Error - the following devices do not exist in CVP ['leaf1-DC1', 'leaf2-DC1', 'leaf3-DC1', 'leaf4-DC1', 'borderleaf1-DC1', 'borderleaf2-DC1', 'spine1-DC1', 'spine2-DC1', 'spine3-DC1', 'leaf1-DC2', 'leaf2-DC2', 'leaf3-DC2', 'leaf4-DC2', 'borderleaf1-DC2', 'borderleaf2-DC2', 'spine1-DC2', 'spine2-DC2', 'spine3-DC2', 'DCI'] but are defined in the playbook.                 \nMake sure that the devices are provisioned and defined with the full fqdn name                 (including the domain name) if needed."}

PLAY RECAP *******************************************************************************************************************************************************************************************
CloudVision                : ok=1    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

➜  level5-ansible-cvp git:(main) ✗ 
dharmbhai commented 1 year ago

FIx : Change the inventory.in in main and vars/CVP-base.yml to change the hostnames everywhere !!!!!