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
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/ d87852ae6a1987b 6faa3cb5851f975 8b47ef4636/ 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/ d87852ae6a1987b 6faa3cb5851f975 8b47ef4636/ nova/db/ sqlalchemy/ api.py# L404