This change makes the handling of the endpoint_type setting in the nova
client more consistent while keeping backwards compatibility. The
NOVA_ENDPOINT_TYPE environment variable is checked first, and if it is
not set then the more generic OS_ENDPOINT_TYPE variable is checked. A
--os-endpoint-type command line option was added as well.
Change-Id: I0d96f9f87106fc41a9853920f557ffad724859e7
Closes-Bug: 1382249
Since ``tox`` is used as launcher in gates, it should be mentioned in docs
instead of ``python setup.py test``.
Change-Id: Ie5fcd9da755e1146b2b042fa5906aa28748980a6
The novaclient implemented it's own version of the CLI arguments that
are now provided by keystoneclient's session object. This changeset
converts nova over to utilizing the shared argument registration.
Change-Id: Ifc9ddc08614e28358229db84cb9b54552ca36d51
Co-Authored-By: David Hu <david.hu@hp.com>
The server rescue call supports passing a password and an image,
however novaclient does not have options to support this. This commit
adds these options and updates the related unit tests to support the
change.
Change-Id: I14c878c0027f8206671ee001ba5195f94f842314
I367064ecaa6d1fd9d918f7ce003303e2db660647 Added E12 to the
ignored on purpose list, which also makes no sense E12 was never meant
to be skipped all together (I was the one who added E12 to the flake8
ignore list (Ifc8924914b5a0d625bc8df6442ee85eb21459cde)
Then I4cf246e3ec932ba0d2391eb8bcb793b28b005b4c came along and updated
the list to break out the E12 ignored on purpose list.
Drop all E12 rules from the ignored on purpose list, as we do not want
to ignore these on purpose.
Change-Id: Ic400047347a82aebbc0f6ce6f5061e7757a02d3d
Previously deleting valid/invalid security
group rules was throwing the error of
"AttributeError". With this fix, now both
types of security group rules can be deleted.
Change-Id: I253c2742efe69ee41976c88ca2775189bc5bde0d
Closes-Bug: #1163469
Modules from oslo-incubator already switched to use graduated
libraries (oslo.i18n, oslo.serialization and oslo.utils), so we
should sync latest code and remove outdated modules (gettextutils,
importutils, strutils).
NOTE:
- module novaclient.openstack.common._i18n should be used only in
common code
- module novaclient.i18n designed for usage in novaclient
Latest commit in oslo-incubator:
21985931a95981eabf1030ead60ae4d210bcd9c0
Synced changes for tools/install_venv_common.py:
fe3389e Improve help strings
Other synced changes:
55ca7c3 Split cliutils
5d40e14 Remove code that moved to oslo.i18n
3edbfb3 remove caching param from prettytable call
6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
9eee5d0 Merge "Delete the token and endpoint on expiry of token of client"
f76f44c Delete the token and endpoint on expiry of token of client
ed0ffb8 Do not incur the cost of a second method call
cf449e2 Fix response_key parameter usage in BaseManager
d73f3b1 Remove unused/mutable default args
e7d26a6 Merge "Centralize bash-completion in Novaclient"
b4e098e Merge "Handle non-openstack errors gracefully"
5e00685 Centralize bash-completion in Novaclient
4ef0193 Handle non-openstack errors gracefully
ac995be Fix E126 pep8 errors
de4adbc pep8: fixed multiple violations
Change-Id: I5f3015ebcbc665a2089ec88629e15ba336aee504
Module gettextutils from oslo-incubator was graduated to separate
library (oslo.i18n) and removed from repository, so we should use
new library.
Change-Id: I15d36ac5a2bb88b332ffa38d29488b75c55a20a9
I came across the "nova scrub" command today. Someone was reporting
that it did not delete everything they expected it to. It only
deletes networks and security groups associated with the project, so
update the help text to make that more clear.
Change-Id: Id769018787cc73d52ab5fc93196e69bc0ec785ea
Currently hypervisor-list only shows 'ID' and 'Hypervisor hostname',
but in fact nova server response also contains 'state' and 'status'
attributes, it's better to show all the attributes.
Change-Id: I97cd18a8451dc515c5fb19841f11d0e85bd0b484
Closes-Bug: #1376664
when keyboard interrupt is received by novaclient, the return code as
of now is 1.
But since the client was terminated by an keyboard interrupt, the return
code should be 130. (http://tldp.org/LDP/abs/html/exitcodes.html)
It is useful when people are writing automation test cases and want to
validate based on the return code.
I have also changed the message that is printed on shell to match other
clients.
Change-Id: If544ade154c53b1f18518773f4d49cd335a394d0
Closes-Bug: #1373231
Make clear the parameter name is "metadata", not "meta" -- this is
confusing at the moment as some other functions do use just "meta" as
their metadata argument.
Change-Id: I2b3ab478e5ad6e885e88bf0471502c9c971e46bd
Since module `jsonutils` from common code is graduated in
`oslo.serialization`, we should remove code from oslo-incubator and use this
library.
Change-Id: Ia8b5ef598ff415cdde19f523a36a552918f9f94b
Module `novaclient.utils` contains a lot of functions which are
presented in modules from common code.
* service_type -> novaclient.openstack.common.cliutils.service_type
* get_service_type -> novaclient.openstack.common.cliutils.get_service_type
* pretty_choice_list ->
novaclient.openstack.common.cliutils.pretty_choice_list
* import_class -> oslo.utils.importutils.importclass
* HookableMixin -> novaclient.openstack.common.apiclient.base.HookableMixin
Change-Id: Ia6cac058da12c852d92f26875a66ae31cc4c63d4
Misspelling of "coerce" found in the docstring body
of method _boot from class ServerManager. Misspellings
of "project" and "unencrypts" found in docstrings
of client.py and crypto.py.
Change-Id: I052c321f3ad5e13aa57a559e2f28ec5eec32a9b4
Adds "--user" as a search option to the list command.
Also since seach by tenant or user also needs all_tenants=1 add
this to the seach options automatically instead of making users
remember to add it
Change-Id: Icc828080b400aecdb320b721c569992677848cc6
Having retry_after in HTTP response header for 403 status code caused
client to fail with TypeError exception about unexpected keyword
argument. This is related to bug in nova-api. To prevent this kind of
client problems in the future patch adds check to from_response
function to pass retry-after header only to classes that inherit
from RetryAfterException and regression unit tests.
Change-Id: I6bfc8b33eb591d30b3c647397b11100094718e13
Closes-Bug: 1365251
The description field to the Nova API for secgroup
create is not optional. This enforces the supplying
of the description field in novaclient as the Nova
call will fail if it is not supplied.
v3 version does not need to be updated as it was never
changed.
Change-Id: I6fc823990190b935a8e1214efc8c3ac3a0941abf
Closes-Bug: 1367121