Created
April 24, 2021 01:27
-
-
Save dsx1123/153690db572ff4fff9e3ed52ace027e9 to your computer and use it in GitHub Desktop.
border_gateway is not valid role
This file contains 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
ansible-playbook 2.10.5 | |
config file = /root/.ansible.cfg | |
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /root/virtualenv/ansible/lib/python3.7/site-packages/ansible | |
executable location = /root/virtualenv/ansible/bin/ansible-playbook | |
python version = 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.3.0] | |
Using /root/.ansible.cfg as config file | |
host_list declined parsing /root/workspace/ansible/dcnm/inventory/dcnm_cylon/host as it did not pass its verify_file() method | |
script declined parsing /root/workspace/ansible/dcnm/inventory/dcnm_cylon/host as it did not pass its verify_file() method | |
auto declined parsing /root/workspace/ansible/dcnm/inventory/dcnm_cylon/host as it did not pass its verify_file() method | |
Parsed /root/workspace/ansible/dcnm/inventory/dcnm_cylon/host inventory source with ini plugin | |
redirecting (type: action) cisco.dcnm.dcnm_inventory to cisco.dcnm.dcnm | |
redirecting (type: action) cisco.dcnm.dcnm_inventory to cisco.dcnm.dcnm | |
redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks | |
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: dcnm_lab109.yml ************************************************************************************************************************************************************************************************************************ | |
1 plays in dcnm_lab109.yml | |
PLAY [add switches to fabric] ******************************************************************************************************************************************************************************************************************** | |
META: ran handlers | |
redirecting (type: action) cisco.dcnm.dcnm_inventory to cisco.dcnm.dcnm | |
TASK [add switches to fabric] ******************************************************************************************************************************************************************************************************************** | |
task path: /root/workspace/ansible/dcnm/dcnm_lab109.yml:8 | |
Friday 23 April 2021 17:17:10 -0700 (0:00:00.048) 0:00:00.048 ********** | |
redirecting (type: connection) ansible.builtin.httpapi to ansible.netcommon.httpapi | |
redirecting (type: action) cisco.dcnm.dcnm_inventory to cisco.dcnm.dcnm | |
<172.25.74.53> ESTABLISH LOCAL CONNECTION FOR USER: root | |
<172.25.74.53> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-local-27189rosvgags `"&& mkdir "` echo /root/.ansible/tmp/ansible-local-27189rosvgags/ansible-tmp-1619223431.9364092-27194-240971359313378 `" && echo ansible-tmp-1619223431.9364092-27194-240971359313378="` echo /root/.ansible/tmp/ansible-local-27189rosvgags/ansible-tmp-1619223431.9364092-27194-240971359313378 `" ) && sleep 0' | |
<172.25.74.53> Attempting python interpreter discovery | |
<172.25.74.53> EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0' | |
<172.25.74.53> EXEC /bin/sh -c '/usr/bin/python && sleep 0' | |
Using module file /root/.ansible/collections/ansible_collections/cisco/dcnm/plugins/modules/dcnm_inventory.py | |
<172.25.74.53> PUT /root/.ansible/tmp/ansible-local-27189rosvgags/tmpkyifgr98 TO /root/.ansible/tmp/ansible-local-27189rosvgags/ansible-tmp-1619223431.9364092-27194-240971359313378/AnsiballZ_dcnm_inventory.py | |
<172.25.74.53> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-local-27189rosvgags/ansible-tmp-1619223431.9364092-27194-240971359313378/ /root/.ansible/tmp/ansible-local-27189rosvgags/ansible-tmp-1619223431.9364092-27194-240971359313378/AnsiballZ_dcnm_inventory.py && sleep 0' | |
<172.25.74.53> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-local-27189rosvgags/ansible-tmp-1619223431.9364092-27194-240971359313378/AnsiballZ_dcnm_inventory.py && sleep 0' | |
<172.25.74.53> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-27189rosvgags/ansible-tmp-1619223431.9364092-27194-240971359313378/ > /dev/null 2>&1 && sleep 0' | |
fatal: [172.25.74.53]: FAILED! => { | |
"ansible_facts": { | |
"discovered_interpreter_python": "/usr/bin/python3" | |
}, | |
"changed": false, | |
"invocation": { | |
"module_args": { | |
"config": [ | |
{ | |
"auth_proto": "MD5", | |
"max_hops": 0, | |
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", | |
"preserve_config": false, | |
"role": "leaf", | |
"seed_ip": "172.31.219.7", | |
"user_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER" | |
}, | |
{ | |
"max_hops": 0, | |
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", | |
"preserve_config": false, | |
"role": "leaf", | |
"seed_ip": "172.31.217.102", | |
"user_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER" | |
}, | |
{ | |
"auth_proto": "MD5", | |
"max_hops": 0, | |
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", | |
"preserve_config": false, | |
"role": "spine", | |
"seed_ip": "172.31.186.153", | |
"user_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER" | |
}, | |
{ | |
"max_hops": 0, | |
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", | |
"preserve_config": false, | |
"role": "border_gateway", | |
"seed_ip": "172.31.186.152", | |
"user_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER" | |
} | |
], | |
"fabric": "lab109-fabric-1", | |
"state": "merged" | |
} | |
}, | |
"msg": { | |
"DATA": "Invalid JSON response: Role[border_gateway]is not a valid role", | |
"MESSAGE": "Bad Request", | |
"METHOD": "PUT", | |
"REQUEST_PATH": "https://172.25.74.53:443/fm/fmrest/topology/role/459550?newRole=border_gateway", | |
"RETURN_CODE": 400 | |
} | |
} | |
PLAY RECAP *************************************************************************************************************************************************************************************************************************************** | |
172.25.74.53 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 | |
Friday 23 April 2021 17:29:52 -0700 (0:12:42.661) 0:12:42.710 ********** | |
=============================================================================== | |
add switches to fabric ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 762.66s | |
/root/workspace/ansible/dcnm/dcnm_lab109.yml:8 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment