yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #74795
[Bug 1793533] Re: Deleting a service with nova-compute binary doesn't remove compute node
Are you sure you're stopping the nova-compute service before deleting
the actual service record via the API?
https://developer.openstack.org/api-ref/compute/#delete-compute-service
Otherwise the ResourceTracker in the compute process will recreate the
compute node.
The Service.destroy is called from the API here:
https://github.com/openstack/nova/blob/d87852ae6a1987b6faa3cb5851f9758b47ef4636/nova/api/openstack/compute/services.py#L251
Which eventually calls the DB API to delete the associated compute node
record:
https://github.com/openstack/nova/blob/d87852ae6a1987b6faa3cb5851f9758b47ef4636/nova/db/sqlalchemy/api.py#L404
** Changed in: nova
Status: New => Invalid
--
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/1793533
Title:
Deleting a service with nova-compute binary doesn't remove compute
node
Status in OpenStack Compute (nova):
Invalid
Bug description:
If you are taking a nova-compute service out of service permanently,
the logical steps would be:
1) Take down the service
2) Delete it from the service list (nova service-delete <uuid>)
However, this does not delete the compute node record which stays
forever, leading to the scheduler to always complain about it as well:
2018-09-20 13:15:45.312 131035 WARNING nova.scheduler.host_manager
[req-c4a7c383-c606-48a7-b870-cc143710114a
234412d3482f4707877ca696e105bf5b acb15d2ffaae4eda98580c7b874d7f89 -
default default] No compute service record found for host
<snip>.vexxhost.net
https://github.com/openstack/nova/blob/master/nova/scheduler/host_manager.py#L716-L720
We should be deleting the compute node if a nova-compute binary is
deleted, or that section should automatically clean up while warning
(because service records can be rebuilt anyways?)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1793533/+subscriptions
References