Skip to content

Instantly share code, notes, and snippets.

@AJNOURI
Last active December 27, 2019 19:25
Show Gist options
  • Save AJNOURI/8f143197eda0400dbb5306103146e347 to your computer and use it in GitHub Desktop.
Save AJNOURI/8f143197eda0400dbb5306103146e347 to your computer and use it in GitHub Desktop.
playbook.container.issue.task.test
ansible-playbook 2.9.2
config file = /scripts/ansible.cfg
configured module search path = [u'/plugins/modules', u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']ansible-playbook 2.9.2
config file = /scripts/ansible.cfg
configured module search path = [u'/plugins/modules', u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.15 (default, Jan 31 2019, 00:15:21) [GCC 6.3.0]
Using /scripts/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /scripts/inventory.ini as it did not pass its verify_file() method
script declined parsing /scripts/inventory.ini as it did not pass its verify_file() method
auto declined parsing /scripts/inventory.ini as it did not pass its verify_file() method
yaml declined parsing /scripts/inventory.ini as it did not pass its verify_file() method
Not replacing invalid character(s) "set([u'2'])" in group name (2019)
Not replacing invalid character(s) "set([u'2'])" in group name (2019)
Not replacing invalid character(s) "set([u'2'])" in group name (2018)
Not replacing invalid character(s) "set([u'2'])" in group name (2018)
Parsed /scripts/inventory.ini inventory source with ini plugin
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc
Loading callback plugin profile_tasks of type aggregate, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/profile_tasks.pyc
PLAYBOOK: playbook.container.issue.task.test.yaml ***********************************************************************************
Positional arguments: playbook.container.issue.task.test.yaml
become_method: sudo
inventory: (u'/scripts/inventory.ini',)
forks: 5
tags: (u'all',)
verbosity: 4
connection: smart
timeout: 10
1 plays in playbook.container.issue.task.test.yaml
PLAY [Playbook to validate and demonstrate cv_container module.] ********************************************************************
META: ran handlers
TASK [Gather CVP facts from cvp_2018] ***********************************************************************************************
task path: /scripts/playbook.container.issue.task.test.yaml:20
Friday 27 December 2019 16:46:58 +0000 (0:00:00.131) 0:00:00.131 *******
<X.X.X.X> attempting to start connection
<X.X.X.X> using connection plugin httpapi
<X.X.X.X> local domain socket does not exist, starting it
<X.X.X.X> control socket path is /root/.ansible/pc/7217ccae99
<X.X.X.X> local domain socket listeners started successfully
<X.X.X.X> loaded API plugin eos from path /usr/local/lib/python2.7/site-packages/ansible/plugins/httpapi/eos.py for network_os eos
<X.X.X.X>
<X.X.X.X> local domain socket path is /root/.ansible/pc/7217ccae99
<X.X.X.X> ESTABLISH LOCAL CONNECTION FOR USER: root
<X.X.X.X> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549 `" && echo ansible-tmp-1577465219.26-5343579707549="` echo /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549 `" ) && sleep 0'
Using module file /usr/share/ansible/collections/ansible_collections/arista/cvp/plugins/modules/cv_facts.py
<X.X.X.X> PUT /root/.ansible/tmp/ansible-local-89fcHxA_/tmpjIhCU5 TO /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549/AnsiballZ_cv_facts.py
<X.X.X.X> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549/ /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549/AnsiballZ_cv_facts.py && sleep 0'
<X.X.X.X> EXEC /bin/sh -c '$(which python) /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549/AnsiballZ_cv_facts.py && sleep 0'
<X.X.X.X> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549/ > /dev/null 2>&1 && sleep 0'
ok: [cvp_2018] => {
"ansible_facts": {
"configlets": [
{
"config": "\ntransceiver qsfp default-mode 4x10G\n!\nhostname eos-1\nno aaa root\n!\nusername username secret sha512 blabla,
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1576771127874,
"devices": [
"eos-1"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_39_537055783782075",
"name": "BASE_101",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Static",
"user": "username",
"visible": true
},
{
"config": "\ntransceiver qsfp default-mode 4x10G\n!\nhostname eos-2\nno aaa root\n!\nusername username secret sha512 blabla,
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1576771196735,
"devices": [
"eos-2"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_40_537124644589943",
"name": "BASE_102",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Static",
"user": "username",
"visible": true
},
{
"config": "\ntransceiver qsfp default-mode 4x10G\n!\nhostname eos-3\nno aaa root\n!\nusername username secret sha512 blabla,
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1576771222953,
"devices": [
"eos-3"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_41_537150863102876",
"name": "BASE_103",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Static",
"user": "username",
"visible": true
},
{
"config": "\ntransceiver qsfp default-mode 4x10G\n!\nhostname eos-4\nno aaa root\n!\nusername username secret sha512 blabla,
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1576771238619,
"devices": [],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_42_537166528873704",
"name": "BASE_104",
"netElementCount": 0,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Static",
"user": "username",
"visible": true
},
{
"config": "",
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1576766856415,
"devices": [
"eos-1",
"eos-2",
"eos-3"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "SYS_TelemetryBuilderV2_532784326021828",
"name": "SYS_TelemetryBuilderV2",
"netElementCount": 3,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Builder",
"user": "cvp system",
"visible": true
},
{
"config": "daemon TerminAttr\n exec /usr/bin/TerminAttr -ingestgrpcurl=X.X.X.X:9910 -taillogs -ingestauth=key,irb -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent\n no shutdown",
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1577377109195,
"devices": [
"eos-1"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_105_4477585198460",
"name": "SYS_TelemetryBuilderV2_X.X.X.101_1",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Generated",
"user": "username",
"visible": true
},
{
"config": "daemon TerminAttr\n exec /usr/bin/TerminAttr -ingestgrpcurl=X.X.X.X:9910 -taillogs -ingestauth=key,irb -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent\n no shutdown",
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1577377153136,
"devices": [
"eos-2"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_116_4521523565219",
"name": "SYS_TelemetryBuilderV2_X.X.X.102_1",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Generated",
"user": "username",
"visible": true
},
{
"config": "daemon TerminAttr\n exec /usr/bin/TerminAttr -ingestgrpcurl=X.X.X.X:9910 -taillogs -ingestauth=key,irb -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent\n no shutdown",
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1577377203122,
"devices": [
"eos-3"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_127_4571511569965",
"name": "SYS_TelemetryBuilderV2_X.X.X.103_1",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Generated",
"user": "username",
"visible": true
}
],
"containers": [
{
"CreatedBy": "cvp system",
"CreatedOn": 1576766856267,
"Key": "root",
"Mode": "expand",
"Name": "Tenant",
"childContainerId": null,
"configlets": [],
"devices": [],
"factoryId": 1,
"id": 21,
"imageBundle": "",
"key": "root",
"name": "Tenant",
"parentId": null,
"parentName": null,
"type": null,
"userId": null
},
{
"CreatedBy": "cvp system",
"CreatedOn": 1576766856310,
"Key": "undefined_container",
"Mode": "expand",
"Name": "Undefined",
"childContainerId": null,
"configlets": [],
"devices": [],
"factoryId": 1,
"id": 21,
"imageBundle": "EOS-4.20.11M",
"key": "undefined_container",
"name": "Undefined",
"parentId": "root",
"parentName": "Tenant",
"type": null,
"userId": null
},
{
"CreatedBy": "username",
"CreatedOn": 1577464936354,
"Key": "container_148_92304739535297",
"Mode": "expand",
"Name": "IPFabric2",
"childContainerId": null,
"configlets": [],
"devices": [
"eos-1",
"eos-2",
"eos-3"
],
"factoryId": 1,
"id": 21,
"imageBundle": "",
"key": "container_148_92304739535297",
"name": "IPFabric2",
"parentId": "root",
"parentName": "Tenant",
"type": null,
"userId": null
},
{
"CreatedBy": "username",
"CreatedOn": 1577199190452,
"Key": "container_587_965118360663787",
"Mode": "expand",
"Name": "IPFabric",
"childContainerId": null,
"configlets": [],
"devices": [],
"factoryId": 1,
"id": 21,
"imageBundle": "",
"key": "container_587_965118360663787",
"name": "IPFabric",
"parentId": "root",
"parentName": "Tenant",
"type": null,
"userId": null
}
],
"cvp_info": {
"appVersion": "Foster_Build_03",
"version": "2018.2.5"
},
"devices": [
{
"architecture": "",
"bootupTimeStamp": 1577360150.452747,
"bootupTimestamp": 1577360150.452747,
"complianceCode": "0000",
"complianceIndication": "",
"containerName": "IPFabric2",
"danzEnabled": false,
"dcaKey": null,
"deviceInfo": "Registered",
"deviceSpecificConfiglets": [
"BASE_103",
"SYS_TelemetryBuilderV2_X.X.X.103_1",
"SYS_TelemetryBuilderV2"
],
"deviceStatus": "Registered",
"domainName": "",
"fqdn": "eos-3",
"hardwareRevision": "",
"hostname": "eos-3",
"imageBundle": "",
"internalBuild": "229b504e-2187-4b11-ad86-426ef2097425",
"internalBuildId": "229b504e-2187-4b11-ad86-426ef2097425",
"internalVersion": "4.21.8M",
"ipAddress": "X.X.X.103",
"isDANZEnabled": false,
"isMLAGEnabled": false,
"key": "50:00:00:15:f4:e8",
"lastSyncUp": 0,
"memFree": 0,
"memTotal": 0,
"mlagEnabled": false,
"modelName": "vEOS",
"name": "eos-3",
"parentContainerId": "container_148_92304739535297",
"parentContainerKey": "container_148_92304739535297",
"parentContainerName": "IPFabric2",
"serialNumber": "8D960DF881A6C4231BB2C16408898F57",
"sslConfigAvailable": false,
"sslEnabledByCVP": false,
"status": "Registered",
"streamingStatus": "inactive",
"systemMacAddress": "50:00:00:15:f4:e8",
"taskIdList": [],
"tempAction": null,
"type": "netelement",
"unAuthorized": false,
"version": "4.21.8M",
"ztpMode": false
},
{
"architecture": "",
"bootupTimeStamp": 1577360146.696762,
"bootupTimestamp": 1577360146.696762,
"complianceCode": "0000",
"complianceIndication": "",
"containerName": "IPFabric2",
"danzEnabled": false,
"dcaKey": null,
"deviceInfo": "Registered",
"deviceSpecificConfiglets": [
"BASE_102",
"SYS_TelemetryBuilderV2_X.X.X.102_1",
"SYS_TelemetryBuilderV2"
],
"deviceStatus": "Registered",
"domainName": "",
"fqdn": "eos-2",
"hardwareRevision": "",
"hostname": "eos-2",
"imageBundle": "",
"internalBuild": "229b504e-2187-4b11-ad86-426ef2097425",
"internalBuildId": "229b504e-2187-4b11-ad86-426ef2097425",
"internalVersion": "4.21.8M",
"ipAddress": "X.X.X.102",
"isDANZEnabled": false,
"isMLAGEnabled": false,
"key": "50:00:00:f6:ad:37",
"lastSyncUp": 0,
"memFree": 0,
"memTotal": 0,
"mlagEnabled": false,
"modelName": "vEOS",
"name": "eos-2",
"parentContainerId": "container_148_92304739535297",
"parentContainerKey": "container_148_92304739535297",
"parentContainerName": "IPFabric2",
"serialNumber": "0F9AF16564BB7C8E024AD15B7E9CBFA3",
"sslConfigAvailable": false,
"sslEnabledByCVP": false,
"status": "Registered",
"streamingStatus": "inactive",
"systemMacAddress": "50:00:00:f6:ad:37",
"taskIdList": [],
"tempAction": null,
"type": "netelement",
"unAuthorized": false,
"version": "4.21.8M",
"ztpMode": false
},
{
"architecture": "",
"bootupTimeStamp": 1577365845.0729728,
"bootupTimestamp": 1577365845.0729728,
"complianceCode": "0000",
"complianceIndication": "",
"containerName": "IPFabric2",
"danzEnabled": false,
"dcaKey": null,
"deviceInfo": "Registered",
"deviceSpecificConfiglets": [
"BASE_101",
"SYS_TelemetryBuilderV2_X.X.X.101_1",
"SYS_TelemetryBuilderV2"
],
"deviceStatus": "Registered",
"domainName": "",
"fqdn": "eos-1",
"hardwareRevision": "",
"hostname": "eos-1",
"imageBundle": "",
"internalBuild": "229b504e-2187-4b11-ad86-426ef2097425",
"internalBuildId": "229b504e-2187-4b11-ad86-426ef2097425",
"internalVersion": "4.21.8M",
"ipAddress": "X.X.X.101",
"isDANZEnabled": false,
"isMLAGEnabled": false,
"key": "50:00:00:72:8b:31",
"lastSyncUp": 0,
"memFree": 0,
"memTotal": 0,
"mlagEnabled": false,
"modelName": "vEOS",
"name": "eos-1",
"parentContainerId": "container_148_92304739535297",
"parentContainerKey": "container_148_92304739535297",
"parentContainerName": "IPFabric2",
"serialNumber": "1DF1BA5EF13EB2D602A326EA8A9ABC0E",
"sslConfigAvailable": false,
"sslEnabledByCVP": false,
"status": "Registered",
"streamingStatus": "active",
"systemMacAddress": "50:00:00:72:8b:31",
"taskIdList": [],
"tempAction": null,
"type": "netelement",
"unAuthorized": false,
"version": "4.21.8M",
"ztpMode": false
}
],
"imageBundles": [],
"tasks": [
[]
]
},
"changed": false,
"invocation": {
"module_args": {
"facts": [
"all"
],
"gather_subset": [
"default"
]
}
}
}
TASK [Build Container topology on cvp_2018] *****************************************************************************************
task path: /scripts/playbook.container.issue.task.test.yaml:26
Friday 27 December 2019 16:47:04 +0000 (0:00:05.905) 0:00:06.037 *******
<X.X.X.X> attempting to start connection
<X.X.X.X> using connection plugin httpapi
<X.X.X.X> found existing local domain socket, using it!
<X.X.X.X> updating play_context for connection
<X.X.X.X>
<X.X.X.X> local domain socket path is /root/.ansible/pc/7217ccae99
<X.X.X.X> ESTABLISH LOCAL CONNECTION FOR USER: root
<X.X.X.X> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248 `" && echo ansible-tmp-1577465225.08-62300695054248="` echo /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248 `" ) && sleep 0'
Using module file /usr/share/ansible/collections/ansible_collections/arista/cvp/plugins/modules/cv_container.py
<X.X.X.X> PUT /root/.ansible/tmp/ansible-local-89fcHxA_/tmpso3nQh TO /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py
<X.X.X.X> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/ /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py && sleep 0'
<X.X.X.X> EXEC /bin/sh -c '$(which python) /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py && sleep 0'
<X.X.X.X> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/ > /dev/null 2>&1 && sleep 0'
fatal: [cvp_2018]: FAILED! => {
"changed": false,
"module_stderr": "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\nTraceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py\", line 102, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.arista.cvp.plugins.modules.cv_container', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/local/lib/python2.7/runpy.py\", line 188, in run_module\n fname, loader, pkg_name)\n File \"/usr/local/lib/python2.7/runpy.py\", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File \"/usr/local/lib/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/tmp/ansible_arista.cvp.cv_container_payload_LYGKeV/ansible_arista.cvp.cv_container_payload.zip/ansible_collections/arista/cvp/plugins/modules/cv_container.py\", line 973, in <module>\n File \"/tmp/ansible_arista.cvp.cv_container_payload_LYGKeV/ansible_arista.cvp.cv_container_payload.zip/ansible_collections/arista/cvp/plugins/modules/cv_container.py\", line 912, in main\n File \"/tmp/ansible_arista.cvp.cv_container_payload_LYGKeV/ansible_arista.cvp.cv_container_payload.zip/ansible_collections/arista/cvp/plugins/modules/cv_container.py\", line 669, in move_devices_to_container\n File \"/tmp/ansible_arista.cvp.cv_container_payload_LYGKeV/ansible_arista.cvp.cv_container_payload.zip/ansible_collections/arista/cvp/plugins/module_utils/cv_api2018.py\", line 993, in move_device_to_container\nKeyError: 'fqdn'\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
PLAY RECAP **************************************************************************************************************************
cvp_2018 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Friday 27 December 2019 16:48:01 +0000 (0:00:57.875) 0:01:03.913 *******
===============================================================================
Build Container topology on cvp_2018 ---------------------------------------------------------------------------------------- 57.88s
/scripts/playbook.container.issue.task.test.yaml:26 --------------------------------------------------------------------------------
Gather CVP facts from cvp_2018 ----------------------------------------------------------------------------------------------- 5.91s
/scripts/playbook.container.issue.task.test.yaml:20 --------------------------------------------------------------------------------
ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.15 (default, Jan 31 2019, 00:15:21) [GCC 6.3.0]
Using /scripts/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /scripts/inventory.ini as it did not pass its verify_file() method
script declined parsing /scripts/inventory.ini as it did not pass its verify_file() method
auto declined parsing /scripts/inventory.ini as it did not pass its verify_file() method
yaml declined parsing /scripts/inventory.ini as it did not pass its verify_file() method
Not replacing invalid character(s) "set([u'2'])" in group name (2019)
Not replacing invalid character(s) "set([u'2'])" in group name (2019)
Not replacing invalid character(s) "set([u'2'])" in group name (2018)
Not replacing invalid character(s) "set([u'2'])" in group name (2018)
Parsed /scripts/inventory.ini inventory source with ini plugin
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc
Loading callback plugin profile_tasks of type aggregate, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/profile_tasks.pyc
PLAYBOOK: playbook.container.issue.task.test.yaml ***********************************************************************************
Positional arguments: playbook.container.issue.task.test.yaml
become_method: sudo
inventory: (u'/scripts/inventory.ini',)
forks: 5
tags: (u'all',)
verbosity: 4
connection: smart
timeout: 10
1 plays in playbook.container.issue.task.test.yaml
PLAY [Playbook to validate and demonstrate cv_container module.] ********************************************************************
META: ran handlers
TASK [Gather CVP facts from cvp_2018] ***********************************************************************************************
task path: /scripts/playbook.container.issue.task.test.yaml:20
Friday 27 December 2019 16:46:58 +0000 (0:00:00.131) 0:00:00.131 *******
<X.X.X.X> attempting to start connection
<X.X.X.X> using connection plugin httpapi
<X.X.X.X> local domain socket does not exist, starting it
<X.X.X.X> control socket path is /root/.ansible/pc/7217ccae99
<X.X.X.X> local domain socket listeners started successfully
<X.X.X.X> loaded API plugin eos from path /usr/local/lib/python2.7/site-packages/ansible/plugins/httpapi/eos.py for network_os eos
<X.X.X.X>
<X.X.X.X> local domain socket path is /root/.ansible/pc/7217ccae99
<X.X.X.X> ESTABLISH LOCAL CONNECTION FOR USER: root
<X.X.X.X> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549 `" && echo ansible-tmp-1577465219.26-5343579707549="` echo /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549 `" ) && sleep 0'
Using module file /usr/share/ansible/collections/ansible_collections/arista/cvp/plugins/modules/cv_facts.py
<X.X.X.X> PUT /root/.ansible/tmp/ansible-local-89fcHxA_/tmpjIhCU5 TO /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549/AnsiballZ_cv_facts.py
<X.X.X.X> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549/ /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549/AnsiballZ_cv_facts.py && sleep 0'
<X.X.X.X> EXEC /bin/sh -c '$(which python) /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549/AnsiballZ_cv_facts.py && sleep 0'
<X.X.X.X> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465219.26-5343579707549/ > /dev/null 2>&1 && sleep 0'
ok: [cvp_2018] => {
"ansible_facts": {
"configlets": [
{
"config": "\ntransceiver qsfp default-mode 4x10G\n!\nhostname eos-1\nno aaa root\n!\nusername username secret sha512 blabla,
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1576771127874,
"devices": [
"eos-1"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_39_537055783782075",
"name": "BASE_101",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Static",
"user": "username",
"visible": true
},
{
"config": "\ntransceiver qsfp default-mode 4x10G\n!\nhostname eos-2\nno aaa root\n!\nusername username secret sha512 blabla,
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1576771196735,
"devices": [
"eos-2"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_40_537124644589943",
"name": "BASE_102",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Static",
"user": "username",
"visible": true
},
{
"config": "\ntransceiver qsfp default-mode 4x10G\n!\nhostname eos-3\nno aaa root\n!\nusername username secret sha512 blabla,
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1576771222953,
"devices": [
"eos-3"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_41_537150863102876",
"name": "BASE_103",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Static",
"user": "username",
"visible": true
},
{
"config": "\ntransceiver qsfp default-mode 4x10G\n!\nhostname eos-4\nno aaa root\n!\nusername username secret sha512 blabla,
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1576771238619,
"devices": [],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_42_537166528873704",
"name": "BASE_104",
"netElementCount": 0,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Static",
"user": "username",
"visible": true
},
{
"config": "",
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1576766856415,
"devices": [
"eos-1",
"eos-2",
"eos-3"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "SYS_TelemetryBuilderV2_532784326021828",
"name": "SYS_TelemetryBuilderV2",
"netElementCount": 3,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Builder",
"user": "cvp system",
"visible": true
},
{
"config": "daemon TerminAttr\n exec /usr/bin/TerminAttr -ingestgrpcurl=X.X.X.X:9910 -taillogs -ingestauth=key,irb -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent\n no shutdown",
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1577377109195,
"devices": [
"eos-1"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_105_4477585198460",
"name": "SYS_TelemetryBuilderV2_10.157.121.101_1",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Generated",
"user": "username",
"visible": true
},
{
"config": "daemon TerminAttr\n exec /usr/bin/TerminAttr -ingestgrpcurl=X.X.X.X:9910 -taillogs -ingestauth=key,irb -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent\n no shutdown",
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1577377153136,
"devices": [
"eos-2"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_116_4521523565219",
"name": "SYS_TelemetryBuilderV2_10.157.121.102_1",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Generated",
"user": "username",
"visible": true
},
{
"config": "daemon TerminAttr\n exec /usr/bin/TerminAttr -ingestgrpcurl=X.X.X.X:9910 -taillogs -ingestauth=key,irb -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent\n no shutdown",
"containerCount": 0,
"containers": [],
"dateTimeInLongFormat": 1577377203122,
"devices": [
"eos-3"
],
"editable": true,
"isAutoBuilder": "",
"isDefault": "no",
"isDraft": false,
"key": "configlet_127_4571511569965",
"name": "SYS_TelemetryBuilderV2_10.157.121.103_1",
"netElementCount": 1,
"note": "",
"reconciled": false,
"sslConfig": false,
"type": "Generated",
"user": "username",
"visible": true
}
],
"containers": [
{
"CreatedBy": "cvp system",
"CreatedOn": 1576766856267,
"Key": "root",
"Mode": "expand",
"Name": "Tenant",
"childContainerId": null,
"configlets": [],
"devices": [],
"factoryId": 1,
"id": 21,
"imageBundle": "",
"key": "root",
"name": "Tenant",
"parentId": null,
"parentName": null,
"type": null,
"userId": null
},
{
"CreatedBy": "cvp system",
"CreatedOn": 1576766856310,
"Key": "undefined_container",
"Mode": "expand",
"Name": "Undefined",
"childContainerId": null,
"configlets": [],
"devices": [],
"factoryId": 1,
"id": 21,
"imageBundle": "EOS-4.20.11M",
"key": "undefined_container",
"name": "Undefined",
"parentId": "root",
"parentName": "Tenant",
"type": null,
"userId": null
},
{
"CreatedBy": "username",
"CreatedOn": 1577464936354,
"Key": "container_148_92304739535297",
"Mode": "expand",
"Name": "IPFabric2",
"childContainerId": null,
"configlets": [],
"devices": [
"eos-1",
"eos-2",
"eos-3"
],
"factoryId": 1,
"id": 21,
"imageBundle": "",
"key": "container_148_92304739535297",
"name": "IPFabric2",
"parentId": "root",
"parentName": "Tenant",
"type": null,
"userId": null
},
{
"CreatedBy": "username",
"CreatedOn": 1577199190452,
"Key": "container_587_965118360663787",
"Mode": "expand",
"Name": "IPFabric",
"childContainerId": null,
"configlets": [],
"devices": [],
"factoryId": 1,
"id": 21,
"imageBundle": "",
"key": "container_587_965118360663787",
"name": "IPFabric",
"parentId": "root",
"parentName": "Tenant",
"type": null,
"userId": null
}
],
"cvp_info": {
"appVersion": "Foster_Build_03",
"version": "2018.2.5"
},
"devices": [
{
"architecture": "",
"bootupTimeStamp": 1577360150.452747,
"bootupTimestamp": 1577360150.452747,
"complianceCode": "0000",
"complianceIndication": "",
"containerName": "IPFabric2",
"danzEnabled": false,
"dcaKey": null,
"deviceInfo": "Registered",
"deviceSpecificConfiglets": [
"BASE_103",
"SYS_TelemetryBuilderV2_10.157.121.103_1",
"SYS_TelemetryBuilderV2"
],
"deviceStatus": "Registered",
"domainName": "",
"fqdn": "eos-3",
"hardwareRevision": "",
"hostname": "eos-3",
"imageBundle": "",
"internalBuild": "229b504e-2187-4b11-ad86-426ef2097425",
"internalBuildId": "229b504e-2187-4b11-ad86-426ef2097425",
"internalVersion": "4.21.8M",
"ipAddress": "10.157.121.103",
"isDANZEnabled": false,
"isMLAGEnabled": false,
"key": "50:00:00:15:f4:e8",
"lastSyncUp": 0,
"memFree": 0,
"memTotal": 0,
"mlagEnabled": false,
"modelName": "vEOS",
"name": "eos-3",
"parentContainerId": "container_148_92304739535297",
"parentContainerKey": "container_148_92304739535297",
"parentContainerName": "IPFabric2",
"serialNumber": "8D960DF881A6C4231BB2C16408898F57",
"sslConfigAvailable": false,
"sslEnabledByCVP": false,
"status": "Registered",
"streamingStatus": "inactive",
"systemMacAddress": "50:00:00:15:f4:e8",
"taskIdList": [],
"tempAction": null,
"type": "netelement",
"unAuthorized": false,
"version": "4.21.8M",
"ztpMode": false
},
{
"architecture": "",
"bootupTimeStamp": 1577360146.696762,
"bootupTimestamp": 1577360146.696762,
"complianceCode": "0000",
"complianceIndication": "",
"containerName": "IPFabric2",
"danzEnabled": false,
"dcaKey": null,
"deviceInfo": "Registered",
"deviceSpecificConfiglets": [
"BASE_102",
"SYS_TelemetryBuilderV2_10.157.121.102_1",
"SYS_TelemetryBuilderV2"
],
"deviceStatus": "Registered",
"domainName": "",
"fqdn": "eos-2",
"hardwareRevision": "",
"hostname": "eos-2",
"imageBundle": "",
"internalBuild": "229b504e-2187-4b11-ad86-426ef2097425",
"internalBuildId": "229b504e-2187-4b11-ad86-426ef2097425",
"internalVersion": "4.21.8M",
"ipAddress": "10.157.121.102",
"isDANZEnabled": false,
"isMLAGEnabled": false,
"key": "50:00:00:f6:ad:37",
"lastSyncUp": 0,
"memFree": 0,
"memTotal": 0,
"mlagEnabled": false,
"modelName": "vEOS",
"name": "eos-2",
"parentContainerId": "container_148_92304739535297",
"parentContainerKey": "container_148_92304739535297",
"parentContainerName": "IPFabric2",
"serialNumber": "0F9AF16564BB7C8E024AD15B7E9CBFA3",
"sslConfigAvailable": false,
"sslEnabledByCVP": false,
"status": "Registered",
"streamingStatus": "inactive",
"systemMacAddress": "50:00:00:f6:ad:37",
"taskIdList": [],
"tempAction": null,
"type": "netelement",
"unAuthorized": false,
"version": "4.21.8M",
"ztpMode": false
},
{
"architecture": "",
"bootupTimeStamp": 1577365845.0729728,
"bootupTimestamp": 1577365845.0729728,
"complianceCode": "0000",
"complianceIndication": "",
"containerName": "IPFabric2",
"danzEnabled": false,
"dcaKey": null,
"deviceInfo": "Registered",
"deviceSpecificConfiglets": [
"BASE_101",
"SYS_TelemetryBuilderV2_10.157.121.101_1",
"SYS_TelemetryBuilderV2"
],
"deviceStatus": "Registered",
"domainName": "",
"fqdn": "eos-1",
"hardwareRevision": "",
"hostname": "eos-1",
"imageBundle": "",
"internalBuild": "229b504e-2187-4b11-ad86-426ef2097425",
"internalBuildId": "229b504e-2187-4b11-ad86-426ef2097425",
"internalVersion": "4.21.8M",
"ipAddress": "10.157.121.101",
"isDANZEnabled": false,
"isMLAGEnabled": false,
"key": "50:00:00:72:8b:31",
"lastSyncUp": 0,
"memFree": 0,
"memTotal": 0,
"mlagEnabled": false,
"modelName": "vEOS",
"name": "eos-1",
"parentContainerId": "container_148_92304739535297",
"parentContainerKey": "container_148_92304739535297",
"parentContainerName": "IPFabric2",
"serialNumber": "1DF1BA5EF13EB2D602A326EA8A9ABC0E",
"sslConfigAvailable": false,
"sslEnabledByCVP": false,
"status": "Registered",
"streamingStatus": "active",
"systemMacAddress": "50:00:00:72:8b:31",
"taskIdList": [],
"tempAction": null,
"type": "netelement",
"unAuthorized": false,
"version": "4.21.8M",
"ztpMode": false
}
],
"imageBundles": [],
"tasks": [
[]
]
},
"changed": false,
"invocation": {
"module_args": {
"facts": [
"all"
],
"gather_subset": [
"default"
]
}
}
}
TASK [Build Container topology on cvp_2018] *****************************************************************************************
task path: /scripts/playbook.container.issue.task.test.yaml:26
Friday 27 December 2019 16:47:04 +0000 (0:00:05.905) 0:00:06.037 *******
<X.X.X.X> attempting to start connection
<X.X.X.X> using connection plugin httpapi
<X.X.X.X> found existing local domain socket, using it!
<X.X.X.X> updating play_context for connection
<X.X.X.X>
<X.X.X.X> local domain socket path is /root/.ansible/pc/7217ccae99
<X.X.X.X> ESTABLISH LOCAL CONNECTION FOR USER: root
<X.X.X.X> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248 `" && echo ansible-tmp-1577465225.08-62300695054248="` echo /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248 `" ) && sleep 0'
Using module file /usr/share/ansible/collections/ansible_collections/arista/cvp/plugins/modules/cv_container.py
<X.X.X.X> PUT /root/.ansible/tmp/ansible-local-89fcHxA_/tmpso3nQh TO /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py
<X.X.X.X> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/ /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py && sleep 0'
<X.X.X.X> EXEC /bin/sh -c '$(which python) /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py && sleep 0'
<X.X.X.X> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/ > /dev/null 2>&1 && sleep 0'
fatal: [cvp_2018]: FAILED! => {
"changed": false,
"module_stderr": "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning,\nTraceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py\", line 102, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-local-89fcHxA_/ansible-tmp-1577465225.08-62300695054248/AnsiballZ_cv_container.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.arista.cvp.plugins.modules.cv_container', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/local/lib/python2.7/runpy.py\", line 188, in run_module\n fname, loader, pkg_name)\n File \"/usr/local/lib/python2.7/runpy.py\", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File \"/usr/local/lib/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/tmp/ansible_arista.cvp.cv_container_payload_LYGKeV/ansible_arista.cvp.cv_container_payload.zip/ansible_collections/arista/cvp/plugins/modules/cv_container.py\", line 973, in <module>\n File \"/tmp/ansible_arista.cvp.cv_container_payload_LYGKeV/ansible_arista.cvp.cv_container_payload.zip/ansible_collections/arista/cvp/plugins/modules/cv_container.py\", line 912, in main\n File \"/tmp/ansible_arista.cvp.cv_container_payload_LYGKeV/ansible_arista.cvp.cv_container_payload.zip/ansible_collections/arista/cvp/plugins/modules/cv_container.py\", line 669, in move_devices_to_container\n File \"/tmp/ansible_arista.cvp.cv_container_payload_LYGKeV/ansible_arista.cvp.cv_container_payload.zip/ansible_collections/arista/cvp/plugins/module_utils/cv_api2018.py\", line 993, in move_device_to_container\nKeyError: 'fqdn'\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
PLAY RECAP **************************************************************************************************************************
cvp_2018 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Friday 27 December 2019 16:48:01 +0000 (0:00:57.875) 0:01:03.913 *******
===============================================================================
Build Container topology on cvp_2018 ---------------------------------------------------------------------------------------- 57.88s
/scripts/playbook.container.issue.task.test.yaml:26 --------------------------------------------------------------------------------
Gather CVP facts from cvp_2018 ----------------------------------------------------------------------------------------------- 5.91s
/scripts/playbook.container.issue.task.test.yaml:20 --------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment