Bug 1266082 - RHEL unregistration doesn't work when scaling down
Summary: RHEL unregistration doesn't work when scaling down
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: y1
: 7.0 (Kilo)
Assignee: Jan Provaznik
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-24 12:41 UTC by Jan Provaznik
Modified: 2023-02-22 23:02 UTC (History)
6 users (show)

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:
Clone Of:
Environment:
Last Closed: 2015-10-08 12:19:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 227225 0 None None None Never
OpenStack gerrit 227226 0 None None None Never
OpenStack gerrit 229847 0 None None None Never
Red Hat Product Errata RHSA-2015:1862 0 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Linux OpenStack Platform 7 director update 2015-10-08 16:05:50 UTC

Description Jan Provaznik 2015-09-24 12:41:51 UTC
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 12:45:20 UTC
upstream patche from Steven:
https://review.openstack.org/#/c/227226/

Comment 6 Alexander Chuzhoy 2015-10-01 19:53:53 UTC
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 12:19:42 UTC
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.