Public bug reported:
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"}]}.
** Affects: nova
Importance: Undecided
Assignee: Wenping Song (wenping1)
Status: New
** Changed in: nova
Assignee: (unassigned) => Wenping Song (wenping1)
--
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):
New
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
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp