Commit Graph

73 Commits

Author SHA1 Message Date
Eric Fried d1a515eac0 Import argparse directly
We were importing _argparse (private) from cliff to get at
argparse.HelpFormatter, which was present there only because it was
being transitively imported directly from argparse itself. Commit
584352dcd008d58c433136539b22a6ae9d6c45cc got rid of this transitive
import, which means that rsdclient would have broken on the next cliff
release.

This commit just imports argparse directly instead.

And because that was the only reference to cliff in the project, this
commit also removes it from the requirements.

For more information, see http://lists.openstack.org/pipermail/openstack-discuss/2020-January/011852.html

Change-Id: I7f99d80a3be38acc45af83e54b32ebc2f5b40859
2020-01-14 11:37:05 -06:00
Eric Fried d5935fdae6 Fix python-openstackclient plugin doc build
Some plugin command option help strings contained invalid-to-sphinx
bullet lists, causing building autoprogram-cliff from
python-openstackclient to break with errors like:

<ComposeNode>:1:Unexpected indentation.

This commit reformats the help strings to use the right newlines and
indents so they build properly.

Change-Id: Ia3fd6d5ec76e0e6d6aee87d8a8790a1ed2d38a26
2019-10-22 14:58:32 -05:00
Lin Yang 5e05430720 Update rsd-lib dependency to 1.2.0
Change-Id: I4a11a3e35d1c595c73cec9532c6c4bb1a31eb8e4
2019-09-11 17:16:08 -07:00
Lin Yang b76f3c9e2f Add generic Patch and Post command
Change-Id: Ic1ee2e71ca377f157be3e81306a4a625bd165f54
2019-09-11 13:23:41 -07:00
Lin Yang 087b31149c Add generic Delete command to delete one resource
Change-Id: I613af0472d3bde1d64a1950e38d48442bda9a512
2019-09-11 13:04:13 -07:00
Lin Yang f8e5ac2e7f Add generic get command to retrieve all resources
Change-Id: I530b5ca8a4e6f2ee673f31d0300c75b566f1379d
2019-09-11 11:51:29 -07:00
Lin Yang eab038832d Ignore vscode related files in .gitignore
Change-Id: I69c69e1a0dd1c6caddafe583c438e4492a983d1b
2019-09-11 11:51:19 -07:00
Lin Yang a6290aab72 Set default boot source mode to "once"
Change-Id: I42bc8be4891c3178ce05f428e99587e2eadb7b4b
2019-09-11 11:49:49 -07:00
OpenDev Sysadmins 533bf845ec 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 c46c7aca90 Add command to create new endpoint
Change-Id: I3c8da8b7e5bb0b1f37533799ce09d0847c6f6551
2019-03-18 16:44:50 -07:00
Lin Yang c3c311c904 Update attach action for RSD 2.3
Change-Id: I991fa5ed9a75a528a6281bc0a387b016dcdc7736
2019-03-18 15:20:44 -07:00
Lin Yang 2bffbbcc45 Support to show System resource details
Change-Id: Id1183cd7803b0e420ad22893bf101b7e6d5a2e0f
2019-03-18 15:09:51 -07:00
huang.zhiping e8a24427c6 Update home-page
Change-Id: Idfb66a4ffcdd4e7e31a38e370aa8db64eb7de2a6
2019-01-11 16:45:05 +00:00
98k 206ed15f4f Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I507de27dd2ecb0d7a268ed0c1f7766a2c224e5d1
2018-12-04 07:23:06 +00:00
Vieri 4e461f1740 Add Python 3.6 classifier to setup.cfg
Change-Id: I3b0d572526245fc15533bc37c347c25ef37e460f
2018-11-27 07:10:08 +00:00
chenxiangui 7b163f37df Remove invalid url
Remove the invalid document url in README.rst

Change-Id: I8c1570c9527ac10505077c2be0f1a53459c75841
2018-11-13 08:33:13 +08:00
98k 5a3c41aa1e Add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ife8dbfbe39cd3e246719e2b3e794ef4e6896ffda
2018-11-09 03:01:10 +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