Bug 1629128

Summary: [RFE] `openstack overcloud node clean` should have a flag "--provide" to switch the nodes to available after cleaning
Product: Red Hat OpenStack Reporter: Alexander Chuzhoy <sasha>
Component: python-tripleoclientAssignee: Harald Jensås <hjensas>
Status: CLOSED ERRATA QA Contact: mlammon
Severity: medium Docs Contact:
Priority: low    
Version: 14.0 (Rocky)CC: bfournie, hbrock, hjensas, jslagle, mburns, racedoro, sclewis, srevivo
Target Milestone: Upstream M2Keywords: FutureFeature, TechPreview, Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-11.4.1-0.20190611084233.f36d899.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1677772 (view as bug list) Environment:
Last Closed: 2019-09-21 11:18:54 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: 1677772    

Description Alexander Chuzhoy 2018-09-14 20:58:39 UTC
openstack overcloud node clean --all-manageable should have a flag "--provide" to switch the nodes to available after cleaning.


Environment:
puppet-ironic-13.3.1-0.20180831191239.61387eb.el7ost.noarch
python2-ironicclient-2.5.0-0.20180810135843.fb94fb8.el7ost.noarch
python2-ironic-inspector-client-3.3.0-0.20180810080932.53bf4e8.el7ost.noarch
instack-undercloud-9.3.1-0.20180831000258.e464799.el7ost.noarch
python2-ironic-tests-tempest-1.2.1-0.20180822120435.a0a36fe.el7ost.noarch
python-openstackclient-lang-3.16.0-0.20180809175603.f77ca68.el7ost.noarch
python2-openstackclient-3.16.0-0.20180809175603.f77ca68.el7ost.noarch


'openstack overcloud node clean --all-manageable' doesn't have the option to switch all nodes to available.

This forces the user to do that explicitly. 

The introspection command has it:
'openstack overcloud node introspect --all-manageable --provide'

And the cleaning command should have it too.

Comment 2 Dmitry Tantsur 2018-09-19 09:24:16 UTC
Valid feature request (but please do not file tripleo items against openstack-ironic). Note, however, that it should also work with specifying nodes without --all-manageable.

Comment 7 Alexander Chuzhoy 2019-06-26 15:27:22 UTC
Verified:
Environment:
python3-ironic-inspector-client-3.5.0-0.20190313131319.9bb1150.el8ost.noarch
openstack-ironic-common-12.1.2-0.20190615000404.c3cbdb5.el8ost.noarch
openstack-ironic-staging-drivers-0.11.1-0.20190420132245.b7c6755.el8ost.noarch
python3-ironicclient-2.7.2-0.20190529060404.266a700.el8ost.noarch
python3-ironic-lib-2.16.3-0.20190607070401.eca4ac9.el8ost.noarch
puppet-ironic-14.4.1-0.20190423121513.cd9417e.el8ost.noarch
openstack-ironic-conductor-12.1.2-0.20190615000404.c3cbdb5.el8ost.noarch




+ openstack overcloud node clean --all-manageable --provide
Waiting for messages on queue 'tripleo' with no timeout.
Waiting for messages on queue 'tripleo' with no timeout.
Cleaned 8 node(s)
8 node(s) successfully moved to the "available" state.

Comment 9 errata-xmlrpc 2019-09-21 11:18:54 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-2019:2811