Running into issues trying to run the playbook below. The input vars do not include a serial number however the call to get_device_image_bundle is using serial number for the device lookup:
% ansible-playbook -i inventory.yml cvp_change_control.yml
PLAY [CVP Device Test] *********************************************************
TASK [Configure devices on cv_server] ******************************************
fatal: [cv_server]: FAILED! => changed=false
module_stderr: |-
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/Users/pmerlo/test_venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.255.105.134'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
Traceback (most recent call last):
File "/Users/pmerlo/.ansible/tmp/ansible-local-81381jzitgqxg/ansible-tmp-1666876575.43941-81384-61346634115900/AnsiballZ_cv_device_v3.py", line 107, in <module>
_ansiballz_main()
File "/Users/pmerlo/.ansible/tmp/ansible-local-81381jzitgqxg/ansible-tmp-1666876575.43941-81384-61346634115900/AnsiballZ_cv_device_v3.py", line 99, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/Users/pmerlo/.ansible/tmp/ansible-local-81381jzitgqxg/ansible-tmp-1666876575.43941-81384-61346634115900/AnsiballZ_cv_device_v3.py", line 47, in invoke_module
runpy.run_module(mod_name='ansible_collections.arista.cvp.plugins.modules.cv_device_v3', init_globals=dict(_module_fqn='ansible_collections.arista.cvp.plugins.modules.cv_device_v3', _modlib_path=modlib_path),
File "/opt/homebrew/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 210, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/opt/homebrew/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/opt/homebrew/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/var/folders/35/004l94c524n937xxfkshp7n40000gq/T/ansible_arista.cvp.cv_device_v3_payload_jyuyihyl/ansible_arista.cvp.cv_device_v3_payload.zip/ansible_collections/arista/cvp/plugins/modules/cv_device_v3.py", line 261, in <module>
File "/var/folders/35/004l94c524n937xxfkshp7n40000gq/T/ansible_arista.cvp.cv_device_v3_payload_jyuyihyl/ansible_arista.cvp.cv_device_v3_payload.zip/ansible_collections/arista/cvp/plugins/modules/cv_device_v3.py", line 251, in main
File "/var/folders/35/004l94c524n937xxfkshp7n40000gq/T/ansible_arista.cvp.cv_device_v3_payload_jyuyihyl/ansible_arista.cvp.cv_device_v3_payload.zip/ansible_collections/arista/cvp/plugins/module_utils/device_tools.py", line 1158, in manager
File "/var/folders/35/004l94c524n937xxfkshp7n40000gq/T/ansible_arista.cvp.cv_device_v3_payload_jyuyihyl/ansible_arista.cvp.cv_device_v3_payload.zip/ansible_collections/arista/cvp/plugins/module_utils/device_tools.py", line 611, in __state_present
File "/var/folders/35/004l94c524n937xxfkshp7n40000gq/T/ansible_arista.cvp.cv_device_v3_payload_jyuyihyl/ansible_arista.cvp.cv_device_v3_payload.zip/ansible_collections/arista/cvp/plugins/module_utils/device_tools.py", line 1270, in apply_bundle
File "/var/folders/35/004l94c524n937xxfkshp7n40000gq/T/ansible_arista.cvp.cv_device_v3_payload_jyuyihyl/ansible_arista.cvp.cv_device_v3_payload.zip/ansible_collections/arista/cvp/plugins/module_utils/device_tools.py", line 943, in get_device_image_bundle
File "/var/folders/35/004l94c524n937xxfkshp7n40000gq/T/ansible_arista.cvp.cv_device_v3_payload_jyuyihyl/ansible_arista.cvp.cv_device_v3_payload.zip/ansible_collections/arista/cvp/plugins/module_utils/device_tools.py", line 854, in get_device_facts
File "/var/folders/35/004l94c524n937xxfkshp7n40000gq/T/ansible_arista.cvp.cv_device_v3_payload_jyuyihyl/ansible_arista.cvp.cv_device_v3_payload.zip/ansible_collections/arista/cvp/plugins/module_utils/device_tools.py", line 433, in __get_device
File "/Users/pmerlo/test_venv/lib/python3.9/site-packages/cvprac/cvp_api.py", line 906, in get_device_by_name
data = self.search_topology(fqdn)
File "/Users/pmerlo/test_venv/lib/python3.9/site-packages/cvprac/cvp_api.py", line 1985, in search_topology
% (qplus(query), start, end),
File "/opt/homebrew/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/parse.py", line 887, in quote_plus
string = quote(string, safe + space, encoding, errors)
File "/opt/homebrew/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/parse.py", line 871, in quote
return quote_from_bytes(string, safe)
File "/opt/homebrew/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/parse.py", line 896, in quote_from_bytes
raise TypeError("quote_from_bytes() expected bytes")
TypeError: quote_from_bytes() expected bytes
module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
PLAY RECAP *********************************************************************
cv_server : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Relevant log output
2022-10-27 09:18:12,524 - arista.cvp.cv_configlet: INFO - func: <module> (L:26 ) - Start cv_configlet module execution
2022-10-27 09:18:12,527 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: INFO - func: <module> (L:50 ) - Start device_tools module execution
2022-10-27 09:18:12,527 - arista.cvp.cv_device_v3: INFO - func: <module> (L:186) - Start cv_device_v3 module execution
2022-10-27 09:18:12,531 - arista.cvp.cv_tools: INFO - func: cv_connect (L:53 ) - Connecting to CVP
2022-10-27 09:18:12,534 - arista.cvp.cv_tools: DEBUG - func: cv_connect (L:85 ) - Connecting to a CV instance: 10.255.105.134 with timers 120 120
2022-10-27 09:18:13,252 - arista.cvp.cv_tools: INFO - func: cv_connect (L:105) - Connected to CVP
2022-10-27 09:18:13,252 - arista.cvp.cv_device_v3: DEBUG - func: main (L:250) - Ansible user inventory is: [<ansible_collections.arista.cvp.plugins.module_utils.device_tools.DeviceElement object at 0x108a76640>]
2022-10-27 09:18:13,253 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: manager (L:1154) - Manager search mode is set to: hostname
2022-10-27 09:18:13,253 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: INFO - func: manager (L:1157) - Processing data to create/update devices
2022-10-27 09:18:13,253 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: check_device_exist (L:1095) - Check if all the devices specified exist in CVP
2022-10-27 09:18:13,253 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: __get_device (L:429) - Looking for device using hostname as search_by
2022-10-27 09:18:13,569 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: __get_device (L:444) - Got following data for DC1-POD1-LEAF1A using hostname: {'modelName': '', 'internalVersion': '4.28.0.1F', 'systemMacAddress': 'd4:02:79:8f:ad:59', 'serialNumber': 'SN-DC1-POD1-LEAF1A', 'memTotal': 0, 'bootupTimeStamp': 0.0, 'memFree': 0, 'version': '4.28.0.1F', 'architecture': '', 'internalBuildId': '', 'hardwareRevision': '', 'fqdn': 'DC1-POD1-LEAF1A', 'key': 'd4:02:79:8f:ad:59', 'ztpMode': 'false', 'type': 'netelement', 'ipAddress': '192.168.0.11', 'taskIdList': [], 'isDANZEnabled': 'no', 'isMLAGEnabled': 'no', 'complianceIndication': '', 'tempAction': [], 'complianceCode': '0000', 'lastSyncUp': 0, 'unAuthorized': False, 'deviceInfo': None, 'deviceStatus': 'Registered', 'parentContainerId': 'container_4b5a68ae-fe0a-4516-ad90-17a20f296ac1', 'sslEnabledByCVP': False, 'sslConfigAvailable': False, 'dcaKey': '', 'containerName': 'DC1_POD1_LEAFS', 'streamingStatus': 'active', 'status': 'Registered', 'mlagEnabled': 'no', 'danzEnabled': 'no', 'parentContainerKey': 'container_4b5a68ae-fe0a-4516-ad90-17a20f296ac1', 'bootupTimestamp': 0.0, 'internalBuild': '', 'imageBundle': {'macAddress': 'd4:02:79:8f:ad:59', 'serialNumber': 'SN-DC1-POD1-LEAF1A', 'eosVersion': '4.28.0.1F', 'fqdn': 'DC1-POD1-LEAF1A', 'imageBundleMapper': {}, 'ipAddress': '192.168.0.11', 'bundleName': None, 'imageBundleId': ''}}
2022-10-27 09:18:13,570 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: INFO - func: refresh_systemMacAddress (L:1024) - Inventory to refresh is [<ansible_collections.arista.cvp.plugins.module_utils.device_tools.DeviceElement object at 0x108a76640>]
2022-10-27 09:18:13,570 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: INFO - func: refresh_systemMacAddress (L:1026) - Lookup is based on hostname field
2022-10-27 09:18:13,570 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: refresh_systemMacAddress (L:1027) - Found device {'fqdn': 'DC1-POD1-LEAF1A', 'hostname': 'DC1-POD1-LEAF1A', 'parentContainerName': 'DC1_POD1_LEAFS', 'configlets': ['AMS-AVD_DC1-POD1-LEAF1A']} to refresh data
2022-10-27 09:18:13,571 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: __get_device (L:429) - Looking for device using hostname as search_by
2022-10-27 09:18:13,977 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: __get_device (L:444) - Got following data for DC1-POD1-LEAF1A using hostname: {'modelName': '', 'internalVersion': '4.28.0.1F', 'systemMacAddress': 'd4:02:79:8f:ad:59', 'serialNumber': 'SN-DC1-POD1-LEAF1A', 'memTotal': 0, 'bootupTimeStamp': 0.0, 'memFree': 0, 'version': '4.28.0.1F', 'architecture': '', 'internalBuildId': '', 'hardwareRevision': '', 'fqdn': 'DC1-POD1-LEAF1A', 'key': 'd4:02:79:8f:ad:59', 'ztpMode': 'false', 'type': 'netelement', 'ipAddress': '192.168.0.11', 'taskIdList': [], 'isDANZEnabled': 'no', 'isMLAGEnabled': 'no', 'complianceIndication': '', 'tempAction': [], 'complianceCode': '0000', 'lastSyncUp': 0, 'unAuthorized': False, 'deviceInfo': None, 'deviceStatus': 'Registered', 'parentContainerId': 'container_4b5a68ae-fe0a-4516-ad90-17a20f296ac1', 'sslEnabledByCVP': False, 'sslConfigAvailable': False, 'dcaKey': '', 'containerName': 'DC1_POD1_LEAFS', 'streamingStatus': 'active', 'status': 'Registered', 'mlagEnabled': 'no', 'danzEnabled': 'no', 'parentContainerKey': 'container_4b5a68ae-fe0a-4516-ad90-17a20f296ac1', 'bootupTimestamp': 0.0, 'internalBuild': '', 'imageBundle': {'macAddress': 'd4:02:79:8f:ad:59', 'serialNumber': 'SN-DC1-POD1-LEAF1A', 'eosVersion': '4.28.0.1F', 'fqdn': 'DC1-POD1-LEAF1A', 'imageBundleMapper': {}, 'ipAddress': '192.168.0.11', 'bundleName': None, 'imageBundleId': ''}}
2022-10-27 09:18:13,978 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: refresh_systemMacAddress (L:1031) - Get sysmac DC1-POD1-LEAF1A for device d4:02:79:8f:ad:59
2022-10-27 09:18:13,978 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: WARNING - func: refresh_systemMacAddress (L:1038) - Update list is: [{'fqdn': 'DC1-POD1-LEAF1A', 'hostname': 'DC1-POD1-LEAF1A', 'systemMacAddress': 'd4:02:79:8f:ad:59', 'key': 'd4:02:79:8f:ad:59', 'parentContainerName': 'DC1_POD1_LEAFS', 'configlets': ['AMS-AVD_DC1-POD1-LEAF1A']}]
2022-10-27 09:18:14,405 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: get_container_current (L:997) - Get container for device d4:02:79:8f:ad:59
2022-10-27 09:18:14,582 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: deploy_device (L:1615) - Device DC1-POD1-LEAF1A is currently under DC1_POD1_LEAFS
2022-10-27 09:18:14,582 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: __get_device (L:429) - Looking for device using hostname as search_by
2022-10-27 09:18:14,906 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: __get_device (L:444) - Got following data for DC1-POD1-LEAF1A using hostname: {'modelName': '', 'internalVersion': '4.28.0.1F', 'systemMacAddress': 'd4:02:79:8f:ad:59', 'serialNumber': 'SN-DC1-POD1-LEAF1A', 'memTotal': 0, 'bootupTimeStamp': 0.0, 'memFree': 0, 'version': '4.28.0.1F', 'architecture': '', 'internalBuildId': '', 'hardwareRevision': '', 'fqdn': 'DC1-POD1-LEAF1A', 'key': 'd4:02:79:8f:ad:59', 'ztpMode': 'false', 'type': 'netelement', 'ipAddress': '192.168.0.11', 'taskIdList': [], 'isDANZEnabled': 'no', 'isMLAGEnabled': 'no', 'complianceIndication': '', 'tempAction': [], 'complianceCode': '0000', 'lastSyncUp': 0, 'unAuthorized': False, 'deviceInfo': None, 'deviceStatus': 'Registered', 'parentContainerId': 'container_4b5a68ae-fe0a-4516-ad90-17a20f296ac1', 'sslEnabledByCVP': False, 'sslConfigAvailable': False, 'dcaKey': '', 'containerName': 'DC1_POD1_LEAFS', 'streamingStatus': 'active', 'status': 'Registered', 'mlagEnabled': 'no', 'danzEnabled': 'no', 'parentContainerKey': 'container_4b5a68ae-fe0a-4516-ad90-17a20f296ac1', 'bootupTimestamp': 0.0, 'internalBuild': '', 'imageBundle': {'macAddress': 'd4:02:79:8f:ad:59', 'serialNumber': 'SN-DC1-POD1-LEAF1A', 'eosVersion': '4.28.0.1F', 'fqdn': 'DC1-POD1-LEAF1A', 'imageBundleMapper': {}, 'ipAddress': '192.168.0.11', 'bundleName': None, 'imageBundleId': ''}}
2022-10-27 09:18:14,907 - arista.cvp.cv_configlet: DEBUG - func: add_change (L:324) - receive add_change with {'success': False, 'changed': False, 'taskIds': [], 'diff': None, 'DC1-POD1-LEAF1A_deployed_count': 0, 'DC1-POD1-LEAF1A_deployed_list': []}
2022-10-27 09:18:15,071 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: get_container_current (L:997) - Get container for device d4:02:79:8f:ad:59
2022-10-27 09:18:15,303 - arista.cvp.cv_configlet: DEBUG - func: add_change (L:324) - receive add_change with {'success': False, 'changed': False, 'taskIds': [], 'diff': None, 'DC1-POD1-LEAF1A_to_D_count': 0, 'DC1-POD1-LEAF1A_to_D_list': []}
2022-10-27 09:18:15,303 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: apply_configlets (L:1405) - Apply configlets to following inventory: [{'fqdn': 'DC1-POD1-LEAF1A', 'hostname': 'DC1-POD1-LEAF1A', 'systemMacAddress': 'd4:02:79:8f:ad:59', 'key': 'd4:02:79:8f:ad:59', 'parentContainerName': 'DC1_POD1_LEAFS', 'configlets': ['AMS-AVD_DC1-POD1-LEAF1A']}]
2022-10-27 09:18:15,304 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: apply_configlets (L:1407) - Applying configlet for device: DC1-POD1-LEAF1A
2022-10-27 09:18:15,304 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: get_container_current (L:997) - Get container for device d4:02:79:8f:ad:59
2022-10-27 09:18:15,559 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: __get_device (L:429) - Looking for device using hostname as search_by
2022-10-27 09:18:15,927 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: __get_device (L:444) - Got following data for DC1-POD1-LEAF1A using hostname: {'modelName': '', 'internalVersion': '4.28.0.1F', 'systemMacAddress': 'd4:02:79:8f:ad:59', 'serialNumber': 'SN-DC1-POD1-LEAF1A', 'memTotal': 0, 'bootupTimeStamp': 0.0, 'memFree': 0, 'version': '4.28.0.1F', 'architecture': '', 'internalBuildId': '', 'hardwareRevision': '', 'fqdn': 'DC1-POD1-LEAF1A', 'key': 'd4:02:79:8f:ad:59', 'ztpMode': 'false', 'type': 'netelement', 'ipAddress': '192.168.0.11', 'taskIdList': [], 'isDANZEnabled': 'no', 'isMLAGEnabled': 'no', 'complianceIndication': '', 'tempAction': [], 'complianceCode': '0000', 'lastSyncUp': 0, 'unAuthorized': False, 'deviceInfo': None, 'deviceStatus': 'Registered', 'parentContainerId': 'container_4b5a68ae-fe0a-4516-ad90-17a20f296ac1', 'sslEnabledByCVP': False, 'sslConfigAvailable': False, 'dcaKey': '', 'containerName': 'DC1_POD1_LEAFS', 'streamingStatus': 'active', 'status': 'Registered', 'mlagEnabled': 'no', 'danzEnabled': 'no', 'parentContainerKey': 'container_4b5a68ae-fe0a-4516-ad90-17a20f296ac1', 'bootupTimestamp': 0.0, 'internalBuild': '', 'imageBundle': {'macAddress': 'd4:02:79:8f:ad:59', 'serialNumber': 'SN-DC1-POD1-LEAF1A', 'eosVersion': '4.28.0.1F', 'fqdn': 'DC1-POD1-LEAF1A', 'imageBundleMapper': {}, 'ipAddress': '192.168.0.11', 'bundleName': None, 'imageBundleId': ''}}
2022-10-27 09:18:16,149 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: __get_reordered_configlets_list (L:501) - Removing the configlet AMS-AVD_DC1-POD1-LEAF1A from the current configlet list and adding it to the new list.
2022-10-27 09:18:16,150 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: apply_configlets (L:1425) - [DC1-POD1-LEAF1A] - Old configlet list: ['AMS-AVD_DC1-POD1-LEAF1A']
2022-10-27 09:18:16,150 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: apply_configlets (L:1426) - [DC1-POD1-LEAF1A] - New configlet list: ['AMS-AVD_DC1-POD1-LEAF1A']
2022-10-27 09:18:16,150 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: INFO - func: apply_configlets (L:1428) - [DC1-POD1-LEAF1A] - There was no changes detected in the configlets list, skipping task creation for the device.
2022-10-27 09:18:16,150 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: apply_bundle (L:1260) - Applying image bundle for device: DC1-POD1-LEAF1A
2022-10-27 09:18:16,150 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: get_container_current (L:997) - Get container for device d4:02:79:8f:ad:59
2022-10-27 09:18:16,405 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: apply_bundle (L:1269) - Get image bundle for None
2022-10-27 09:18:16,407 - ansible_collections.arista.cvp.plugins.module_utils.device_tools: DEBUG - func: __get_device (L:429) - Looking for device using hostname as search_by
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Issue Summary
Running into issues trying to run the playbook below. The input vars do not include a serial number however the call to get_device_image_bundle is using serial number for the device lookup:
current_image_bundle = self.get_device_image_bundle(device_lookup=device.serial_number)
Workaround: include the serial number as an input var AND specify the search_key to be serialNumber
Which component(s) of AVD impacted
cv_device_v3
How do you run AVD ?
Ansible CLI (with virtual-env or native python)
Input variables
Steps to reproduce
Relevant log output
Code of Conduct