Last active
May 2, 2022 21:32
-
-
Save allenrobel/c8b7762524d39a4f2c5638cc093fa30a to your computer and use it in GitHub Desktop.
Debug Output: dcnm_vrf - Omission of Loopback Routing Tag during VRF creation causes later issue when editing VRF in NDFC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(py310) foobar % ansible-playbook -vvv example_ndfc_vrf_replaced.yml --ask-vault-pass -i inventory | |
ansible-playbook [core 2.12.4] | |
config file = /Users/foobar/tmp_ndfc/ndfc-roles/ansible.cfg | |
configured module search path = ['/Users/foobar/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /Users/foobar/py310/lib/python3.10/site-packages/ansible | |
ansible collection location = /Users/foobar/.ansible/collections:/usr/share/ansible/collections | |
executable location = /Users/foobar/py310/bin/ansible-playbook | |
python version = 3.10.3 (v3.10.3:a342a49189, Mar 16 2022, 09:34:18) [Clang 13.0.0 (clang-1300.0.29.30)] | |
jinja version = 3.0.3 | |
libyaml = True | |
Using /Users/foobar/tmp_ndfc/ndfc-roles/ansible.cfg as config file | |
Vault password: | |
host_list declined parsing /Users/foobar/tmp_ndfc/ndfc-roles/inventory/hosts/hosts as it did not pass its verify_file() method | |
script declined parsing /Users/foobar/tmp_ndfc/ndfc-roles/inventory/hosts/hosts as it did not pass its verify_file() method | |
auto declined parsing /Users/foobar/tmp_ndfc/ndfc-roles/inventory/hosts/hosts as it did not pass its verify_file() method | |
Parsed /Users/foobar/tmp_ndfc/ndfc-roles/inventory/hosts/hosts inventory source with yaml plugin | |
Skipping callback 'default', as we already have a stdout callback. | |
Skipping callback 'minimal', as we already have a stdout callback. | |
Skipping callback 'oneline', as we already have a stdout callback. | |
PLAYBOOK: example_ndfc_vrf_replaced.yml ********************************************************************************************************************************* | |
1 plays in example_ndfc_vrf_replaced.yml | |
PLAY [ndfc] ************************************************************************************************************************************************************* | |
META: ran handlers | |
META: | |
TASK [ndfc_vrf_replaced : Update / Add VRFS] **************************************************************************************************************************** | |
task path: /Users/foobar/tmp_ndfc/ndfc-roles/roles/ndfc_vrf_replaced/tasks/main.yml:3 | |
redirecting (type: filter) ansible.builtin.json_query to community.general.json_query | |
redirecting (type: filter) ansible.builtin.json_query to community.general.json_query | |
redirecting (type: filter) ansible.builtin.json_query to community.general.json_query | |
redirecting (type: filter) ansible.builtin.json_query to community.general.json_query | |
[WARNING]: Collection cisco.dcnm does not support Ansible version 2.12.4 | |
included: /Users/foobar/tmp_ndfc/ndfc-roles/roles/ndfc_vrf_replaced/tasks/worker.yml for ndfc1 => (item={'fabric': 'f1', 'vrf_name': 'v1', 'vrf_id': 9003031, 'vlan_id': 3031, 'vrf_template': 'Default_VRF_Universal', 'vrf_extension_template': 'Default_VRF_Extension_Universal', 'service_vrf_template': None, 'attach': [{'ip_address': '1.2.3.102'}, {'ip_address': '1.2.3.103'}, {'ip_address': '1.2.3.104'}, {'ip_address': '1.2.3.105'}]}) | |
TASK [ndfc_vrf_replaced : replaced FABRIC f1 VRF v1 VLAN 3031] ********************************************************************************************************** | |
task path: /Users/foobar/tmp_ndfc/ndfc-roles/roles/ndfc_vrf_replaced/tasks/worker.yml:2 | |
<4.5.6.7> ESTABLISH LOCAL CONNECTION FOR USER: foobar | |
<4.5.6.7> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/foobar/.ansible/tmp/ansible-local-82936o77mb8t1 `"&& mkdir "` echo /Users/foobar/.ansible/tmp/ansible-local-82936o77mb8t1/ansible-tmp-1651525373.174264-82944-66905364492 `" && echo ansible-tmp-1651525373.174264-82944-66905364492="` echo /Users/foobar/.ansible/tmp/ansible-local-82936o77mb8t1/ansible-tmp-1651525373.174264-82944-66905364492 `" ) && sleep 0' | |
Using module file /Users/foobar/.ansible/collections/ansible_collections/cisco/dcnm/plugins/modules/dcnm_vrf.py | |
<4.5.6.7> PUT /Users/foobar/.ansible/tmp/ansible-local-82936o77mb8t1/tmpyjeuph3o TO /Users/foobar/.ansible/tmp/ansible-local-82936o77mb8t1/ansible-tmp-1651525373.174264-82944-66905364492/AnsiballZ_dcnm_vrf.py | |
<4.5.6.7> EXEC /bin/sh -c 'chmod u+x /Users/foobar/.ansible/tmp/ansible-local-82936o77mb8t1/ansible-tmp-1651525373.174264-82944-66905364492/ /Users/foobar/.ansible/tmp/ansible-local-82936o77mb8t1/ansible-tmp-1651525373.174264-82944-66905364492/AnsiballZ_dcnm_vrf.py && sleep 0' | |
<4.5.6.7> EXEC /bin/sh -c '/Users/foobar/py310/bin/python3 /Users/foobar/.ansible/tmp/ansible-local-82936o77mb8t1/ansible-tmp-1651525373.174264-82944-66905364492/AnsiballZ_dcnm_vrf.py && sleep 0' | |
<4.5.6.7> EXEC /bin/sh -c 'rm -f -r /Users/foobar/.ansible/tmp/ansible-local-82936o77mb8t1/ansible-tmp-1651525373.174264-82944-66905364492/ > /dev/null 2>&1 && sleep 0' | |
changed: [ndfc1] => { | |
"changed": true, | |
"diff": [ | |
{ | |
"attach": [ | |
{ | |
"deploy": true, | |
"ip_address": "1.2.3.102", | |
"vlan_id": 3031 | |
}, | |
{ | |
"deploy": true, | |
"ip_address": "1.2.3.103", | |
"vlan_id": 3031 | |
}, | |
{ | |
"deploy": true, | |
"ip_address": "1.2.3.104", | |
"vlan_id": 3031 | |
}, | |
{ | |
"deploy": true, | |
"ip_address": "1.2.3.105", | |
"vlan_id": 3031 | |
} | |
], | |
"service_vrf_template": null, | |
"source": null, | |
"vrf_extension_template": "Default_VRF_Extension_Universal", | |
"vrf_id": 9003031, | |
"vrf_name": "v1", | |
"vrf_template": "Default_VRF_Universal" | |
} | |
], | |
"invocation": { | |
"module_args": { | |
"config": [ | |
{ | |
"attach": [ | |
{ | |
"ip_address": "1.2.3.102" | |
}, | |
{ | |
"ip_address": "1.2.3.103" | |
}, | |
{ | |
"ip_address": "1.2.3.104" | |
}, | |
{ | |
"ip_address": "1.2.3.105" | |
} | |
], | |
"service_vrf_template": null, | |
"vlan_id": "3031", | |
"vrf_extension_template": "Default_VRF_Extension_Universal", | |
"vrf_id": "9003031", | |
"vrf_name": "v1", | |
"vrf_template": "Default_VRF_Universal" | |
} | |
], | |
"fabric": "f1", | |
"state": "replaced" | |
} | |
}, | |
"response": [ | |
{ | |
"DATA": {}, | |
"MESSAGE": "OK", | |
"METHOD": "POST", | |
"REQUEST_PATH": "https://4.5.6.7:443/appcenter/cisco/ndfc/v1/lan-fabric/rest/top-down/fabrics/f1/vrfs", | |
"RETURN_CODE": 200 | |
}, | |
{ | |
"DATA": { | |
"v1-[FDO21120U5D/cvd_1311_leaf]-[FDO211218GC/cvd_1312_leaf]": "SUCCESS Peer attach Reponse : SUCCESS", | |
"v1-[FDO211218HH/cvd-1313-leaf]-[FDO211218FV/cvd-1314-leaf]": "SUCCESS Peer attach Reponse : SUCCESS" | |
}, | |
"MESSAGE": "OK", | |
"METHOD": "POST", | |
"REQUEST_PATH": "https://4.5.6.7:443/appcenter/cisco/ndfc/v1/lan-fabric/rest/top-down/fabrics/f1/vrfs/attachments", | |
"RETURN_CODE": 200 | |
}, | |
{ | |
"DATA": { | |
"status": "" | |
}, | |
"MESSAGE": "OK", | |
"METHOD": "POST", | |
"REQUEST_PATH": "https://4.5.6.7:443/appcenter/cisco/ndfc/v1/lan-fabric/rest/top-down/fabrics/f1/vrfs/deployments", | |
"RETURN_CODE": 200 | |
} | |
] | |
} | |
META: role_complete for ndfc1 | |
META: ran handlers | |
META: ran handlers | |
PLAY RECAP ************************************************************************************************************************************************************** | |
ndfc1 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 | |
(py310) foobar % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment