Bug 1430338 - 'openstack network agent delete UUID' failed with exception unexpected keyword argument
Summary: 'openstack network agent delete UUID' failed with exception unexpected keywo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-openstackclient
Version: 11.0 (Ocata)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z3
: 12.0 (Pike)
Assignee: Julie Pichon
QA Contact: Raviv Bar-Tal
URL:
Whiteboard:
: 1482506 1533268 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-08 12:11 UTC by Raviv Bar-Tal
Modified: 2018-08-20 12:53 UTC (History)
19 users (show)

Fixed In Version: python-openstackclient-3.12.1-1.el7ost
Doc Type: Bug Fix
Doc Text:
This update fixes an issue that caused "open stack network agent delete" to fail. Previously the command failed with the error "unexpected keyword argument 'ignore_missing'". This update makes it possible to delete Neutron agents using python-openstackclient.
Clone Of:
Environment:
Last Closed: 2018-08-20 12:53:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1711301 0 None None None 2017-11-06 16:03:50 UTC
OpenStack gerrit 518371 0 None None None 2017-11-07 17:04:19 UTC

Description Raviv Bar-Tal 2017-03-08 12:11:24 UTC
Description of problem:
When trying to delete network agent openstack command fail with exception. 
Using neutron command for the same agent-delete pass with no errors.

"[stack@undercloud-0 ~]$ openstack network agent delete b0fdb309-15da-4f77-824a-ed91db451907
Failed to delete network agent with ID 'b0fdb309-15da-4f77-824a-ed91db451907': get_agent() got an unexpected keyword argument 'ignore_missing'
1 of 1 network agents failed to delete.
[stack@undercloud-0 ~]$ "

Version-Release number of selected component (if applicable):


How reproducible:
try to delete network agent.

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Raviv Bar-Tal 2017-03-08 13:43:01 UTC
The package version is:

python-openstackclient.noarch    3.8.1-0.20170208195351.1e3dc48.el7ost

Comment 2 Assaf Muller 2017-03-13 10:36:28 UTC
Can you say why do you consider this a release blocker? Is agent-delete used by Director somehow? This doesn't fit blocker criteria as a workaround exists by definition...

Comment 3 Raviv Bar-Tal 2017-03-20 09:53:51 UTC
Hi,
I have consider this as release blocker as agent-delete is used in the scale down and compute node replace procedure.

Comment 4 Gurenko Alex 2017-04-27 06:35:51 UTC
So, as of build 2017-04-24.2 this issue still exists and it blocks scaling down for split-stack RFE. Are we planning to do anything with it?

Comment 5 Raviv Bar-Tal 2017-04-27 07:43:57 UTC
Hi Jakub 
Are we going to get a fix for this in osp 11?
If not this this needs to be documented.
Thanks

Comment 8 Gurenko Alex 2017-05-11 11:43:01 UTC
It seems like a problem with unified CLI command and not with a component, "neutron agent-delete" should work

Comment 10 Beth White 2017-06-14 14:51:13 UTC
Triaged for current release.

Comment 11 Assaf Muller 2017-08-28 14:45:54 UTC
*** Bug 1482506 has been marked as a duplicate of this bug. ***

Comment 14 Julie Pichon 2017-11-06 16:03:50 UTC
Hi. Could you clarify what documentation needs to be updated? Do I understand correctly that this only affects split-stack use cases, or is it a problem we need to document the workaround for elsewhere as well?

Comment 15 Gurenko Alex 2017-11-07 07:34:55 UTC
(In reply to Julie Pichon from comment #14)
> Hi. Could you clarify what documentation needs to be updated? Do I
> understand correctly that this only affects split-stack use cases, or is it
> a problem we need to document the workaround for elsewhere as well?

 No, it's not specific to split stack, starting RHOS 11 "openstack network agent 
delete <uuid>" does not work, but required for Node removal/replacement procedures as per official documentation.
 There is old command, that is mentioned as deprecated, but still works: "neutron agent-delete <uuid>", however there is no mentioning of that anywhere in a documentation.

 I'm afraid that people who are unfamiliar with old-style commands like neutron does not know how to work-around this issue, e.g. it needs to be documented until issue is resolved. Since it was not fixed neither in RHOS 11 nor in RHOS 12 we have 2 affected versions right now.

Comment 16 Gurenko Alex 2017-11-08 10:37:31 UTC
Do we want to backport it back to RHOS 11?

Comment 17 Julie Pichon 2017-11-08 10:38:53 UTC
Yes, I'm going to propose a backport to Ocata/OSP11 as well. Just want to run a couple of manual tests first.

Comment 18 Gurenko Alex 2017-11-08 10:40:07 UTC
(In reply to Julie Pichon from comment #17)
> Yes, I'm going to propose a backport to Ocata/OSP11 as well. Just want to
> run a couple of manual tests first.

Perfect, thank you

Comment 19 Julie Pichon 2018-01-11 09:50:35 UTC
*** Bug 1533268 has been marked as a duplicate of this bug. ***

Comment 23 errata-xmlrpc 2018-08-20 12:53:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2521


Note You need to log in before you can comment on or make changes to this bug.