12 Commits

Author SHA1 Message Date
Nisha Agarwal
56663b38e6 Add CLI support for RAID configuration
This commits add the following:

* Ability to set target_raid_config for a node using
  node-set-target-raid-config.

* Display target_raid_config and raid_config in node-show.

* Display logical disk properties for a driver using
  driver-raid-logical-disk-properties.

NOTE: Client still defaults to version 1.9, so
  '--ironic-api-version 1.15' (or above) should be
  added to the CLI to use the feature as RAID can be
  triggered only with manual cleaning which uses the
  ironic-api-version 1.15.

Co-Authored-By: Nisha Agarwal <agarwalnisha1980@gmail.com>
Closes_bug: 1526400
Change-Id: Id7bb8a242838029e4cc3715d18b27fb1d5cd4dfa
2016-03-03 10:35:01 -08:00
Lin Tan
cd3cd7e791 Add a new cmd method node-get-vendor-passthru-methods
This method will return vendor-passthru-methods for the node.

Change-Id: I1c5b18e2102ef355d0619be3c87771dafb7733ae
Partial-Bug: #1507546
2015-11-18 13:34:59 +08:00
Lucas Alvares Gomes
8fe93c21b6 Add provision_updated_at field to nodes
The provision_updated_at field was introduced long time ago [1] but the
client never exposed it. This patch is fixing it.

[1] a4bc32e54cd22b1e3f49409733e850a31e98e040

Change-Id: Ife44c4dbfb2e99cdab51fa00116832d975f03bce
2015-07-20 12:04:50 +01:00
Ruby Loo
aea764b451 Expose node's clean_step and bump default version
This exposes the node's clean_step field by bumping the default version
from 1.6 to 1.7 and adding clean_step to various lists.

Change-Id: I2d9f2e58ed198bc8cb5bab67a6f8baf85bbbf972
Closes-Bug: #1466693
2015-07-07 23:08:34 +00:00
John L. Villalovos
30b01689f4 Refactor resource_fields.py
Refactor the resource_fields.py file to remove some (but not all) of the
duplication that is occurring.

  * Created a class Resource to contain the fields and label values
  * Added test cases for the new Resource class
  * Use the new Resource class to hold data for Chassis, Node, and
    Ports.
  * Have logic to support a 'sort_fields' and 'sort_labels' property
    which removes fields/labels which can not be used for sorting.

Change-Id: I846517a3714b1a86ef7ed7f52e911376e1915bb5
2015-05-28 10:28:57 -07:00
Kan
6e8d761688 Disable meaningless sort keys in list command
The sort keys are:
For ports: 'extra'
For chassis: 'extra'
For nodes: 'properties', 'driver_info', 'extra', 'instance_info', 'driver_internal_info

Change-Id: I6b9fce16893335b7e4fb0b663b21f2dff2cdbe8e
Depends-On: I340c88ea7d098ca5943d60adc73f63a0af79a405
Closes-Bug: #1446146
2015-05-27 02:12:58 +00:00
John L. Villalovos
2df670cf30 Remove unneeded 'utf-8' coding lines
This is basically a revert of commit:
  af741ec2236619880fa902d68aef4a6ae6cef534

It was decided that only files that need to have the line:
  # -*- coding: utf-8 -*-
Should have the line[1] as a general principle

This patch removes the 'utf-8' coding line from files that consist
entirely of ASCII characters.

[1]
http://eavesdrop.openstack.org/meetings/ironic/2015/ironic.2015-04-20-17.00.html

Partial-bug: #1325193
Change-Id: I88c1c37f7b580aa805eae9d4a1e66d33302a325f
2015-04-21 16:44:47 +00:00
Devananda van der Veen
94abd4972d Add support for logical names
Add client support for node logical names.

- update help strings to indicate places where Names can be used instead
  of UUIDs
- add new "-n" / "--name" parameter to "ironic node-create"
- add Name field to output of both "node-list" and "node-show"

Change-Id: Id16255e9611e95bd37a225ff475268f609726e37
Implements: blueprint logical-names
2015-03-18 10:39:59 -07:00
Nisha Agarwal
93d9d7bdc0 Add support for inspection to node-set-provision-state
Added the possible actions inspect, manage and provide
to node-set-provision-state. It enables node-show
to show the fields 'inspection_finished_at' and
'inspection_started_at' also.

Implements : blueprint ironic-node-properties-discovery

Change-Id: Ifd97696a22c0c79687a0190ec13f827467286e2e
2015-03-10 20:42:04 -07:00
Lin Tan
d302116b37 Add driver_internal_info to node-show output
Outputs driver_internal_info when performing node-show

Change-Id: I676804ae9ce9da51662aab5956601f9aa1cba93b
Implements: blueprint driver-internal-info
2015-01-28 16:12:09 +08:00
Jim Rollenhagen
c8ebac838e Add maintenance_reason to node-show output
Outputs maintenance reason when performing node-show.

Change-Id: I1ce3b96155cd38264075ccc56b051780083ab6a3
Implements: blueprint maintenance-reason
2014-11-20 08:22:45 -08:00
Lucas Alvares Gomes
14d264b171 List resources with detail
This commit adds support for getting a list of ports, chassis, ports
associated with a node and nodes associated with a chassis with all
attributes, to both the client and the shell CLI.

Closes-Bug: #1366866
Change-Id: If1941de66d70cdbcc3f31cefdbcd4f634e6ce24e
2014-09-09 15:10:44 +01:00