1) Added new params for filtering by:
- share network
- snapshot
- volume type
- host
- limit and offset a la pagination
- project id (useful with '--all-tenants')
- metadata*
- extra-specs*
- direction (asc, desc)*
- key of share*
* requires server-side update
2) Added aliases for params, mostly in perspective to avoid mess of underscore
and dash symbols.
3) Updated utils.print_list func to print results as is without reordering.
Implements blueprint improve-share-list-filtering
Change-Id: I6fe92c5242f18c900e109271f9182bd5ed287b25
When we have more than one alias for one command option, like
"manila list [--snapshot_id %id%][--snapshot-id %id%]"
We should be ok provided request like following:
"manila list --snapshot %id%"
This change makes above possible.
Also added restriction to use only one alias at a time.
Change-Id: Ibd7de3b75408d50ff97b5b9d19307a5612d7b425
Closes-Bug: #1379472
Without this change git considers temp files of vim and cover tox job as new
files, so add them to .gitignore.
Change-Id: Id1f7b2785b928dedd00f0848aad7ad81718699eb
Since manila is now an incubated project, use oslosphinx together with
the incubated theme.
Unset html_static_path since there's currently no static file and sphinx
warns otherwise.
Change-Id: Icfbf2c0ee214da870c3c711a34b6a649e9878659
Remove intersphinx from the docs build as it triggers network calls that
occasionally fail, and we don't really use intersphinx (links other
sphinx documents out on the internet)
This also removes the requirement for internet access during docs build.
This can cause docs jobs to fail if the project errors out on
warnings.
Change-Id: I71e941e2a639641a662a163c682eb86d51de42fb
Closes-Bug: #1368910
Manilaclient has functionality of discovering what was provided with identifing
object param, either its id or name.
But manilaclient handle only id's for security-service commands.
Changed APIs:
- security-service-delete;
- security-service-get;
- security-service-update;
- share-network-security-service-add;
- share-network-security-service-remove;
Change-Id: Iaf30c30b09a2a09b11c896f5a6c2bcb5fc28d64e
Closes-Bug: #1346374
If we run unittests there are appear dir .venv and file subunit.log
So, add these files to gitignore.
Change-Id: I64c400d1333e12b87da7fcd2c64772964e3f1b3c
This patch adds GlusterFS as a supported protocol (in addition
to NFS and CIFS) in the Share/NAS type doc/help string. Since the
Manila server side now support cert based access type which
introduced 'glusterfs' as a new share protocol, this patch
updates the manilaclient help/doc string to reflect the same.
'glusterfs' protocol support was added to server side using:
https://review.openstack.org/116859
Change-Id: I94cbecd55fabbfd1bb7c06184e4679c7531d0214
Closes-Bug: #1367205
This patch adds support for cert-based access type.
The access_to parameter represents certificate's CN
(aka common name) to which access is denied or allowed
by the backend.
Partially-implements blueprint cert-based-access-type
Change-Id: I70c21397028e642bcf018ff254466046e38dcc3a
Make help strings consistent, following oslo.config recommendations:
* Capitalize properly
* Fix grammar and language
* Add "." at end of help string
Change-Id: I412eca2ee67c5e6152f0a70b2a5073ebd190796d
Sending errors to stderr is just the right thing to do.
And, in addition, it's consistent with the existing code
in manilaclient/client.py:main().
Change-Id: Ib482fe8b29d3ab9f1af6a23b2ab54aea6e9e88bc
When we try delete share that does not exist, we get following error:
UnboundLocalError: local variable 'share_ref' referenced before assignment
Change-Id: I2aca0874e76d1145825b89e34bcd9a53fe7a2b1d
Closes-Bug: #1353466
Remove functions 'arg', 'env' and 'add_arg' from
manilaclient.utils and use same functions from cliutils instead.
Partially implements: blueprint use-common-code
Change-Id: Ib41250d527c5949cdfb7c6956703ff4b371a062b
First part of manilaclient.utils module cleanup,
where usage of deleted functions replaced with functions
from common code.
Partially implements: blueprint use-common-code
Change-Id: Iefe7da601cdaf030787c6d7588dd0c1706e309cd
Replace own implementation of 'Resource' class with
same one from common apiclient code.
Partially implements: blueprint use-common-code
Change-Id: I87ac06931a23721fc8cc2d58b5a9473618073f32
Delete own implementation of 'getid' func and
use same one from common apiclient code.
Partially implements: blueprint use-common-code
Change-Id: I833def921aaf105740e429453ee6b017012e7303
Manila API that is used by 'list' command is going to support
new key 'share_server_id'.
Partially implements bp add-admin-api-list-shares-for-share-server
Change-Id: I70822d2e6bfc16b8407f3bf917119dcb9a551bf0
With merge of commit:
ce35f9b847
File run_tests.sh became broken, it tries to use old names of renamed files with dependencies:
tools/pip-requires → requirements.txt
tools/test-requires → test-requirements.txt
Change-Id: Id83f55201ef01a9c3f7ee37406ac6070c4b14c5e
Closes-Bug: #1342538
apiclient package from common code has 'exceptions' module,
so, lets reuse its exceptions and leave defined only one
exception that is absent there - NoTokenLookupException.
Partially implements: blueprint use-common-code
Change-Id: I024a90c407e2bd8f25f58935ab8a4241e038f3a8
Oslo version:
commit 569979adfd4237869bb50c7aaa02bc3fd4f0b413
Author: Author: Romain Soufflet <romain@soufflet.io>
Date: Wed Jul 9 10:45:59 2014 +0200
Name: Fix tests.unit.reports.test_base_report with python3.4
Except update of oslo code updated file 'openstack-common.conf'
that is used for automated update, see following:
https://wiki.openstack.org/wiki/Oslo#Syncing_Code_from_Incubator
Change-Id: I659d0ceee14d69b02743c829e27fec042a38d7e5
Add option --os-cache, which defaults to OS_CACHE variable
(by default - False). When this option is specified, manilaclient
will use auth token saved in keyring. First time when command will
be called, auth token and user password will be saved in keyring.
Using --os-reset-cache option password and auth_token stored in the
keyring can be deleted.
Implements bp cache-auth-token
Change-Id: Ia8959655528acce726baa616e66901c7a96fd35c