Commit Graph

36 Commits

Author SHA1 Message Date
OpenDev Sysadmins 780a920738 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:08 +00:00
Lin Yang eec72604a8 Add new subcommand to set node boot source
Change-Id: I1b1606ce609d8d9c6bafb832767c8cffac18c564
2018-03-03 12:08:03 -08:00
Lin Yang 30a0934f61 Add new subcommand to reset node power
Change-Id: Ie2e1281131b82ea6b25a45cec4a2e359712f4f8a
2018-03-01 22:56:37 -08:00
Lin Yang c9e939106e Remove unused tools directory
Change-Id: I390a279672d3c8582bb032b6d5e2ffd16f6f4377
2018-03-01 22:16:49 -08:00
Zuul 9e4f8752d7 Merge "Avoid tox_install.sh for constraints support" 2018-03-02 06:08:46 +00:00
Lin Yang 2a905351ef Assemble node after node composition
Assume most of user will assemble node after composition, so assemble
node automatically instead of requiring user to execute another
command.

Change-Id: Ib60a01d37a03c5499f1c56e56095ffad387ad2e5
2018-03-01 21:11:00 -08:00
Lin Yang 453c208352 Add more details of compose node
Add 'allowed_attach_endpoints', 'allowed_detach_endpoints',
'allowed_boot_source' and 'allowed_reset_node_values' variables,
which show all allowed values of each action for composed node.

Change-Id: Ie933ad2ed0ba6c4859e8cffbf776efa9328260e0
2018-03-01 20:43:27 -08:00
Andreas Jaeger 063f0632fd Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: I53fb6723c1b451f9bbacb1dfc1db681f2b5fce47
2018-02-22 21:11:08 +00:00
Lin Yang 283d1f80c5 Update rsd-lib client initialization process
Change-Id: I1f0c67a71db7686fcc1c7000bbdf518a0480b4d8
2018-02-11 23:39:38 -08:00
Lin Yang f02d3fc713 Add comment for each OSC subcommand
OSC will automatically use subcommands comments to generate usage
doc. So added one line comments for each one as other client project
does.

Change-Id: I5799f3fb989af7855634c3c1fc994e24b1add533
2017-11-28 08:56:54 -08:00
Nate Potter dd8b05c972 Add User Guide to documentation.
Change-Id: Ie9ff82fe341f460c8974368468f8325b1582aa1a
2017-11-27 20:35:51 -08:00
Lin Yang 8159e8eccf Fix pip install package failure
After python-rsdclient is added into upper-constraints, all unit
tests failed in package installation step. Fixed it by using
customized script instead of 'pip install'.

Change-Id: Id2d0e1a91e872559eba2bc80c35295801a3f85e9
2017-11-27 20:23:36 -08:00
Lin Yang 971be6e15e Update CLI usage doc
Added how to set required environment variables and missing
sub-command usage examples.

Change-Id: Ib4ccd707b0bfe3f407923bf9629b91cfcb480065
2017-09-29 16:44:53 -07:00
Jenkins 3ae896423a Merge "Cleanup test-requirements" 2017-09-21 21:55:02 +00:00
Jenkins a47ddba339 Merge "Update OpenStack Client Command-Line Interface documents" 2017-09-21 18:04:27 +00:00
Jenkins 442b05b73c Merge "Add new command to show fabric details" 2017-09-21 17:36:41 +00:00
Jenkins ddaa23df71 Merge "Use new node composition API in rsd-lib" 2017-09-21 17:36:36 +00:00
zhangyangyang 390174797c Cleanup test-requirements
python-subunit is not used directly anywhere
and it is dependency of both testrepository
and os-testr
(probably was used by some tox wrapper script before)

Change-Id: I3d0062ba618130ce13f03373026f412568923304
2017-09-21 23:25:36 +08:00
Lin Yang e04d2d5421 Allow set RSD related environment variables
Make this plugin can recognize RSD arguments from environment
variables, include RSD_URL, RSD_USERNAME, RSD_PASSWORD and
RSD_VERIFY. So user can set them in environment variables to avoid
input them in every command.

Change-Id: I1b4fe8fc529b504b0f80d40427132e8b9364627c
2017-09-20 17:34:05 -07:00
Lin Yang 506407760e Use new node composition API in rsd-lib
The node composition API in rsd-lib has been changed to accept
separate parameters for each resource request instead of whole
request in one single python dict, so update the code to use new
interface.

Change-Id: Ie9bf8a4fe70510c3be078cdd13d66e81d3f1e858
2017-09-19 18:16:17 -07:00
Lin Yang e13da0e763 Add new command to show fabric details
New command 'openstack rsd fabric show <ID>' to allow user to show
the details of fabric resource.

Change-Id: Ie51478e3c66bb8bce57b133fbab2d70f2ba7dc79
2017-09-19 17:22:11 -07:00
Luong Anh Tuan ce5db5e4cf Update OpenStack Client Command-Line Interface documents
This patch update python-rsdclient OpenStack Client command line documents.

Change-Id: Ifff95d0f0bb331339752ddcb227a5bf248aff456
2017-09-18 00:53:57 +00:00
Lin Yang d87091cc1e Add list fabrics command
Add new command 'rsd fabric list' to allow user to list all fabrics
brief info.

Change-Id: I7fbd102c9ff67a54c7f6633eb573b038c0d43f1e
2017-09-11 21:36:17 -07:00
Lin Yang cce43696f1 Add new command to detach resource endpoint
New command 'openstack rsd node detach' to allow user to detach a
specific resource from existing composed node.

Change-Id: Ia9f15793c3d4b87b6647f2f7dc18411be632054b
2017-09-08 15:43:24 -07:00
Lin Yang 93554e3c16 Add new command to attach resource endpoint
New command 'openstack rsd node attach' to allow user to attach a
specific resource to existing composed node, or specify capacity
criteria.

Change-Id: I142fba9faf2b377c65b70420a792606f8ad7b33f
2017-09-08 11:49:07 -07:00
Lin Yang d19e8f5410 Add show storage detail command
Add new command 'rsd storage show' to allow user to display the
storage service details.

Change-Id: Ibfa97f277ddfdae3511445a3ffd5323239eda8f0
2017-09-05 23:22:39 -07:00
Lin Yang 834e086e87 Support more arguments for node compose command
Add several new arguments, "--description", "--processor",
"--memory", "--remote-drives", "--local-drives", "--ethernet" to
allow user to specify node composition requirements in details.

Change-Id: I86aa04e3e84d449dc184de45a0cfab46c48ba7f2
2017-08-24 17:42:05 -07:00
Lin Yang c09c76951e Add list storage services command
Add new command 'rsd storage list' to allow user to list all storage
services brief info like below shows.

$ openstack rsd storage list
+----------+-----------------+-----------------------------+
| Identity |       Name      |         Description         |
+----------+-----------------+-----------------------------+
|    1     | Storage Service | Storage Service for Testing |
+----------+-----------------+-----------------------------+

Change-Id: Id54e630881de4c79f731ca93e6bf7a3c18fe6589
2017-08-24 17:03:56 -07:00
Lin Yang c07b1fe383 Add list composed node command
Add new command 'rsd node list' to list all composed node with brief
info, like:

$ openstack rsd node list
+----------+------+--------------------------------------+-------------+
| Identity | Name |                 UUID                 | Description |
+----------+------+--------------------------------------+-------------+
|    2     | Test | fd011520-86a2-11e7-b4d4-5d323196a3e4 |     None    |
+----------+------+--------------------------------------+-------------+

Change-Id: Ie6ef9aebf45c5f2bb1e0d93c86b5f9a70a600b13
2017-08-24 17:02:43 -07:00
Lin Yang a69faf00c4 Add show composed node detail command
Add new command 'rsd node show' to allow user to get composed node
details by specifying node ID.

Change-Id: I26e4adbbf18519742cc215371e8f86fbb4b7d93e
2017-08-24 16:51:20 -07:00
Lin Yang 6e9aeaaa00 Return new composed node ID
It should return new composed node ID to user, since this is the
only chance for user to get it.

Change-Id: I519111febf5e326f6fa9919472e49e9e04c96f02
2017-08-17 17:45:47 -07:00
Lin Yang fd3fb28906 Add delete composed node command
Add new command 'rsd node delete' to allow user to delete composed
node(s) by specifying node ID.

Change-Id: If0f8bf80ab5a48b2fb85d2082d85973006a28a9b
2017-08-17 17:28:10 -07:00
Lin Yang d043f3be0c Add basic code structure of OSC plugin
This patch added the code of specific RSD plugin in OSC, which allow
user to issue node composition command through OSC, like
'openstack rsd compose
 --rsd-url "https://localhost:8442/redfish/v1/"
 --rsd-username "admin"
 --rsd-password "admin"
 --rsd-disable-verify
 --name "Fake-Name" '

Note: for node composition command, it only support "name" parameter
now. More functionalities will be implemented later.

Change-Id: Idaf48c8b2e5c9b370e69520578d91c8ddb30fd74
2017-08-04 09:28:23 -07:00
Lin Yang 8a9bd85c78 Use py35 instead of py34 in tox
Change-Id: I0f279f969413aa8fd5a0e758ad04423dd8a1aa1a
2017-08-03 10:28:11 -07:00
Lin Yang 3a703fc821 Initial Cookiecutter Commit.
Change-Id: Id20f08f87412df30eda4b37b15fe7fce0547d4d7
2017-08-02 14:44:01 -07:00
OpenStack Project Creator 47658d7831 Added .gitreview 2017-08-02 08:33:58 +00:00