2098 Commits

Author SHA1 Message Date
Jenkins
40a4070f28 Merge "Implements 'microversions' api type - Part 2" 2015-07-27 23:13:36 +00:00
Jenkins
9d8633d9f1 Merge "Fixes table when there are multiline in result data" 2015-07-27 16:37:00 +00:00
Jenkins
6e192c8087 Merge "rename root-password to set-password" 2015-07-27 11:39:37 +00:00
Jenkins
39ae4c2870 Merge "hypervisor command can't use cell format id to show hypervisor" 2015-07-27 11:03:59 +00:00
Andrey Kurilin
936cf572df Implements 'microversions' api type - Part 2
New decorator "novaclient.api_versions.wraps" replaces original method with
substitution. This substitution searches for methods which desire specified
api version.

Also, this patch updates novaclient shell to discover versioned methods and
arguments.

Related to bp api-microversion-support
Co-Authored-By: Alex Xu <hejie.xu@intel.com>
Change-Id: I1939c19664e58e2def684380d64c465dc1cfc132
2015-07-25 15:57:17 +08:00
Jenkins
169b8a08ce Merge "Improve hypervisor-show print list" 2015-07-24 22:38:18 +00:00
Jenkins
3199e6bd34 Merge "Implements 'microversions' api type - Part 1" 2015-07-24 22:34:47 +00:00
liyingjun
1d39033c8e Fixes table when there are multiline in result data
The table doesn't display right when there are multiple line in
result data. Fixes this by replace "\r" with "".

Change-Id: Ia3ca4146f17c3ae097a2aad0092c25f6807fcbab
Closes-bug: #1476462
2015-07-24 14:56:29 +08:00
James Penick
3bf6f8fe99 rename root-password to set-password
all references to `root password` have been changed to `admin password`
but the `root-password` command remained. This changes it to
`set-password` which is less ambiguous and consistent with existing
commands `clear-password` and `get-password`

Change-Id: I8683e4ecd4d9294989eb3d8d27d1fb75c16b261b
2015-07-22 19:32:55 +00:00
OpenStack Proposal Bot
d41e97e3ac Updated from global requirements
Change-Id: I41e48745263ed9b5019a36275094db5988f2981d
2015-07-22 04:59:47 +00:00
Chung Chih, Hung
c3a0c035dc hypervisor command can't use cell format id to show hypervisor
This bug was occurred in cell mode.

In cell mode, compute node's id was not identified by integer type. It
was formatted with "path!to!cell@ID".
Therefore we can't using the id of hypervisor-list output.

For example,
> nova hypervisor-list
+----------------+--------------------------+-------+---------+
| ID | Hypervisor hostname | State | Status |
+----------------+--------------------------+-------+---------+
| region!child@1 | vagrant-ubuntu-trusty-64 | up | enabled |
+----------------+--------------------------+-------+---------+

Change-Id: Iba0cc1993f67351b11d034f372d7a5b98dc017f0
Closes-Bug: 1475973
2015-07-20 04:55:32 +00:00
Jimmy McCrory
a80ac8523a Set iso8601 log level to WARNING
When debug logging is enabled, set the log level of iso8601 to WARNING
to effectively silence its logging.

Change-Id: I17d7e6d5776b2369a2f8c42fd88f6c6790ad1b80
Closes-bug: #1441639
2015-07-19 11:14:05 -07:00
OpenStack Proposal Bot
7c96ed73a0 Updated from global requirements
Change-Id: Idd68dae30f17b33351c024315f6e0c2a532fc332
2015-07-17 16:18:11 +00:00
Andrey Kurilin
ea0b3bd608 Implements 'microversions' api type - Part 1
Compute API version will be transmitted to API side via
X-OpenStack-Nova-API-Version header, if minor part of version is presented.

New module "novaclient.api_versions" was added as storage for all api versions
related functions, classes, variables and etc.

`novaclient.api_versions.APIVersion` class is similar to
`nova.api.openstack.api_version_request.APIVersionRequest`. The main
difference relates to compare methods(method `cmp` is missed from Py3) and
processing "latest" version.

Related to bp api-microversion-support

Change-Id: I0e6574ddaec11fdd053a49adb6b9de9056d0fbac
2015-07-16 16:06:28 +03:00
OpenStack Proposal Bot
d3afbd65f6 Updated from global requirements
Change-Id: If7920f7069ba5af958757de37fcce7532033ef1f
2015-07-15 01:37:41 +00:00
OpenStack Proposal Bot
d64e288de7 Updated from global requirements
Issue found with mock 1.1.3:

Because of the test inheritance test_keypair_import is getting called
3 times. It appears that the mock for open builtins is getting torn
down after it's first use, and not correctly built again on subsequent calls.

In the gate, this is a race, because we have 3 tests and 8 workers,
and this will only fail if 2 or more of the tests happen to be
allocated to the same worker. This can be reproduced locally with:

  tox -e py27 -- --concurrency=1

Converting this to the context manager usage of mock appears to
resolve the issue.

Co-Authored-By: Sean Dague <sean@dague.net>

Related-Bug: https://github.com/testing-cabal/mock/issues/280

Change-Id: I9a87375d2eb6c7cf7b9124b2095a5a4bcc8e7bf3
2015-07-14 18:52:14 +03:00
rsritesh
a061470a8e Improve hypervisor-show print list
Current hypervisor-show <hostname> command does not properly list
when there is a long list of cpu info feature. The long list of
cpu info feature has comma-separated values.
Because of this user is not able to read the print out properly.

print_dict() has been changed to show a list with comma-separated
values properly.

Change-Id: Icc53439cecd3b5eee2340267a0447ce209d7b653
Closes-Bug: #1466435
2015-07-10 16:13:24 +02:00
OpenStack Proposal Bot
8dd63328fb Updated from global requirements
Change-Id: Id28831c58c9cd2c8df4a155b2727dc3291966401
2015-06-30 22:45:43 +00:00
Jenkins
002e23d958 Merge "Fix resolving image.id in servers.boot" 2015-06-29 17:44:52 +00:00
Andrey Pavlov
0a8fffffba Fix resolving image.id in servers.boot
Most places resolve id of input parameter as 'base.getid'
and in the beginning of _boot function it resolves image id
with such method. But in fixed place it tries to get id directly
from object. But code that uses novaclient directly(without shell)
falls in this place because it passes string with id to image parameter.

Change-Id: Ib90e4ffa3b7835f6648a62eddf7f7b87b5ab0f7e
2015-06-26 23:27:34 +03:00
Jenkins
7570a8ab46 Merge "Added marker functionality to flavours and images" 2015-06-26 19:45:16 +00:00
Pete Savage
bde241b947 Added marker functionality to flavours and images
Markers to support pagination was missing from flavours
and from images.

Change-Id: I27de83f18a4850b63020ac60e010839a13e916fb
2015-06-26 11:05:10 +01:00
OpenStack Proposal Bot
916993a1f6 Updated from global requirements
Change-Id: I8948bdd08ea55200ce7899ee8704651eb08a359a
2015-06-24 00:21:38 +00:00
Jenkins
e582fefe6c Merge "Change future nova version number references based on new values" 2015-06-23 00:13:51 +00:00
Jenkins
3c2ff0faad Merge "Updated from global requirements" 2015-06-22 12:21:52 +00:00
OpenStack Proposal Bot
3fe8196b3c Updated from global requirements
Change-Id: I85bdd78c229fae83a5900453197b05be52cf061b
2015-06-22 08:28:03 +00:00
Matt Riedemann
f3fef4ab2f Change future nova version number references based on new values
The nova server liberty version is changing from 2015.2 to 12.0.0 and
the 2016.1 'M' release will be 13.0.0 so update the deprecation warnings
in the docs and code using those versions.

Depends on nova change 192406.

Change-Id: I6a35fa0dda798fad93b804d00a46af80f08d475c
2015-06-17 14:26:19 -07:00
Davanum Srinivas
a5f30d173f cleanup openstack-common.conf and sync updated files
Changes include:
e782594 Add last_request_id only if it is not none
18bf5ca Fix usage of NotFound exception in apiclient.base
3bc8231 deprecate apiclient package

Depends-On: Ia83ef6136da1c551ea947679dc546a0d7ad2f876
Change-Id: I0b5917c657d6adc3d34229b14833a5224c168e07
2015-06-16 20:32:08 -04:00
OpenStack Proposal Bot
39020950d6 Updated from global requirements
Change-Id: Ib1d40740abb395532443ea55e2125bf7156f039c
2015-06-16 19:56:44 +00:00
Jenkins
0d2ed26e7d Merge "Add a sample clouds.yaml" 2015-06-16 19:29:23 +00:00
Artom Lifshitz
3026ea9296 Revert "Allow admin user to get all tenant's floating IPs"
This reverts commit 02328d33373479b33f4fee8112d47c1ae29e8bd4.

As per the comments on the support all-tenants in floatingips-list
spec [1], this patch reverts the --all-tenants flag from
python-novaclient since support has been reverted out of Nova more
than a year ago.

[1] https://review.openstack.org/#/c/171389/

Change-Id: I2d6566ecf59d307e3ea117b3b20dc918c758b63e
2015-06-15 15:25:37 -04:00
melanie witt
9231f939f9 Add a sample clouds.yaml
Since commit 22569f218e4ca461da4e50dfc686adae6a44d2ba functional
testing credentials are managed by os-cloud-config. This change
adds a sample config to help developers run functional tests locally.

Change-Id: I16d1cb9a8bcaf18dda26af596652564b190cbe93
2015-06-15 17:53:21 +00:00
Jenkins
7d12815605 Merge "Pass full path to pkgutil.iter_modules()" 2015-06-14 05:50:03 +00:00
Jenkins
e492327431 Merge "Cache a new token when the existing token expires" 2015-06-11 22:35:30 +00:00
Jenkins
57d0741bee Merge "Add help message for secgroup-add/del-default-rule" 2015-06-11 13:56:48 +00:00
Matt Thompson
84aec86319 Pass full path to pkgutil.iter_modules()
On my production system, when using client version 3, an exception is
raised with an incomplete message as the installed novaclient is
failing to find the bundled client versions.  This commit creates a new
_get_available_client_versions() method and moves the client version
searching from get_client_class() into it.

We also update __get_available_client_versions() to pass
pkgutil.iter_modules the full path to novaclient rather than
'novaclient', which is what actually resolves the issue here.

Lastly, we add a single test to ensure that
__get_available_client_versions() does not return an empty list.

Change-Id: I07ce414863e833c72e50ad8cf1824054cfb41457
Closes-Bug: #1463809
2015-06-11 09:42:02 +01:00
Jimmy McCrory
784a8b4a91 Cache a new token when the existing token expires
The client.keyring_saver attribute was not being reliably set so the
client._save_keys function was not storing any new tokens in the
keyring.

Add a unit test to ensure keyring_saver is being property set.

Closes-Bug: #1397732
Change-Id: If0df24c819d71b4df302309d049079a867a11c76
2015-06-10 23:54:28 -07:00
Yusuke Ide
89a4ca828b Add help message for secgroup-add/del-default-rule
Add help message about only work with the nova-network backend, not neutron
for 'secgroup-add-default-rule' and 'secgroup-delete-default-rule'.

Change-Id: Ia88b022d86505c2d7baa920fafbbfbaee04e4e58
Closes-Bug: #1419739
2015-06-10 22:50:39 +09:00
Jenkins
73957fc5ff Merge "Adds support to set admin password from the cli" 2015-06-09 21:39:21 +00:00
Jenkins
0c724c9975 Merge "Cleanup various inaccuracies in the README.rst" 2015-06-09 21:36:11 +00:00
Jenkins
945183d2b5 Merge "Adding missing nova read only CLI test" 2015-06-09 09:29:07 +00:00
melanie witt
efe988d29a Cleanup various inaccuracies in the README.rst
There was a mention of v1.1, a version-specific import, omission of
the required version argument creating a Client object, an irrelevant
comment, use of service_type implying the ability to use novaclient
with services other than nova (we have deprecated use of the volume
endpoint, for example), and a misspelling.

Change-Id: I91b2aa4001295e152883134326f40f887a55cc50
2015-06-09 06:40:45 +00:00
Tony Breeds
bffd79d64c Update weblinks
The targets for _OpenStack CLI Guide  and _OpenStack API documentation
no longer point at helpful information.  Update them to something more helpful.

Change-Id: I1ecf796650c15864e9f848f16e96ee58db97ddcc
2015-06-09 15:25:02 +10:00
Masaki Matsushita
953a12e986 Adds support to set admin password from the cli
You can set admin password as
nova boot --image <image> --flavor <flavor> --admin-pass <pass> vm-name

Change-Id: I119aba428c15d736e64d990be47cc5c13bb83738
Closes-Bug: #1248517
2015-06-09 13:27:19 +09:00
raiesmh08
09571ba7dc Adding missing nova read only CLI test
1. nova quota-defaults
2. nova bash-completion

Previously these were proposed at  -
https://review.openstack.org/#/c/98735/
Change-Id: I3c2e9aa652cb712b41b9347cb144044012e2338e
2015-06-08 03:25:56 -07:00
Jenkins
773eea811d Merge "Fix all doc warnings and gate on warnings" 2015-06-05 04:51:56 +00:00
Jenkins
7e27f13782 Merge "Add docs tox env" 2015-06-05 04:35:51 +00:00
OpenStack Proposal Bot
5ebe89f0a1 Updated from global requirements
Change-Id: I9ae60f20f6e3050d1cc82ae78c25df1dfab876af
2015-06-04 20:14:15 +00:00
Joe Gordon
4e9a2b4c69 Fix all doc warnings and gate on warnings
* Remove releases (File removed in e334096aa3a4badb2930c766cb4b42bbcc9ac107)
* Add link to man page
* Fix some docstring formatting

Change-Id: Iec67a6d32f0365e514394c1e3eb7d8e4ae6aff65
2015-06-04 17:10:50 +09:00
Joe Gordon
d37c19a13f Add docs tox env
Just like in nova, lets add a 'docs' env to here so you can simply run
'tox -edocs' and build the docs which get published to

http://docs.openstack.org/developer/python-novaclient/

Change-Id: Ie381a78477b60b4b9981576d75c911cb0deb5696
2015-06-04 16:56:11 +09:00