specify node uuid in node-create subcommand

Bug #1381214 reported by Ruby Loo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ironicclient
Fix Released
Wishlist
Arun S A G

Bug Description

The CLI for node-create has optional arguments for chassis uuid, driver, driver_info, properties, and extra. To be complete, it should also have an optional argument so that the user could supply a UUID for the node. (This is the 'uuid' attribute in the REST API.)

$ ironic help node-create
usage: ironic node-create [-c <chassis uuid>] [-d <driver>] [-i <key=value>]
                          [-p <key=value>] [-e <key=value>]

Register a new node with the Ironic service.

Optional arguments:
  -c <chassis uuid>, --chassis_uuid <chassis uuid>
                        UUID of the chassis that this node belongs to
  -d <driver>, --driver <driver>
                        Driver used to control the node [REQUIRED]
  -i <key=value>, --driver_info <key=value>
                        Key/value pairs used by the driver, such as out-of-
                        band managementcredentials. Can be specified multiple
                        times
  -p <key=value>, --properties <key=value>
                        Key/value pairs describing the physical
                        characteristics of the node. This is exported to Nova
                        and used by the scheduler. Can be specified multiple
                        times
  -e <key=value>, --extra <key=value>
                        Record arbitrary key/value metadata. Can be specified
                        multiple times

Revision history for this message
Arun S A G (sagarun) wrote :

I will take a look at this.

Changed in python-ironicclient:
assignee: nobody → Arun S A G (sagarun)
Dmitry Tantsur (divius)
Changed in python-ironicclient:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-ironicclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/132137

Changed in python-ironicclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-ironicclient (master)

Reviewed: https://review.openstack.org/132137
Committed: https://git.openstack.org/cgit/openstack/python-ironicclient/commit/?id=403926334c606cb82222727df0e16db683b673a7
Submitter: Jenkins
Branch: master

commit 403926334c606cb82222727df0e16db683b673a7
Author: Arun S A G <email address hidden>
Date: Thu Oct 30 17:08:18 2014 -0700

    Add option to specify node uuid in node-create subcommand

    - node-create subcommand now includes -u or --uuid
    option that allows the user to specify the uuid if
    needed.

    - The uuid parameter is optional

    Change-Id: I1a8332689d6d5f85350877bd4ab64aa173e5d916
    Closes-Bug: 1381214

Changed in python-ironicclient:
status: In Progress → Fix Committed
Changed in python-ironicclient:
milestone: none → 0.7.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.