Bug 1698021 - [RFE] Provide framework to run Ansible tasks after scale-down / delete
Summary: [RFE] Provide framework to run Ansible tasks after scale-down / delete
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.0 (Train)
Hardware: All
OS: All
medium
medium
Target Milestone: beta
: 16.0 (Train on RHEL 8.1)
Assignee: Emilien Macchi
QA Contact: Cédric Jeanneret
URL:
Whiteboard:
Depends On:
Blocks: 1544441 1693838 1771546
TreeView+ depends on / blocked
 
Reported: 2019-04-09 13:04 UTC by David Peacock
Modified: 2020-02-06 14:40 UTC (History)
12 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.1.1-0.20190829102528.bae3583.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-06 14:39:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 651355 0 'None' MERGED Run ansible before scale down 2020-10-05 04:13:13 UTC
OpenStack gerrit 651507 0 'None' MERGED Introduce scale_tasks 2020-10-05 04:13:21 UTC
OpenStack gerrit 651621 0 'None' MERGED scale-down: run ansible_scale_down workflow before node_delete 2020-10-05 04:13:13 UTC
Red Hat Product Errata RHEA-2020:0283 0 None None None 2020-02-06 14:40:44 UTC

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


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