<div dir="ltr"><div>Hello Albert,</div><div><br></div><div>You are seeing conflicting IDs because these services belong to different Nova cells and are in different databases: your scheduler services are in cell0 while your compute hosts are probably in a default cell.</div><div>This is why, starting from Nova API 2.53 [1], compute services are identified by UUID instead of database IDs.</div><div><br></div><div>This is not really a bug with the OpenStack client, but a known issue that it uses the 2.1 API by default, with all its limitations. You can specify a newer API version like this:</div><div><br></div><div>openstack --os-compute-api-version 2.53 compute service list<br></div><div><br></div><div>openstack --os-compute-api-version 2.53 compute service delete <uuid><br></div><div><br></div><div>[1] <a href="https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#maximum-in-pike">https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#maximum-in-pike</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 27 Jun 2022 at 21:02, Albert Braden <<a href="mailto:ozzzo@yahoo.com">ozzzo@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">We're running kolla-ansible Train. We were trying to delete some compute services today and we got an error:<br>
<br>
$ openstack compute service delete 54<br>
Failed to delete compute service with ID '54': Service id 54 refers to multiple services. (HTTP 400) (Request-ID: req-3bc400a4-367e-41dc-85f8-fa9011cc96cc)<br>
1 of 1 compute services failed to delete.<br>
<br>
When we used "openstack compute service list" we saw that ID 54 was assigned to a nova-compute service on a hypervisor, and to a nova-scheduler service on a controller. We worked around it by using "nova service-list" to get the UUID-style ID and then "nova service-delete"<br>
<br>
After that I sorted by ID with " --sort-column ID" and found that some active services have duplicate IDs:<br>
<br>
| 33 | nova-compute |<region>-compute504.<domain> | AZ22 | enabled | up | 2022-06-27T18:22:47.000000 |<br>
| 33 | nova-scheduler | <region>-ctrl1.<domain> | internal | enabled | up | 2022-06-27T18:22:43.000000 |<br>
<br>
Is this a bug in the Openstack client?<br>
<br>
</blockquote></div></div>