yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #83131
[Bug 1872385] Re: delete sub resource provider in tree
Reviewed: https://review.opendev.org/719163
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a45daafd3111a6804eb5adafe4860db122cb09b8
Submitter: Zuul
Branch: master
commit a45daafd3111a6804eb5adafe4860db122cb09b8
Author: songwenping <songwenping@xxxxxxxxxx>
Date: Sat Apr 11 18:28:01 2020 +0800
Delete resource provider in tree by top-down traversable order
When delete nova service by "nova service-delete <id>", this will delete the
compute node's resource provider in Placement. But if there are child resource
provider, Placement will throw exception(CannotDeleteParentResourceProvider)
and don't delete the resource provider. When we add the host service again,
Placement cannot insert new compute node resource provider, and we cannot use
the compute node any more. So we should delete sub resource provider in tree
when delete resource provider.
Modify unit test.
Change-Id: Ide8732be6c047ad1b141b89df676783b2fa2f25a
Closes-Bug: #1872385
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1872385
Title:
delete sub resource provider in tree
Status in OpenStack Compute (nova):
Fix Released
Bug description:
When delete nova service by "nova service-delete <id>", this will delete the compute node's resource provider in Placement. But if there are child resource provider, Placement will throw exception(CannotDeleteParentResourceProvider) and don't delete the resource provider. When we add the host service again, Placement cannot insert new compute node resource provider, and we cannot use the compute node any more. So we should delete sub resource provider in tree when delete resource provider.
from nova-compute.log:
2020-04-10 16:10:35.087 6 ERROR nova.scheduler.client.report [req-ed9546ac-43c8-42ca-a102-427bd9fc03b1 - - - - -] [req-dc785a03-ffb6-453d-99af-09
8ebf23d23c] Failed to create resource provider record in placement API for UUID 169c0100-7123-42ca-a80a-b6770eaa4c84. Got 409: {"errors": [{"stat
us": 409, "request_id": "req-dc785a03-ffb6-453d-99af-098ebf23d23c", "detail": "There was a conflict when trying to complete your request.\n\n Con
flicting resource provider name: node11 already exists. ", "title": "Conflict"}]}.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1872385/+subscriptions
References