1848 Commits

Author SHA1 Message Date
Jenkins
d485d755ec Merge "support OS_ENDPOINT_TYPE in nova client" 2014-10-30 00:03:34 +00:00
Miguel Grinberg
607ac48e6c support OS_ENDPOINT_TYPE in nova client
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
2014-10-28 19:21:26 +00:00
OpenStack Proposal Bot
571dc98a61 Updated from global requirements
Change-Id: I3701c9964d442191de3a6581bcbc0b6f5e14ab26
2014-10-28 11:52:34 +00:00
Jenkins
6d18987223 Merge "Propose 'tox' as tests launcher" 2014-10-28 11:44:15 +00:00
Jenkins
bf439b370a Merge "Update novaclient shell to use shared arguments from Session" 2014-10-24 23:27:42 +00:00
Andrey Kurilin
3065afd6c0 Enable check for E129
E129 visually indented line with same indent as next logical line

Change-Id: I438bf0d9de7f61ab65e753169c9a8007e84b215a
2014-10-23 14:28:57 +00:00
Andrey Kurilin
ae6c39397e Enable check for E127
E127 continuation line over-indented for visual indent

Change-Id: I9dfd489565ee2d1469b2048a930c3a8384dd245d
2014-10-23 14:28:50 +00:00
Andrey Kurilin
8de2237cc4 Enable check for E126
E126 continuation line over-indented for hanging indent

Change-Id: Id64edce8278d96c1b2d4a6ca536e9fc8fbef478c
2014-10-23 17:28:25 +03:00
Jenkins
bda83f92d1 Merge "Remove E12* from list of deliberately ignored flake8 rules" 2014-10-23 13:24:03 +00:00
Andrey Kurilin
3f64b4577b Propose 'tox' as tests launcher
Since ``tox`` is used as launcher in gates, it should be mentioned in docs
instead of ``python setup.py test``.

Change-Id: Ie5fcd9da755e1146b2b042fa5906aa28748980a6
2014-10-23 14:47:32 +03:00
Jenkins
cb102e0d18 Merge "Add missing parameters for server rescue" 2014-10-23 11:07:17 +00:00
Morgan Fainberg
c8a7e6a02d Update novaclient shell to use shared arguments from Session
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>
2014-10-22 17:39:44 -07:00
M. David Bennett
b6db84c9f8 Add missing parameters for server rescue
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
2014-10-20 14:31:25 -05:00
Joe Gordon
1adc6d0251 Remove E12* from list of deliberately ignored flake8 rules
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
2014-10-20 10:21:20 -07:00
Amandeep
2d6047ffb4 no way to delete valid/invalid security rule
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
2014-10-20 09:51:12 +05:30
Andrey Kurilin
f9ac34d9e8 Sync latest code
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
2014-10-16 01:26:48 +03:00
Andrey Kurilin
dc09cf27e3 Port to use oslo.i18n
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
2014-10-16 01:19:48 +03:00
OpenStack Proposal Bot
1eb1abe870 Updated from global requirements
Change-Id: Ia256b2210e8aecda0d9bbc10e563e06a68a2e44b
2014-10-11 22:37:57 +00:00
Russell Bryant
e82b46bb93 Clarify "nova scrub" help text
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
2014-10-08 15:21:28 -04:00
OpenStack Proposal Bot
d6889adb45 Updated from global requirements
Change-Id: I41f431880d35b4f5841fc1ad602833c863ce5183
2014-10-07 19:17:25 +00:00
Jenkins
41de515682 Merge "Show 'state' and 'status' in hypervisor-list" 2014-10-06 04:58:35 +00:00
Haiwei Xu
9d5164acee Show 'state' and 'status' in hypervisor-list
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
2014-10-03 09:42:57 +09:00
Rakesh H S
09f97e9ee4 return 130 for keyboard interrupt
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
2014-09-26 20:45:49 +05:30
Jenkins
58b539e398 Merge "Fix parameter description in create_server" 2014-09-26 07:57:22 +00:00
Ian Wienand
6bbedd1a13 Fix parameter description in create_server
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
2014-09-25 10:18:18 +10:00
Andrey Kurilin
8b8aa499e1 Enable check for E123
E123 closing bracket does not match indentation of opening bracket's line

Change-Id: I3f941032efb5ca2ef9a78f865effbf79c8674ebb
2014-09-24 22:44:20 +03:00
Andrey Kurilin
d05ae5dcc0 Enable check for E122
E122 continuation line missing indentation or outdented

Change-Id: Ic54714142b3c5aded42d544f296b0ef9a840c282
2014-09-24 22:44:20 +03:00
Andrey Kurilin
7fc1588dfd Enable check for E121
E121 continuation line under-indented for hanging indent

Change-Id: I4cf246e3ec932ba0d2391eb8bcb793b28b005b4c
2014-09-24 22:44:09 +03:00
Jenkins
963484513d Merge "Use oslo.serialization" 2014-09-23 03:53:12 +00:00
Jenkins
1621c93cfa Merge "Live migrate each instance from one host to other hosts" 2014-09-22 15:37:39 +00:00
Jenkins
de94ddfce3 Merge "Add list by user to shell" 2014-09-22 01:53:32 +00:00
Jenkins
096caa00d6 Merge "Use common code instead of novaclient.utils" 2014-09-22 01:53:29 +00:00
Andrey Kurilin
8c0fd9a674 Use oslo.serialization
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
2014-09-20 20:42:52 +03:00
Andrey Kurilin
d03014cdb0 Use common code instead of novaclient.utils
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
2014-09-19 16:56:13 +03:00
OpenStack Proposal Bot
5ecfdac6b3 Updated from global requirements
Change-Id: Id91358b7d4efe79a4be5190dcdb4b0b7cb40f19b
2.20.0
2014-09-19 08:51:36 +00:00
Jenkins
87a1ebcd14 Merge "Corrects typos "coearse," "proejct," and "unecrypts"" 2014-09-19 06:19:01 +00:00
Jenkins
3877f871a5 Merge "Add retry_after only to exceptions supporting it" 2014-09-19 02:16:51 +00:00
Rafael Rivero
98acb7fb7d Corrects typos "coearse," "proejct," and "unecrypts"
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
2014-09-18 15:24:54 -07:00
Phil Day
2e64986532 Add list by user to shell
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
2014-09-18 17:40:45 +00:00
Michal Dulko
310b87ecbb Add retry_after only to exceptions supporting it
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
2014-09-18 13:07:17 +02:00
Jenkins
3e5dae84a8 Merge "secgroup-create description is not optional" 2014-09-17 22:34:24 +00:00
Jenkins
a6dc7fc43e Merge "Add support for the server group quotas" 2014-09-17 17:05:08 +00:00
Jenkins
b8ad231654 Merge "add new command get-serial-console" 2014-09-17 15:09:22 +00:00
Jenkins
9312e25c4b Merge "Make findall support server side filtering" 2014-09-17 02:52:23 +00:00
Jenkins
c5a3aefbd0 Merge "Fix order of arguments in assertEquals" 2014-09-17 01:55:30 +00:00
Jenkins
84ccbf3681 Merge "novaclient: Convert v3 boot command with v2.1 spec (bdm)" 2014-09-17 01:24:54 +00:00
Jenkins
3cdfc609e5 Merge "novaclient: Convert v3 boot command with v2.1 spec (security-groups)" 2014-09-17 01:24:38 +00:00
Jenkins
0636d003c1 Merge "novaclient: Convert v3 boot command with v2.1 spec (user-data)" 2014-09-17 01:24:26 +00:00
Jenkins
ce115063bb Merge "Don't display duplicated security groups" 2.19.0 2014-09-16 03:44:24 +00:00
Chris Yeoh
bd65fde64c secgroup-create description is not optional
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
2014-09-16 11:25:18 +09:30