Bug 1698021

Summary: [RFE] Provide framework to run Ansible tasks after scale-down / delete
Product: Red Hat OpenStack Reporter: David Peacock <dpeacock>
Component: openstack-tripleo-heat-templatesAssignee: Emilien Macchi <emacchi>
Status: CLOSED ERRATA QA Contact: Cédric Jeanneret <cjeanner>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.0 (Train)CC: amcleod, aschultz, cjeanner, dbecker, emacchi, jcoufal, lyarwood, mbarnett, mburns, morazi, pweeks, scohen
Target Milestone: betaKeywords: FutureFeature, Triaged, ZStream
Target Release: 16.0 (Train on RHEL 8.1)   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.1.1-0.20190829102528.bae3583.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-06 14:39:53 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:    
Bug Blocks: 1544441, 1693838, 1771546    

Description David Peacock 2019-04-09 13:04:15 UTC
Description of problem:

Presently there is no mechanism by which nodes which are being scaled-down / deleted can run any automated clean up; they simply get shutoff and removed from the pool.

Examples of house-keeping tasks that may be desired include:

Unsubscribing themselves from subscription manager, thus freeing resources.
Cleaning up service entries for compute nodes.

There is a desire for these functions and as such it would be helpful for work to be done to allow such hooks.

Comment 1 Emilien Macchi 2019-04-09 13:10:40 UTC
Upstream blueprint: https://blueprints.launchpad.net/tripleo/+spec/scale-down-tasks

Comment 7 Cédric Jeanneret 2019-12-11 09:23:45 UTC
Since https://bugzilla.redhat.com/show_bug.cgi?id=1544441 has been verified, this one is also verified de fact:
the feature verified in that other BZ uses this new framework for the un-subscription during scale-down.

Test protocol:
- deploy Director with a couple of Overcloud nodes, registered against RHSM
- remove one of the overcloud node
- check that this node has been un-subscribed from RHSM

Comment 9 errata-xmlrpc 2020-02-06 14:39:53 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/RHEA-2020:0283