Unable to Delete Stale Compute Service

Problem

  • Unable to delete stale compute service with the below error.

$ openstack compute service delete  [COMPUTE_SERVICE_UUID]

Failed to delete compute service with ID '[COMPUTE_SERVICE_UUID]': HttpException: 500: Server Error for url: https://[PCD_FQDN]/nova/v2.1/[PROJECT_ID]/os-services/[COMPUTE_SERVICE_UUID], Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'ValueError'>
1 of 1 compute services failed to delete.

Environment

  • Private Cloud Director Virtualization - v2025.4 and Higher

  • Self-Hosted Private Cloud Director Virtualization - v2025.4 and Higher

  • Component: Compute Service

Cause

  • Forcefully removing a host from PCD, resulting in incomplete cleanup of resources on the management plane.

Diagnostics

  • Compute Service List:

  • Resource Provider List:

  • Nova API Pod Logs:

    • First grep the Nova API logs with compute service UUID and Note the Deletion Request ID.

Now grep the Nova API logs with Deletion Request ID and Note the Missing Resource Provider UUID.

  • Based on above logs, as part of compute service deletion Nova is trying to delete the associated resource provider in Placement, but it's unable to locate it in the ProviderTree.

Resolution

  • Created a dummy Resource Provider with the same UUID that Nova is looking for during compute service deletion.

  • Verify if the dummy Resource Provider with the same UUID is created.

  • Now, Delete the Compute service.

Validation

  • Check the Complete Services list.

Additional Information

Last updated