Commit Graph

57 Commits

Author SHA1 Message Date
OpenDev Sysadmins 75e609df6d 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
qingszhao a3c84733a3 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I7946101188fd8b6afd6cc556698aa05b5f17832c
2018-09-29 20:11:41 +08:00
qingszhao 435c643e36 Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added

Change-Id: I3d95176b7e45457d5e32a77f3c351f908930b6ab
2018-09-29 20:10:59 +08:00
melissaml 95ce62164c Update the URL in HACKING.rst
Change-Id: I80cb65b08be7a49b6e955a3a578ec011e10a88b8
2018-09-25 00:36:27 +08:00
Lin Yang 4c84afaa2e Update remote drive requiement of node composition for RSD 2.3
Change-Id: I4c115db47077c86b1ff6ac096ac72a418d3a1891
2018-09-07 10:02:55 -07:00
Lin Yang b525bda2a3 Add "security" parameter in node compose for RSD 2.3
Change-Id: Id27018f59c308e094804efcb97393668f719d387
2018-09-07 09:32:21 -07:00
Lin Yang 50913a252b Upgrade command version to v2
Because rsdclient provide new sub-commands for RSD 2.3, upgrade
version to v2.

Change-Id: I9f664aef08ac40b5a6b2c0c7705b2231e067ce58
2018-09-06 20:45:08 -07:00
Lin Yang 4ada7530a5 Update storage service for RSD 2.3
Removed obsolete remote_targets, physical_drives, and logical_drives
resources in storage service, but added volumes, drives, endpoints
and storage_pools according to RSD 2.3 spec.

Change-Id: Ie43302af5eba1699a132c8a50b8ff26150620a78
Closes-Bug: #1789683
2018-09-04 17:38:46 -07:00
Lin Yang 887269f6c8 Filter out the path variable of field
One RSD resource may contains several fields that also have _path
variable. That is useless info to user. So filter them out.

Change-Id: Idf453f452603713c8efd64336eee791c656a1d86
2018-06-07 11:29:35 -07:00
Lin Yang 52440b40bc New command to show endpoint details
Change-Id: I982d979ffae268de0ca0e94d6c4a9dfca8699082
2018-06-07 11:03:58 -07:00
Lin Yang 1a99d79894 New command to list all endpoints of one fabric
Change-Id: Iaf31e60813dab94e2d4a3b58f54aa841f77519a6
2018-06-07 10:58:22 -07:00
Lin Yang 7b1f32f791 New command to show storage pool details
Change-Id: I535f25a6d9e22b6a052a427f2ff4bde11dc1119b
2018-06-07 10:18:22 -07:00
Lin Yang 60e350ee3a New command to list all storage pools of one storage service
Change-Id: Iaf3b699591e6f38e25b6e56d459b8f382ea71180
2018-06-07 10:14:18 -07:00
Lin Yang 3dbf2fef5b New command to show drive details
Change-Id: I5beb335dc1d58ff6881f56cc6ecc6f9664303f42
2018-06-07 10:07:34 -07:00
Lin Yang 5d1009e439 New command to list all drives of one storage service
Change-Id: Ib046266c77aa9547f83f7137c0e2cc3a85b8dba3
2018-06-07 09:41:14 -07:00
Lin Yang 8d9c2b3cce New command to delete a volume
Change-Id: I33bae29ea6a044ad677f5f3469f44d40c12c0396
2018-06-07 09:34:47 -07:00
Lin Yang d12ee89f83 New command to create new volume
Change-Id: Ib570954e64622785db456dd6f8a60434bcda2a82
2018-06-07 09:31:21 -07:00
Lin Yang 05a457e8b1 Allow user to Initialize (erase) volume
Change-Id: Id29bd00be193f1a052263d027d8456abf413e42d
2018-06-07 09:01:16 -07:00
Lin Yang 38d082fa63 Allow user to update volume properties
Change-Id: I799325d8dfe2c84b0fe0dbe009aecc6d1ee417b3
2018-06-07 08:54:12 -07:00
Lin Yang 4a736fc894 Add command to show volume detail
Change-Id: Ic8c292a7c93a1732d5da396b6953e18c36bbb79a
2018-06-06 21:09:50 -07:00
Lin Yang af84737f1b Allow user to list all volumes
One sub-command 'rsd volume list' has been added, which allow user
to list all volumes of one storage service and return the brief info.

Change-Id: Icbff783dbc738e503eca4fa7c2d68874073e89d7
2018-06-06 17:44:04 -07:00
Lin Yang 9df5bd1dcc Use resource URI as its identity
Because the resource URI is unique in the whole RSD rack, use it
instead of its identity field.

Change-Id: Ib8a77d55206f94a000a2be0dcd0b1fa3fc37fee7
2018-06-06 17:16:57 -07: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