Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1266082 - RHEL unregistration doesn't work when scaling down
RHEL unregistration doesn't work when scaling down
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates (Show other bugs)
7.0 (Kilo)
Unspecified Unspecified
unspecified Severity unspecified
: y1
: 7.0 (Kilo)
Assigned To: Jan Provaznik
Alexander Chuzhoy
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-24 08:41 EDT by Jan Provaznik
Modified: 2015-10-08 08:19 EDT (History)
7 users (show)

See Also:
Fixed In Version: python-rdomanager-oscplugin-0.0.10-8.el7ost openstack-tripleo-heat-templates-0.8.6-71.el7ost
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-10-08 08:19:42 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 227225 None None None Never
OpenStack gerrit 227226 None None None Never
OpenStack gerrit 229847 None None None Never
Red Hat Product Errata RHSA-2015:1862 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Linux OpenStack Platform 7 director update 2015-10-08 12:05:50 EDT

  None (edit)
Description Jan Provaznik 2015-09-24 08:41:51 EDT
Description of problem:
When deleting overcloud nodes, nodes are deleted *before* RHELUnregistrationDeployment resource is being deleted. Then RHELUnregistrationDeployment is stuck in DELETE_IN_PROGRESS and overcloud stack is stuck in UPDATE_IN_PROGRESS.

Steven found out the root cause of the problem: RHELUnregistrationDeployment uses  ComputeNodesPostDeployment. And scale-down is treated as an
update, so ComputeNodesPostDeployment is updated *after* the Compute
ResourceGroup has been resized.

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-0.8.6-64.el7ost.noarch

Steps to Reproduce:
1. openstack overcloud deploy --templates --rhel-reg --reg-method portal --reg-org xxx --reg-activation-key 'key' --compute-scale 2
2. openstack overcloud node delete --templates --stack overcloud 86894343-a032-45f2-a619-122a23a3d5ba

Actual results:
Overcloud stack remains in UPDATE_IN_PROGRESS.

Expected results:
Stack update is completed.
Comment 2 Jan Provaznik 2015-09-24 08:45:20 EDT
upstream patche from Steven:
https://review.openstack.org/#/c/227226/
Comment 6 Alexander Chuzhoy 2015-10-01 15:53:53 EDT
Verified:

Environment:
python-rdomanager-oscplugin-0.0.10-8.el7ost.noarch
openstack-tripleo-heat-templates-0.8.6-71.el7ost.noarch



Deployed with:
1.
openstack overcloud deploy --templates --control-scale 3 --compute-scale 1  --ceph-storage-scale 0 -e <yaml files> --ntp-server X.X.X.X  --timeout 90 --compute-flavor compute --control-flavor control -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml --rhel-reg --reg-method portal --reg-org <ID>  --reg-activation-key '<key>'

2.
Remobed a node with:
openstack overcloud node delete --templates --stack overcloud 566f7a94-802a-43f9-9ba1-ff544884b1c7


Resulted in:

+--------------------------------------+------------+-----------------+----------------------+
| id                                   | stack_name | stack_status    | creation_time        |
+--------------------------------------+------------+-----------------+----------------------+
| 8291d6ae-755c-4e63-a332-ed2623472a38 | overcloud  | UPDATE_COMPLETE | 2015-10-01T18:57:56Z |
+--------------------------------------+------------+-----------------+----------------------+
Comment 8 errata-xmlrpc 2015-10-08 08:19:42 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1862

Note You need to log in before you can comment on or make changes to this bug.