Old env variables are still supported but the default ones should
consistently use OS_ as prefix.
Change-Id: Idd26a587cade7f6a27115c4e8cf220cd43b1703e
Closes-bug: #1603387
For the moment we cannot use experimental APIs using "python" client.
It is possible only if we use shell client (CLI).
It means, we cannot use "share replication", "share migration" and
"consistency groups" APIs of python manilaclient from other apps
such as Manila UI. So, add special experimental header on python
client level instead of CLI.
Change-Id: I6eed5dcfd1cb309817e083856b40e10cc6f970f6
Closes-Bug: #1599586
Both 'manila list --all-tenants' and 'manila list --public'
should show column Project ID. Project/Tenant ownership of
shares is vital information, e.g. when working with project
quota allocations.
'manila list' doesn't show public shares of other projects.
Without '--all-tenants' and without '--public' the result
is scoped to the project/tenant of the user issuing the command.
So, it would be redundant to display a column for this.
Same fix has been put for snapshot-list --all-tenants too.
DocImpact
Change-Id: I7afae542c391041d48c28e268ab59c83447bb940
Closes-Bug: #1570085
Logic of share-network creation was dependent on presense of "JOB_NAME"
env var. And it is unavailable now. Moreover, we do not really need to
depend on it. Therefore, remove dependency on it and assume we always
run CI without nova-network enabled.
Change-Id: Ic03e2166101a4deb13e8a8545d2fb2506454a20a
Closes-Bug: #1595160
The dict.keys()[0] will raise a TypeError in PY3,
as dict.keys() doesn't return a list any more in PY3
but a view of list.
Change-Id: I5d8dead560acd897213e785d6eb0bc75a584af1b
Closes-Bug: #1583419
Change the api version regex to forbid empty minor versions,
thereby ensuring that manilaclient raises an UnsupportedVersion
exception as one would expect in this case.
Change-Id: I93268b15ec0b5ee95ea3599bb75bf6fa364e0b91
Closes-Bug: #1590409
Create the releasenotes directory and add the requisite
conf.py file to generate python-manilaclient's release notes.
project-config change: I522ba76263a6597026f6dd7b03ec51bb05bfb15a
Change-Id: I6b0fa6016781a252a71649a7cac85f02b0a019e8
Python part of Manilaclient does support auth by token, but
CLI part does not. Therefore, add two new optional args
with related env vars:
--os-token [OS_TOKEN]
--bypass-url [MANILACLIENT_BYPASS_URL]
Also, disable checks for other auth data if these two are provided.
Change-Id: I567294dfb61e702410c3f0fadc15a04667075434
Closes-Bug: #1572095
For the moment if default value for CLI option with
"single_alias" action is different than None we cannot redefine it.
Fix it and cover with unit tests.
Also, fix existing aliases and add some where good to have.
Change-Id: Ic61426d9bd894b01f9b035d6d19bb7bd113f96ad
Closes-Bug: #1552771
Updated the version of hacking to match global requirements [1] and
fixed several pep8 issues exposed with the new version.
The list of fixed issues:
- W292 no newline at end of file
- H238 old style class declaration
[1] https://github.com/openstack/requirements/blob/master/global-requirements.txt
Change-Id: I2de0d2ed9d6e0a893290053998877ba30093f636
If the maximum client version is higher than the maximum server version,
but the server version is otherwise valid, an UnsupportedVersion
exception is thrown. This bug fixes this issue by downgrading the
requested version, during API version discovery, from the maximum
client version to the maximum server version. The maximum server version
must be supported by the client. If all conditions are properly met the
client will continue to use the maximum server version for the remainder
of the request.
In order to log that the client version is being downgraded to match
the server version, when using the --debug flag, it was necessary to
update the logging configuration. Logging can now be used anywhere in
manilaclient as needed.
Change-Id: I96d273071966d2dc63de40c6f1b777fbb34a50fa
Closes-Bug: 1559290
When update_access was first implemented in manila, it merged with
a bug that was not allowing rules to be added when
access_rules_status were 'out_of_sync'. Due to this limitation,
manila client functional tests were fixed. Now, since the initial
bug was fixed on manila, this can be reverted.
Change-Id: I4aee2d339ec96e44208771c19714f9911115a81a
Depends-On: I0f863cbae4d8af0660114161deda7bf7aa60d71d
Closes-Bug: #1556956
'cephx' access type was added for API microversion 2.13 in the server
side. However, on the client side, it is allowed and validated for
API versions 2.0 and greater. Fix by adding cephx support starting
from microversion 2.13, as done for the server.
Change-Id: If63a74736926edd6a88c278aa40dd73a96cb0520
Closes-Bug: #1552848
The description was the same as for admin_auth_url and stated that
it should be set to admin endpoint URL while public one should be
used instead.
Change-Id: I2b12b7436aa535212e65deae25e82da842d3b3f7
Closes-Bug: #1554587