-
Bug
-
Resolution: Done
-
Normal
-
rhos-18.0.0
-
1
-
False
-
False
-
Committed
-
python-openstackclient-6.2.0-0.20230428105153.05d34ff.el9ost
-
Committed
-
Committed
-
None
-
undefined
-
Moderate
+++ This bug was initially created as a clone of Bug #1778318 +++
Description of problem:
openstack CLI doesn't show ForcedDown column even with --long when nova client does:
(undercloud) [stack@undercloud-0-rhosp13 cloud]$ nova service-list
------------------------------------------------------------------------------------------------------------------------------------------------------------
Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |
------------------------------------------------------------------------------------------------------------------------------------------------------------
dca6499e-5c45-412d-af67-a1088b8e154a | nova-conductor | undercloud-0-rhosp13.localdomain | internal | enabled | down | 2019-10-23T17:49:38.000000 | False | |
b39ddafe-daa8-443e-b544-194812f2b69c | nova-scheduler | undercloud-0-rhosp13.localdomain | internal | enabled | down | 2019-10-23T17:49:41.000000 | False | |
8c9b9ead-2cee-4d4d-87b2-b1a6b95f625f | nova-compute | undercloud-0-rhosp13.localdomain | nova | enabled | down | 2019-10-23T18:32:00.000000 | False | |
cc51f140-b628-4894-ae4c-c022116f1bc9 | nova-conductor | undercloud-0-rhosp13 | internal | enabled | up | 2019-11-29T21:58:06.000000 | False | |
8db20d23-c741-4e34-a86f-dcdd28284bd6 | nova-scheduler | undercloud-0-rhosp13 | internal | enabled | up | 2019-11-29T21:58:05.000000 | False | |
5adce325-dd55-4029-8319-8f1f8d46f671 | nova-compute | undercloud-0-rhosp13 | nova | enabled | up | 2019-11-29T21:58:06.000000 | False |
------------------------------------------------------------------------------------------------------------------------------------------------------------
(undercloud) [stack@undercloud-0-rhosp13 cloud]$ nova service-force-down 5adce325-dd55-4029-8319-8f1f8d46f671
---------------------------------------------------------------------------------+
ID | Host | Binary | Forced down |
---------------------------------------------------------------------------------+
5adce325-dd55-4029-8319-8f1f8d46f671 | undercloud-0-rhosp13 | nova-compute | True |
---------------------------------------------------------------------------------+
(undercloud) [stack@undercloud-0-rhosp13 cloud]$ openstack compute service list --long
---------------------------------------------------------------------------------------------------------------+
ID | Binary | Host | Zone | Status | State | Updated At | Disabled Reason |
---------------------------------------------------------------------------------------------------------------+
1 | nova-conductor | undercloud-0-rhosp13.localdomain | internal | enabled | down | 2019-10-23T17:49:38.000000 | None |
2 | nova-scheduler | undercloud-0-rhosp13.localdomain | internal | enabled | down | 2019-10-23T17:49:41.000000 | None |
6 | nova-compute | undercloud-0-rhosp13.localdomain | nova | enabled | down | 2019-10-23T18:32:00.000000 | None |
8 | nova-conductor | undercloud-0-rhosp13 | internal | enabled | up | 2019-11-29T21:58:36.000000 | None |
9 | nova-scheduler | undercloud-0-rhosp13 | internal | enabled | up | 2019-11-29T21:58:35.000000 | None |
11 | nova-compute | undercloud-0-rhosp13 | nova | enabled | down | 2019-11-29T21:58:36.000000 | None |
---------------------------------------------------------------------------------------------------------------+
(undercloud) [stack@undercloud-0-rhosp13 cloud]$ nova service-list
------------------------------------------------------------------------------------------------------------------------------------------------------------
Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |
------------------------------------------------------------------------------------------------------------------------------------------------------------
dca6499e-5c45-412d-af67-a1088b8e154a | nova-conductor | undercloud-0-rhosp13.localdomain | internal | enabled | down | 2019-10-23T17:49:38.000000 | False | |
b39ddafe-daa8-443e-b544-194812f2b69c | nova-scheduler | undercloud-0-rhosp13.localdomain | internal | enabled | down | 2019-10-23T17:49:41.000000 | False | |
8c9b9ead-2cee-4d4d-87b2-b1a6b95f625f | nova-compute | undercloud-0-rhosp13.localdomain | nova | enabled | down | 2019-10-23T18:32:00.000000 | False | |
cc51f140-b628-4894-ae4c-c022116f1bc9 | nova-conductor | undercloud-0-rhosp13 | internal | enabled | up | 2019-11-29T21:59:56.000000 | False | |
8db20d23-c741-4e34-a86f-dcdd28284bd6 | nova-scheduler | undercloud-0-rhosp13 | internal | enabled | up | 2019-11-29T21:59:55.000000 | False | |
5adce325-dd55-4029-8319-8f1f8d46f671 | nova-compute | undercloud-0-rhosp13 | nova | enabled | down | 2019-11-29T21:59:56.000000 | True |
------------------------------------------------------------------------------------------------------------------------------------------------------------
Version-Release number of selected component (if applicable):
Latest
How reproducible:
Always
Steps to Reproduce:
1. Just use both CLI and see
2.
3.
Actual results:
ForcedDown is missing
Expected results:
Maybe we should see it
Additional info:
Just spent 2 days on a case where it was forced down, customer used "openstack compute service list" but I didn't change my habits yet and am still using the "nova" CLI ... this kind of saved the day.
— Additional comment from melanie witt on 2019-12-06 06:43:50 UTC —
Confirmed to be one of the [many] gaps in the compute API microversions support in python-openstackclient [1]. I've added a note to the section for microversion 2.11 on the upstream etherpad [2].
The 'forced_down' field was added to the GET /os-services API in microversion 2.11 [3].
I think adding this would be a simple RFE (open a storyboard story and implement) upstream [4].
We'll discuss this during our bug triage call tomorrow.
[1] https://github.com/openstack/python-openstackclient/blob/5b3a827a1ff80e4b51c7ede44b84bf640d5b6380/openstackclient/compute/v2/service.py#L95
[2] https://etherpad.openstack.org/p/compute-api-microversion-gap-in-osc
[3] https://docs.openstack.org/api-ref/compute/?expanded=list-compute-services-detail#list-compute-services
[4] https://storyboard.openstack.org/#!/project/openstack/python-openstackclient