Bug 1841011

Summary: [DDF] please review 8. + 9. +10.
Product: Red Hat OpenStack Reporter: Direct Docs Feedback <ddf-bot>
Component: documentationAssignee: Irina <igallagh>
Status: CLOSED CURRENTRELEASE QA Contact: RHOS Documentation Team <rhos-docs>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 16.0 (Train)CC: astillma, dhill, igallagh, jamsmith, lmarsh, pmannidi
Target Milestone: ---Keywords: Reopened, Triaged
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-13 15:35:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1788336, 1849166, 1946835, 2002099    
Bug Blocks: 1768678, 2023628    

Description Direct Docs Feedback 2020-05-28 06:55:36 UTC
please review 8. + 9. +10. 
8. service does not exist
9. agents cant be deleted
10. cmd does not work

Reported by: marc.mergehenn

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.0/html/director_installation_and_usage/scaling-overcloud-nodes#annotations:c872a8e0-eed3-4822-91f7-95b4cb26d84f

Comment 3 Archit Modi 2020-06-10 12:55:47 UTC
Closing this as cannot reproduce and insufficient data from reporter:

Ensure python3-osc-placement is installed

8. service exists as shown
(overcloud) [stack@undercloud-0 ~]$ openstack compute service list
+--------------------------------------+----------------+---------------------------+----------+---------+-------+----------------------------+
| ID                                   | Binary         | Host                      | Zone     | Status  | State | Updated At                 |
+--------------------------------------+----------------+---------------------------+----------+---------+-------+----------------------------+
| 42a39c9e-a28a-417b-ad54-99b5a2e16d3e | nova-conductor | controller-0.redhat.local | internal | enabled | up    | 2020-06-10T12:49:42.000000 |
| 712573c5-20be-414f-84ee-c8c0b813756a | nova-scheduler | controller-0.redhat.local | internal | enabled | up    | 2020-06-10T12:49:49.000000 |
| de3c0e4d-3bcc-46bf-9166-70971d6d480b | nova-compute   | compute-0.redhat.local    | nova     | enabled | up    | 2020-06-10T12:49:45.000000 |
| 03525686-0217-4818-b635-1007c4857e0b | nova-compute   | compute-1.redhat.local    | nova     | enabled | up    | 2020-06-10T12:49:42.000000 |
+--------------------------------------+----------------+---------------------------+----------+---------+-------+----------------------------+
9. same, service exists
(overcloud) [stack@undercloud-0 ~]$ openstack network agent list
+--------------------------------------+----------------------+---------------------------+-------------------+-------+-------+-------------------------------+
| ID                                   | Agent Type           | Host                      | Availability Zone | Alive | State | Binary                        |
+--------------------------------------+----------------------+---------------------------+-------------------+-------+-------+-------------------------------+
| 79362159-1532-4473-b4cf-295ac7970cb9 | OVN Controller agent | compute-0.redhat.local    | n/a               | :-)   | UP    | ovn-controller                |
| 49991374-00fa-4d70-9dc1-598e9c4c83d9 | OVN Metadata agent   | compute-0.redhat.local    | n/a               | :-)   | UP    | networking-ovn-metadata-agent |
| a0eeb079-4fe1-4bb0-be14-0a57a0c487ce | OVN Controller agent | compute-1.redhat.local    | n/a               | :-)   | UP    | ovn-controller                |
| 2cee6616-96c5-4bd8-89e9-12416e663a3d | OVN Metadata agent   | compute-1.redhat.local    | n/a               | :-)   | UP    | networking-ovn-metadata-agent |
| 8b8b2933-9ab1-4740-9358-fcabf5b4b88e | OVN Controller agent | controller-0.redhat.local | n/a               | :-)   | UP    | ovn-controller                |
+--------------------------------------+----------------------+---------------------------+-------------------+-------+-------+-------------------------------+
10. command works, reporter should check if they have the python3-osc-placement package installed
(overcloud) [stack@undercloud-0 ~]$ openstack resource provider list
+--------------------------------------+------------------------+------------+
| uuid                                 | name                   | generation |
+--------------------------------------+------------------------+------------+
| 802571da-de4d-4852-830c-431568c86421 | compute-0.redhat.local |          5 |
| 9d9192ac-244e-48c6-b32d-1ec3fc1aeabd | compute-1.redhat.local |          6 |
+--------------------------------------+------------------------+------------+

Comment 4 Archit Modi 2020-06-10 13:38:57 UTC
OKay, after testing the actual scale down, I found the below results and the DDF seems valid

removed compute-0 from the stack

8. compute-0 service does not exist- so we probably don't need this step
(overcloud) [stack@undercloud-0 ~]$ openstack compute service list
+--------------------------------------+----------------+---------------------------+----------+---------+-------+----------------------------+
| ID                                   | Binary         | Host                      | Zone     | Status  | State | Updated At                 |
+--------------------------------------+----------------+---------------------------+----------+---------+-------+----------------------------+
| 42a39c9e-a28a-417b-ad54-99b5a2e16d3e | nova-conductor | controller-0.redhat.local | internal | enabled | up    | 2020-06-10T13:29:42.000000 |
| 712573c5-20be-414f-84ee-c8c0b813756a | nova-scheduler | controller-0.redhat.local | internal | enabled | up    | 2020-06-10T13:29:40.000000 |
| 03525686-0217-4818-b635-1007c4857e0b | nova-compute   | compute-1.redhat.local    | nova     | enabled | up    | 2020-06-10T13:29:42.000000 |
+--------------------------------------+----------------+---------------------------+----------+---------+-------+----------------------------+

9. cannot delete agent, need input
(overcloud) [stack@undercloud-0 ~]$ openstack network agent list
+--------------------------------------+----------------------+---------------------------+-------------------+-------+-------+-------------------------------+
| ID                                   | Agent Type           | Host                      | Availability Zone | Alive | State | Binary                        |
+--------------------------------------+----------------------+---------------------------+-------------------+-------+-------+-------------------------------+
| 79362159-1532-4473-b4cf-295ac7970cb9 | OVN Controller agent | compute-0.redhat.local    | n/a               | XXX   | UP    | ovn-controller                |
| 49991374-00fa-4d70-9dc1-598e9c4c83d9 | OVN Metadata agent   | compute-0.redhat.local    | n/a               | XXX   | UP    | networking-ovn-metadata-agent |
| a0eeb079-4fe1-4bb0-be14-0a57a0c487ce | OVN Controller agent | compute-1.redhat.local    | n/a               | :-)   | UP    | ovn-controller                |
| 2cee6616-96c5-4bd8-89e9-12416e663a3d | OVN Metadata agent   | compute-1.redhat.local    | n/a               | :-)   | UP    | networking-ovn-metadata-agent |
| 8b8b2933-9ab1-4740-9358-fcabf5b4b88e | OVN Controller agent | controller-0.redhat.local | n/a               | :-)   | UP    | ovn-controller                |
+--------------------------------------+----------------------+---------------------------+-------------------+-------+-------+-------------------------------+
(overcloud) [stack@undercloud-0 ~]$  openstack network agent delete 79362159-1532-4473-b4cf-295ac7970cb9
Failed to delete network agent with ID '79362159-1532-4473-b4cf-295ac7970cb9': BadRequestException: 400: Client Error for url: http://10.0.0.148:9696/v2.0/agents/79362159-1532-4473-b4cf-295ac7970cb9, Bad agent request: OVN agents cannot be deleted.
1 of 1 network agents failed to delete.
(overcloud) [stack@undercloud-0 ~]$  openstack network agent delete 49991374-00fa-4d70-9dc1-598e9c4c83d9
Failed to delete network agent with ID '49991374-00fa-4d70-9dc1-598e9c4c83d9': BadRequestException: 400: Client Error for url: http://10.0.0.148:9696/v2.0/agents/49991374-00fa-4d70-9dc1-598e9c4c83d9, Bad agent request: OVN agents cannot be deleted.
1 of 1 network agents failed to delete.

10.resource does not exist-so we probably don't need this step also
(overcloud) [stack@undercloud-0 ~]$ openstack resource provider list
+--------------------------------------+------------------------+------------+
| uuid                                 | name                   | generation |
+--------------------------------------+------------------------+------------+
| 9d9192ac-244e-48c6-b32d-1ec3fc1aeabd | compute-1.redhat.local |          6 |
+--------------------------------------+------------------------+------------+