Comment 1 for bug 1793533

Revision history for this message
Matt Riedemann (mriedem) wrote : 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