Description of problem: We need support for few node setting via Unified openstack CLI : node-set-provision-state node-set-maintenance it might be set via : openstacl baremetal set but not actual way to see it stack@puma33 ~]$ openstack help baremetal set usage: openstack baremetal set [-h] [-f {shell,table,value}] [-c COLUMN] [--max-width <integer>] [--prefix PREFIX] [--update] <node> <path=value> [<path=value> ...] Set baremetal properties positional arguments: <node> Name of UUID of the node. <path=value> Property to set or update. Can be specified multiple times. optional arguments: -h, --help show this help message and exit --update Update existing attribute output formatters: output formatter options -f {shell,table,value}, --format {shell,table,value} the output format, defaults to table -c COLUMN, --column COLUMN specify the column(s) to include, can be repeated table formatter: --max-width <integer> Maximum display width, 0 to disable shell formatter: a format a UNIX shell can parse (variable="value") --prefix PREFIX add a prefix to all variable names Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1.try to set different node modes ironic node-set-provision-state ironic node-set-maintenance via UCLI 2. 3. Actual results: Expected results: Additional info:
NEEDINFO: Brad This bug is marked for inclusion in RHBA-2015:21553 [1] but does not currently contain draft documentation text. To ensure the timely release of this advisory, please provide draft documentation text for this bug as soon as possible. If you do not think this bug requires errata documentation, set the requires_doc_text flag to "-". To add draft documentation text: * Select the documentation type from the "Doc Type" drop down field. * A template will be provided in the "Doc Text" field based on the "Doc Type" value selected. Enter draft text in the "Doc Text" field. For further information on this process, refer to "Describing Errata Release and Technical Notes for Engineers" [2]. Thank you for your assistance! [1] https://errata.devel.redhat.com/advisory/21553 [2] https://engineering.redhat.com/docs/en-US/Policy/70.ecs/html/Describing_Errata_Release_and_Technical_Notes_for_Engineers/index.html
openstack baremetal maintenance --off/--on doesn't change the Maintenance value .
Verified: Environment: python-openstackclient-1.0.3-2.el7ost.noarch python-ironicclient-0.5.1-11.el7ost.noarch Played with openstack baremetal maintenance --off/--on <node UUID> Verified that the value in the maintenance column changes accordingly. [stack@undercloud ~]$ openstack baremetal maintenance --on 3d1781dc-5580-4c57-b100-374ccb7e5254 [stack@undercloud ~]$ ironic node-list +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | UUID | Name | Instance UUID | Power State | Provision State | Maintenance | +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | 3d1781dc-5580-4c57-b100-374ccb7e5254 | None | None | power off | available | True | [stack@undercloud ~]$ openstack baremetal maintenance --off 3d1781dc-5580-4c57-b100-374ccb7e5254 [stack@undercloud ~]$ ironic node-list +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | UUID | Name | Instance UUID | Power State | Provision State | Maintenance | +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | 3d1781dc-5580-4c57-b100-374ccb7e5254 | None | None | power off | available | False | Played with openstack baremetal provision state -- <node UUID> [stack@undercloud ~]$ openstack baremetal provision state --manage 3d1781dc-5580-4c57-b100-374ccb7e5254 [stack@undercloud ~]$ ironic node-list +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | UUID | Name | Instance UUID | Power State | Provision State | Maintenance | +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | 3d1781dc-5580-4c57-b100-374ccb7e5254 | None | None | power off | manageable | False | openstack baremetal provision state --provide 3d1781dc-5580-4c57-b100-374ccb7e5254 [stack@undercloud ~]$ ironic node-list +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | UUID | Name | Instance UUID | Power State | Provision State | Maintenance | +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | 3d1781dc-5580-4c57-b100-374ccb7e5254 | None | None | power off | available | False |
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/RHBA-2015:1864