You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that AWX is open source software provided for free and that I might not receive a timely response.
I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)
Bug Summary
Is there a way to display only the current active nodes in /api/v2/metrics? It was discovered that /api/v2/metrics endpoint retain old data (e.g. same hostname with different uuid) when a node is disconnected from AWX. The node will be gone in /api/v2/instances and AWX GUI but still showing up in the /api/v2/metrics.
Is there a workaround for this issue? The ask is to monitor a node when it lost connectivity to AWX, however, the metrics endpoint retains old data (for at least a day or so), it's not ideal to utilise it for monitoring.
AWX version
2.9.23
Select the relevant components
UI
UI (tech preview)
API
Docs
Collection
CLI
Other
Installation method
docker development environment
Modifications
no
Ansible version
Irrelevant
Operating system
Irrelevant
Web browser
No response
Steps to reproduce
Disconnect a node (terminate/shutdown) from AWX, then observer /api/v2/metrics endpoint.
Expected results
It's expected to have the node removed from AWX metrics endpoint when they are disconnected and gone in AWX GUI and /api/v2/instances endpoint.
Actual results
Node not removed, seeing old data (same node but different uuid as it's now reconnected, hence a different uuid was granted).
Additional information
No response
The text was updated successfully, but these errors were encountered:
@bettyhey we don't know of any work arounds for and this is a legitimate issue. could you close this and open an enhancement request with similar information so that we can track it better since this is not a bug but a lack of coverage.
if you have a different way of detecting when nodes are down permanently, you might be able to log into a running task container and run the awx-manage deprovision_instance command to delete it from the database and those entries should go away
Please confirm the following
security@ansible.com
instead.)Bug Summary
Is there a way to display only the current active nodes in /api/v2/metrics? It was discovered that /api/v2/metrics endpoint retain old data (e.g. same hostname with different uuid) when a node is disconnected from AWX. The node will be gone in /api/v2/instances and AWX GUI but still showing up in the /api/v2/metrics.
Is there a workaround for this issue? The ask is to monitor a node when it lost connectivity to AWX, however, the metrics endpoint retains old data (for at least a day or so), it's not ideal to utilise it for monitoring.
AWX version
2.9.23
Select the relevant components
Installation method
docker development environment
Modifications
no
Ansible version
Irrelevant
Operating system
Irrelevant
Web browser
No response
Steps to reproduce
Disconnect a node (terminate/shutdown) from AWX, then observer /api/v2/metrics endpoint.
Expected results
It's expected to have the node removed from AWX metrics endpoint when they are disconnected and gone in AWX GUI and /api/v2/instances endpoint.
Actual results
Node not removed, seeing old data (same node but different uuid as it's now reconnected, hence a different uuid was granted).
Additional information
No response
The text was updated successfully, but these errors were encountered: