Closed noredistribution closed 4 months ago
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 15 days
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 15 days
Issue Summary
When trying to decommission devices that are not in Network Provisioning, the decommission fails due to the device checks that we are doing that use older provisioning APIs that always check inventory devices that are in Network Provisioning and disregard devices that are still in telemetry's inventory.
ref: https://github.com/aristanetworks/ansible-cvp/blob/devel/ansible_collections/arista/cvp/plugins/module_utils/device_tools.py#L469 the problem is that all those APIs:
get_device_by_name()
,get_device_by_mac()
,get_device_by_serial()
usesearchTopology.do
which only checks devices that are provisionedone good way to solve this would be to use the
/inventory/devices
API call withprovisioned=False
queryParam akaget_inventory(provisioned=False)
from cvprac (not yet merged into mainline) and do lookups locally from memory. That should improve performance and also support decommissioning any device regardless if they are not streaming or not provisioned.cvprac side PR: https://github.com/aristanetworks/cvprac/pull/253
Which component(s) of AVD impacted
cv_device_v3
How do you run AVD ?
None
Input variables
Steps to reproduce
Relevant log output