NTC Public Repository for sharing misc items.
networktocode / ntc-misc Goto Github PK
View Code? Open in Web Editor NEWGeneral repository used for sharing misc one-off projects
General repository used for sharing misc one-off projects
NTC Public Repository for sharing misc items.
Update the code sample to use CHANGEME
for the tenant name and not js_10018
ntc-misc/cisco/ansible-aci/inventory
Line 4 in f378066
Looks like a copy/paste issue from one text editor to another... the closing quote on the ansible interpreter is wrong.
When running the full config playbook it is failing at this task:
TASK [TASK 06 - ENSURE FILTERS HAVE FILTER ENTRIES] ***************************************************************************************************
failed: [sandboxapicdc.cisco.com] (item={u'filter': u'https', u'entry': u'https', u'protocol': u'tcp', u'port': u'443'}) => {"changed": false, "failed": true, "item": {"entry": "https", "filter": "https", "port": "443", "protocol": "tcp"}, "msg": "Unsupported parameters for (aci_filter_entry) module: dest_port_end,dest_port_start Supported parameters include: arp_flag,description,dst_port,dst_port_end,dst_port_start,entry,ether_type,filter,hostname,icmp6_msg_type,icmp_msg_type,ip_protocol,password,protocol,state,stateful,tenant,timeout,use_proxy,use_ssl,username,validate_certs"}
failed: [sandboxapicdc.cisco.com] (item={u'filter': u'sql', u'entry': u'sql', u'protocol': u'tcp', u'port': u'1433'}) => {"changed": false, "failed": true, "item": {"entry": "sql", "filter": "sql", "port": "1433", "protocol": "tcp"}, "msg": "Unsupported parameters for (aci_filter_entry) module: dest_port_end,dest_port_start Supported parameters include: arp_flag,description,dst_port,dst_port_end,dst_port_start,entry,ether_type,filter,hostname,icmp6_msg_type,icmp_msg_type,ip_protocol,password,protocol,state,stateful,tenant,timeout,use_proxy,use_ssl,username,validate_certs"}
to retry, use: --limit @/Users/hapresto/coding/ntc-misc/cisco/ansible-aci/05_aci_deploy_app.retry
I was taking another look and noticed the path for the code samples wasn't updated to match the move from sbx_nxos/yang
-> sbx_nxos/learning_labs/yang
in the instructions. This will need to be fixed across all three labs.
This maybe a module bug more than a lab bug, but wanted to flag here for reference. Getting the below when running this playbook using Python 3.6.2 on both Mac and Ubuntu. Running with Python 2.7.13 works.
TASK [ENSURE TENANT BRIDGE DOMAIN EXISTS] *************************************************************************************************************
task path: /Users/hapresto/coding/ntc-misc/cisco/ansible-aci/02_aci_tenant_network_pb.yml:23
Using module file /Users/hapresto/coding/ntc-misc/cisco/ansible-aci/venv/lib/python3.6/site-packages/ansible/modules/network/aci/aci_bd.py
<sandboxapicdc.cisco.com> ESTABLISH LOCAL CONNECTION FOR USER: hapresto
<sandboxapicdc.cisco.com> EXEC /bin/sh -c 'echo ~ && sleep 0'
<sandboxapicdc.cisco.com> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/hapresto/.ansible/tmp/ansible-tmp-1505916329.651716-16063377934995 `" && echo ansible-tmp-1505916329.651716-16063377934995="` echo /Users/hapresto/.ansible/tmp/ansible-tmp-1505916329.651716-16063377934995 `" ) && sleep 0'
<sandboxapicdc.cisco.com> PUT /var/folders/dh/t0frtgx514388l6ycj2bl7740000gn/T/tmpfv51fh1m TO /Users/hapresto/.ansible/tmp/ansible-tmp-1505916329.651716-16063377934995/aci_bd.py
<sandboxapicdc.cisco.com> EXEC /bin/sh -c 'chmod u+x /Users/hapresto/.ansible/tmp/ansible-tmp-1505916329.651716-16063377934995/ /Users/hapresto/.ansible/tmp/ansible-tmp-1505916329.651716-16063377934995/aci_bd.py && sleep 0'
<sandboxapicdc.cisco.com> EXEC /bin/sh -c '/usr/bin/env python /Users/hapresto/.ansible/tmp/ansible-tmp-1505916329.651716-16063377934995/aci_bd.py; rm -rf "/Users/hapresto/.ansible/tmp/ansible-tmp-1505916329.651716-16063377934995/" > /dev/null 2>&1 && sleep 0'
The full traceback is:
Traceback (most recent call last):
File "/var/folders/dh/t0frtgx514388l6ycj2bl7740000gn/T/ansible_3iknkomf/ansible_module_aci_bd.py", line 324, in <module>
main()
File "/var/folders/dh/t0frtgx514388l6ycj2bl7740000gn/T/ansible_3iknkomf/ansible_module_aci_bd.py", line 307, in main
{'fvRsBdToEpRet': {'attributes': {'resolveAct': endpoint_retention_action, 'tnFvEpRetPolName': endpoint_retention_policy}}},
File "/var/folders/dh/t0frtgx514388l6ycj2bl7740000gn/T/ansible_3iknkomf/ansible_modlib.zip/ansible/module_utils/aci.py", line 721, in payload
RuntimeError: dictionary changed size during iteration
fatal: [sandboxapicdc.cisco.com]: FAILED! => {
"changed": false,
"failed": true,
"module_stderr": "Traceback (most recent call last):\n File \"/var/folders/dh/t0frtgx514388l6ycj2bl7740000gn/T/ansible_3iknkomf/ansible_module_aci_bd.py\", line 324, in <module>\n main()\n File \"/var/folders/dh/t0frtgx514388l6ycj2bl7740000gn/T/ansible_3iknkomf/ansible_module_aci_bd.py\", line 307, in main\n {'fvRsBdToEpRet': {'attributes': {'resolveAct': endpoint_retention_action, 'tnFvEpRetPolName': endpoint_retention_policy}}},\n File \"/var/folders/dh/t0frtgx514388l6ycj2bl7740000gn/T/ansible_3iknkomf/ansible_modlib.zip/ansible/module_utils/aci.py\", line 721, in payload\nRuntimeError: dictionary changed size during iteration\n",
"module_stdout": "",
"msg": "MODULE FAILURE",
"rc": 0
}
to retry, use: --limit @/Users/hapresto/coding/ntc-misc/cisco/ansible-aci/02_aci_tenant_network_pb.retry
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.