Bug 1241094 - adding more node settings into Unified openstack CLI
Summary: adding more node settings into Unified openstack CLI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-ironicclient
Version: Director
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: z2
: 7.0 (Kilo)
Assignee: Brad P. Crochet
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-08 12:25 UTC by Ofer Blaut
Modified: 2023-02-22 23:02 UTC (History)
10 users (show)

Fixed In Version: python-ironicclient-0.5.1-11.el7ost
Doc Type: Enhancement
Doc Text:
Users can now set the maintenance mode and provision state of Bare Metal Provisioning (Ironic) nodes using 'openstackclient' commands. Previously, Ironic used a mix of 'python-ironicclient' and 'openstackclient' commands. This enhancement provides a more unified interface to the user. The new commands are available as part of the 'openstack baremetal' command-line interface.
Clone Of:
Environment:
Last Closed: 2015-10-08 12:25:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 206119 0 None None None Never
OpenStack gerrit 216727 0 None None None Never
Red Hat Product Errata RHBA-2015:1864 0 normal SHIPPED_LIVE openstack-ironic bug fix advisory 2015-10-08 16:14:15 UTC

Description Ofer Blaut 2015-07-08 12:25:12 UTC
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:

Comment 3 Lucy Bopf 2015-09-16 05:39:30 UTC
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

Comment 4 Ola Pavlenko 2015-09-16 15:09:52 UTC
openstack baremetal maintenance --off/--on doesn't change the Maintenance value .

Comment 6 Alexander Chuzhoy 2015-09-30 15:04:24 UTC
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       |

Comment 8 errata-xmlrpc 2015-10-08 12:25:12 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/RHBA-2015:1864


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