Bug 1591788

Summary: [Docs] On split-stack setups, left over node information prevents a node from rejoin the cloud
Product: Red Hat OpenStack Reporter: Martin Schuppert <mschuppe>
Component: documentationAssignee: Irina <igallagh>
Status: CLOSED CURRENTRELEASE QA Contact: RHOS Documentation Team <rhos-docs>
Severity: high Docs Contact:
Priority: high    
Version: 12.0 (Pike)CC: ccopello, dasmith, dcadzow, eglynn, igallagh, jhakimra, kchamart, lyarwood, mschuppe, nova-maint, sbauza, sgordon, shtiwari, srevivo, svmichel, tkajinam, vromanso
Target Milestone: ---Keywords: Reopened, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: docs-accepted
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1579785
: 1731150 (view as bug list) Environment:
Last Closed: 2020-07-03 10:29:39 UTC Type: Bug
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: 1579785    
Bug Blocks: 1731150, 1781142    

Comment 3 Martin Schuppert 2018-07-13 14:42:25 UTC
To summarize the doc change.

* existing instructions say [1]:
~~~
...

Finally, remove the node’s Compute service:

(undercloud) $ source ~/stack/overcloudrc
(overcloud) $ openstack compute service list
(overcloud) $ openstack compute service delete [service-id]
~~~

This needs a note which says that in case the compute is being re-deployed with the exact same name, those steps are not needed. 

The service can either be disable with a comment to know why it is down or leave it as is (detected as down) until the node is re-provisioned. When the service gets disabled it needs to be re-enabled after a node with the same hostname is up again.

e.g.
$ openstack compute service set --disable --disable-reason "gets re-provisioned" compute-1.localdomain nova-compute

$ openstack compute service list --long
...
| 80 | nova-compute     | compute-1.localdomain    | nova     | disabled | up    | 2018-07-13T14:35:04.000000 | gets re-provisioned |
+----+------------------+--------------------------+----------+----------+-------+----------------------------+---------------------+

Same for the neutron agent:
$ openstack network agent set --disable --description "gets re-provisioned" 3134ae01-f3d2-432c-886c-dcf4b4ac2a3c

When up again enable the services:
$ openstack compute service set --enable  compute-1.localdomain nova-compute
$ openstack network agent set --enable --description "gets re-provisioned" 3134ae01-f3d2-432c-886c-dcf4b4ac2a3c

[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/12/html-single/director_installation_and_usage/#sect-Removing_Compute_Nodes

Comment 9 Irina 2019-07-01 10:17:25 UTC
*** Bug 1685766 has been marked as a duplicate of this bug. ***