HostMappingNotFound in wigi.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
It seems to be diffrent from #1780727.
# openstack compute service delete 26
Failed to delete compute service with ID '26': 发生意外 API 错误。请在 http://
<class 'nova.exception
nova-api-log:
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
2019-11-15 08:41:23.576 11235 ERROR nova.api.
。
# openstack compute service list |egrep "(3713|ID)"
| ID | Binary | Host | Zone | Status | State | Updated At |
| 26 | nova-compute | computer3713hpdl580 | sugonZone | disabled | down | 2019-07-
# nova service-list |egrep "(3713|Id)"
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |
| 8045be15-
# openstack module list
+------
| Field | Value |
+------
| barbicanclient | 4.7.2 |
| cinderclient | 4.0.1 |
| designateclient | 2.10.0 |
| keystoneclient | 3.17.0 |
| novaclient | 11.0.0 |
| openstack | 0.17.2 |
| openstackclient | 3.16.2 |
| swiftclient | 3.6.0 |
+------
Changed in nova: | |
status: | Invalid → New |
Which release is nova in the API?
As you can see from the service listing, nova CLI does it with the latest microversion negotiated between novaclient and the server so you see the service id as a uuid (microversion 2.53+) but openstack compute service list uses microversion 2.1 by default, so you see the int id.
I think the issue is you're trying to delete the service using openstack client but with the integer id and starting in pike you need to use the uuid to uniquely identify the service in a cell.
See the note here:
https:/ /docs.openstack .org/python- openstackclient /latest/ cli/command- objects/ compute- service. html#compute- service- delete
"If using --os-compute- api-version 2.53 or greater, the ID is a UUID which can be retrieved by listing compute services using the same 2.53+ microversion."
Anyway, try deleting the service using microversion 2.53 and the service id as a uuid and see if that solves the issue.