OpenStack Client Command-Line Interface (CLI) is not deleting network agent
Bug #2082119 reported by
Dino Bosnjic
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| python-openstackclient |
In Progress
|
Undecided
|
Chaemin Lim | ||
Bug Description
Version: python-
When running `openstack network agent delete <agent_id>`, the command exits with 0 and there is no output, however the agent is not deleted.
If the OVN agent is removed from the server, the same command works. It would delete the agent.
| affects: | python-ironicclient → python-openstackclient |
| Changed in python-openstackclient: | |
| assignee: | nobody → 임채민 (antraxmin) |
To post a comment you must log in.
Found additional issues related to this:
ubuntu@jump:~$ openstack network agent list --host compute01 -c ID -c "Agent Type" -f value f478-55e9- ae72-487757766c f5 OVN Metadata agent
ab155dd0-
compute01 OVN Controller agent
# These are the two OVN agents running on this host
ubuntu@jump:~$ openstack network agent set --disable ab155dd0- f478-55e9- ae72-487757766c f5 tion: 400: Client Error for url: http:// 10.2.80. 100:9696/ v2.0/agents/ ab155dd0- f478-55e9- ae72-487757766c f5, Bad agent request: OVN agent status cannot be updated.
BadRequestExcep
# Okay so it seems network agent set can't be used to disable OVN agents
#
# ... Now I have stopped OVN on compute01 and even shut down the host
#
ubuntu@jump:~$ openstack network agent delete compute01 f478-55e9- ae72-487757766c f5
ubuntu@jump:~$ openstack network agent delete ab155dd0-
ubuntu@jump:~$
# Delete commands worked fine, and since the agents are gone I assumed it would be done
ubuntu@jump:~$ openstack network agent list --host compute01 -c ID -c "Agent Type" -f value f478-55e9- ae72-487757766c f5 OVN Metadata agent
ab155dd0-
compute01 OVN Controller agent
# Agents are still listed...
ubuntu@jump:~$ openstack network agent delete ab155dd0- f478-55e9- ae72-487757766c f5 f478-55e9- ae72-487757766c f5': ResourceNotFound: 404: Client Error for url: http:// 10.2.80. 100:9696/ v2.0/agents/ ab155dd0- f478-55e9- ae72-487757766c f5, Agent ab155dd0- f478-55e9- ae72-487757766c f5 could not be found.
Failed to delete network agent with ID 'ab155dd0-
1 of 1 network agents failed to delete.
# They are listed but not actually there?
ubuntu@jump:~$ openstack network agent delete compute01 10.2.80. 100:9696/ v2.0/agents/ compute01, Agent compute01 could not be found.
Failed to delete network agent with ID 'compute01': ResourceNotFound: 404: Client Error for url: http://
1 of 1 network agents failed to delete.
# Same for both
ubuntu@jump:~$ openstack network agent list --host compute01 -c ID -c "Agent Type" -f value f478-55e9- ae72-487757766c f5 OVN Metadata agent
ab155dd0-
compute01 OVN Controller agent
# But still listed...