15 Commits

Author SHA1 Message Date
Lucas Alvares Gomes
4f53b58533 Add set-console-mode, get-console commands
Get connection information about the console and enable/disable the
console on the node.

Shows the console_enabled field in the node-show command.

Change-Id: I1cc4c6d97297ab8631f2923a5e7bd800b7d3c11c
2014-02-28 11:05:58 +00:00
Lucas Alvares Gomes
22c64533be Filtering nodes by maintenance mode
Add support for filtering nodes on maintenance mode in the node-list
command.

Change-Id: I89ff87dbeaa9e74108cfac2c4c1ea209ea0e1556
2014-02-24 14:18:07 +00:00
Lucas Alvares Gomes
11f56cca61 Add node.states() to the client library
The node.states() does issue GET request at /nodes/<uuid>/states to get
the current states of that node.

Change-Id: I9e93447df53a0ba1e0f723e95af80fb126218626
2014-02-05 11:35:07 +00:00
Lucas Alvares Gomes
50f0b607aa Add set_provision_state to the client libs
The commit https://review.openstack.org/#/c/61160/ exposes in the Ironic
API a way to trigger the provisioning of a node. This patch add this
functionality on the client libraries (Not exposed on the CLI).

Change-Id: I8c0f339f2c76c153ecba961d0ca411d438c21ceb
2014-01-03 18:20:04 +00:00
Lucas Alvares Gomes
e9a44653d8 Rename nodes/<uuid>/state to nodes/<uuid>/states
The commit https://review.openstack.org/#/c/60299 refactored the /state
subresource of nodes in the Ironic API and one of the changes made was
to rename the subresource from /state to /states (plural) since now both
power and provision state can be retrieved in one request call.

Change-Id: I3e3cf29fa0fd48063ae0ca14eac6f685ccc44e65
2013-12-17 14:31:10 -08:00
Jenkins
66375e50ce Merge "Add node-validate to cli" 2013-12-15 22:32:40 +00:00
Jenkins
84d3a74006 Merge "Replace chassis_id with chassis_uuid on Nodes" 2013-12-09 16:59:53 +00:00
Devananda van der Veen
96acee3a53 Enable rebooting in the client lib and cli
The client library should be able to request that a node be rebooted by
passing the "reboot" state to the API. This functionality should be
exposed in the CLI as well.

This depends on commit Ic13c046c621211d9c1533325812955233441d2da

Change-Id: I7954c02a3b5fd8f6caa574fd581f2ae3b0c3d422
2013-12-05 13:17:04 -08:00
Lucas Alvares Gomes
9712331aaa Add node-validate to cli
Add the node-validate command that triggers the validation of the 'core'
and 'standardized' driver interfaces of a given node. This will also be
used by the ironic driver on nova to validate the node driver interfaces
before deploying it.

Change-Id: I93811c9bfbfe4f7b8559fc4ce566c8d4e19a54ac
2013-11-27 15:00:38 +00:00
Lucas Alvares Gomes
fb99cd7502 Replace chassis_id with chassis_uuid on Nodes
The commit https://review.openstack.org/#/c/57495/ introduced the
chassis_uuid attribute for Nodes in the Ironic API, this patch adjusts
the client to reflect that change.

Change-Id: Ia490fbe0bcf32fc474a3c74842003addc2a94e6d
2013-11-25 15:45:24 +00:00
linggao
f5823b20bc Modifies CLI to show nodes by instance uuid
This patch updates the node-show subcommand for ironic so that it
shows the node that matches the given instance UUID.
ironic node-show [--instance] id
It also updates node-list subcommand so that it can show all the
nodes that have instance UUID associated or the opposite.
ironic node-list [--associated true|false]
This patch also fixes a few strings for i18n support.

Change-Id: I2aec9ba6e296e0d1db9f3ef9eed7236ecfb32cf6
Closes-Bug: #1239026
2013-11-13 21:56:23 +00:00
Lucas Alvares Gomes
ce93dd5ce1 Add node-set-power-state to cli
Add the node-set-power-state command to allow changing the power state
of a node using the cli.

Change-Id: I176bfe54db84e1c5677f7955b9cf247f0d09be4e
2013-11-01 17:42:50 +00:00
Lucas Alvares Gomes
f58affc3f6 Add node-port-list
List the ports contained on a specifc node.

Change-Id: I3172ac981cb790014849c705a1571b25104a9280
Closes-Bug: #1236638
2013-10-15 16:57:59 +01:00
Lucas Alvares Gomes
cc66495430 Implement *-update commands to resrouces
Added node-update, chassis-update and port-update commands for v1.

Change-Id: I051841fce2872f1e19f95117e8827d7a2b1b521c
2013-09-30 16:59:14 +01:00
Devananda van der Veen
c5deb28ea1 Implement Node commands
Implement show, list, create, and delete for Nodes,
and add unit tests.

Change-Id: I77f95e9ad4d27d21682d202a5a410ab7f974a78d
2013-09-25 19:16:20 -07:00