2542 Commits

Author SHA1 Message Date
Sergey Nikitin
9cd9adb38c Fixed test_shell which can't test microversions>=2.4
Method run_command() gets max and min API verisons
from FakeHTTPClient.get_versions(). That's why max version
which could be tested by run)command is 2.3 (because it's
hardcoded in get_versions()).

get_versions() should return max and min versions from
novaclient.__init__.py

Closes-Bug: #1528527

Change-Id: I489c4714cacb345d3b45d5987113093c038cf151
2015-12-22 14:08:44 +03:00
OpenStack Proposal Bot
fecf833ba5 Updated from global requirements
Change-Id: I59d6b3f54c21b1f4cc86bb58f58ec1ef5f11dee4
2015-12-21 23:45:21 +00:00
Jenkins
7c3ce18e4d Merge "Validation for arguments of list command passed by "--fields"" 2015-12-18 22:44:53 +00:00
Sean Dague
cb7b49600d document search_opts parameter
Based on irc conversation, the value to be passed to search_opts isn't
super clear. Document it for posterity.

Change-Id: I58a9b8f09056f16f58be4ef7b5b78e3ea3132faa
2015-12-18 21:57:59 +00:00
Andrey Kurilin
01961d68a2 Cleanup needless code from oslo-incubator
oslo-incubator was deprecated and all modules used by novaclient were
removed from oslo-incubator master branch. This patch removes all unused
code from novaclient's repo.

Change-Id: Ie3c542d19da6ed4d25ec490faf6a86a82f48cd34
2015-12-18 08:46:12 +00:00
Jenkins
36e125a61e Merge "Allow command line for virtual-interface-list" 2015-12-17 19:33:21 +00:00
Jenkins
7cb169e931 Merge "Removes MANIFEST.in as it is not needed explicitely by PBR" 2015-12-17 19:33:00 +00:00
Jenkins
0c9abf02c9 Merge "[functional-test] add v2.8 functional test" 2015-12-17 18:02:54 +00:00
Mitsuhiro Tanino
bbdedc681d Validation for arguments of list command passed by "--fields"
When user specifies some attributes using "--fields" subcommand for
"nova list" and "nova network-list", these attributes are shown in
the list even if the server or network don't have these attributes
in their object.

Before passing attributes via "--fields", we should validate values
and if non-existent attributes are included, error will be raised.

Change-Id: I3eb4810993259515ee33a72e8bd99f9951721b60
Closes-Bug: #1522989
2015-12-17 12:46:22 -05:00
jichenjc
6b0fe2a424 Allow command line for virtual-interface-list
There is virtual-interface-list API support in nova but no
command line interface in novaclient, this patch adds it.

Closes-Bug: 1522424

Change-Id: Ib3078125beb7beaa08a3408486db54e0d10763e6
2015-12-17 12:41:43 +00:00
sonu.kumar
56bc67d4bf Removes MANIFEST.in as it is not needed explicitely by PBR
This patch removes `MANIFEST.in` file as pbr generates a sensible
manifest from git files and some standard files and it removes
the need for an explicit `MANIFEST.in` file.

Change-Id: I749be997516b0d3af7bd1f6c1a4fce245b392d54
2015-12-17 16:35:38 +05:30
Jenkins
ebdcf077eb Merge "Change the logic for the client to retrive resources" 2015-12-16 15:34:17 +00:00
Jenkins
88ef0542dc Merge "Migrate to keystoneauth from keystoneclient" 2015-12-16 15:06:19 +00:00
Jenkins
2e5b08cd63 Merge "[functional-tests] fix version of novaclient instance" 2015-12-16 15:02:39 +00:00
Jenkins
24b9afcd9f Merge "Fix multiline string with missing space" 2015-12-16 14:08:29 +00:00
Jenkins
e75a1cfc75 Merge "Enable pass instance name as parameter in nova cli" 2015-12-16 14:08:26 +00:00
Jenkins
29c701b8ad Merge "Fix help message in case of microversions" 2015-12-16 14:04:58 +00:00
Jenkins
865e084568 Merge "Deprecated tox -downloadcache option removed" 2015-12-16 14:04:54 +00:00
Jenkins
8b33427d1a Merge "encode the url parameters" 2015-12-16 13:55:26 +00:00
Jenkins
e85cf71aa1 Merge "Updated from global requirements" 2015-12-15 23:30:10 +00:00
OpenStack Proposal Bot
6f587155bb Updated from global requirements
Change-Id: I759f0730a31307bfb97811464d3d8a32461aae34
2015-12-15 19:00:06 +00:00
shu-mutou
0a736dd5df Drop py33 support
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL.
https://wiki.openstack.org/wiki/Python3

And already the infra team and the oslo team are dropping py33
support from their projects.

Since we rely on oslo for a lot of our work, and depend on infra
for our CI, we should drop py33 support too.

Change-Id: Ic9d4f64154a5418baa159a4efdcd9dd652d142ff
Closes-Bug: #1526170
2015-12-15 16:26:20 +09:00
Jenkins
aa2687b3f7 Merge "[microversions] Increase max version to 2.12" 2015-12-14 21:11:10 +00:00
Jenkins
26077be57a Merge "[microversions] Increase max version to 2.11" 2015-12-14 21:11:05 +00:00
Jenkins
55351d0135 Merge "[microversions] Add support for 2.10" 2015-12-14 20:43:16 +00:00
Monty Taylor
1f11840dd8 Migrate to keystoneauth from keystoneclient
As a stepping stone to the os-client-config patch, first switch to
using keystoneauth, its Session and its argparse registration and
plugin loading to sort out any issues with that level of plumbing.
The next patch will layer on the ability to use os-client-config
for argument processing and client construction.

Change-Id: Id681e5eb56b47d06000620f7c92c9b0c5f8d4408
2015-12-12 20:39:57 -08:00
Ondřej Nový
6ac9f3a412 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I22e710aae8bf34938a4f9ee85c566876a36c7bb1
2015-12-11 23:30:05 +01:00
OpenStack Proposal Bot
c6dd7c7ba9 Updated from global requirements
Change-Id: I810adfef5817fad05b840349473dee220cf2aec2
2015-12-11 15:25:55 +00:00
jichenjc
9857dd2523 [functional-test] add v2.8 functional test
add functional test for v2.8 API (webmks console type
enablement).
Also, fixed an issue related to v2.8 microversion
enablement for the console API.

Change-Id: I7660a189cc3051dd7dbc802ad2d40a4995b44960
2015-12-11 21:46:02 +08:00
Jenkins
250c360262 Merge "[microversions] update test_versions with implemented versions" 2015-12-10 23:51:18 +00:00
Andrey Kurilin
363bc3eafc [functional-tests] fix version of novaclient instance
setUp method of base class for functional tests creates an instance of
novaclient.client.Client with const version. This logic is wrong since we
have tests for microversions.

Change-Id: Ibd3ee5c730ae1fb3c19f512728f2a0a3693763e8
2015-12-10 23:35:04 +02:00
Javeme
e919c9b792 remove the default arguments "[]"
remove the default arguments "[]" when the function is defined.

ref: http://docs.python-guide.org/en/latest/writing/gotchas/

Change-Id: I71ee8fbf5dec12d93bbed0e336124ad833014845
2015-12-09 20:59:48 +08:00
Zhihai
11e0782f62 Change the logic for the client to retrive resources
The ID (primary key) of a resource can not be retrived by the client.
There is no sense to provide the functionality to get an resource by
its ID. Especially when an instance is named by an interger, client
will try to get the instance with the ID of that interger value.
This patch will change the order in which the novaclient retrive
resources. First by UUID, then by name, finally by the ID. This will
also reduce api call overhead, since UUID is used mostly.

Change-Id: I0bfa5cb03a04625c3def5608dd4529e52d50f944
Closes-Bug: #1516924
2015-12-09 12:47:05 +00:00
Jenkins
691e8d4f8b Merge "Add accessIPv4 and accessIPv6 when create server" 2015-12-09 04:39:50 +00:00
Jenkins
b7ade7ef5a Merge "Fix H404/405 violations in novaclient/v2/[a-f]" 2015-12-09 04:39:46 +00:00
Jenkins
d336385dd2 Merge "Fix H404/405 violations in novaclient/tests/*" 2015-12-09 04:31:28 +00:00
Jenkins
5d730143bc Merge "Help msg about libvirt always default device names" 2015-12-09 01:29:25 +00:00
Andrey Kurilin
8aaf0a9080 Fix help message in case of microversions
novaclient should display help message of the proper versioned method
(based on api_version value).

Closes-Bug: #1523649
Closes-Bug: #1523651

Change-Id: I67f7fc2befde9d312400e9a1569e590bd763156e
2015-12-08 17:09:31 +02:00
OpenStack Proposal Bot
0022939038 Updated from global requirements
Change-Id: Ice2396d08b3abf254f08949a072a31fa349652be
2015-12-08 01:42:00 +00:00
Andrey Kurilin
0ec6bedf42 [microversions] Increase max version to 2.12
2.12 - Exposes VIF net-id attribute in os-virtual-interfaces. User will be
able to get Virtual Interfaces net-id in Virtual Interfaces list and can
determine in which network a Virtual Interface is plugged into.

novaclient.base.Resource class is a parent class of VirtualInterface resource.
Since `Resource` is a universal interface for any resources and doesn't
require hard-code attributes which describe partial resource, there are no
required changes to support this microversion in "novaclient as a lib".

"novaclient as CLI" doesn't provide an interface for VirtualInterface yet
(see bug 1522424 for more details). When it will be implemented, we will need
to check that new attribute is displayed correctly.

Based on the fact that 1522424 is not resolved and novaclient.base.Resource
class has enough tests, this patch doesn't require any tests.

Also this patch fixes representation of VirtualInterface resource.

Change-Id: I18cf23847d3b2b01f5a6ffae2ebc4bede54babce
2015-12-07 22:17:22 +02:00
Andrey Kurilin
529a492126 [microversions] Increase max version to 2.11
2.11 - Exposed attribute forced_down for os-services. Added ability to change
the forced_down attribute by calling an update.

This microversion was previously added in [1], but since the support for
2.6-2.10 microversion was missed, the max version was decreased to 2.5[2].

Now, support is added for all microversion 2.1-2.10, so we can enable 2.11
microversion.

[1] - I2b80ac32a95fe80363b4ad95d8d89fff097935a3
[2] - I52074f9a3e7faa6a7a51c3fa9766100acf25dee2 &
      Iba9bfa136245bd2899c427ac0c231a30c00bd7f3

Change-Id: Iab3224a5c3691437e64ab4e06c85ccc2a7deea13
2015-12-07 22:14:23 +02:00
Andrey Kurilin
65658ed6fc [microversions] Add support for 2.10
2.10 - Added user_id parameter to os-keypairs plugin, as well as a new
property in the request body, for the create operation. Administrators will
be able to list, get details and delete keypairs owned by users other than
themselves and to create new keypairs on behalf of their users.

Change-Id: I13ca3f8a4dd9cf11bec79966bb8a2ab48847be22
2015-12-07 22:14:21 +02:00
Andrey Kurilin
96a7e1ddc4 [microversions] update test_versions with implemented versions
Change-Id: Ifc401e00fc6436ac85ade3fa119ef9a47607a5ec
2015-12-07 22:13:23 +02:00
Javeme
6a98b786b7 encode the url parameters
Change-Id: I880c0be5edbba8de560bac155126b23755635eac
2015-12-07 20:01:38 +08:00
Ghanshyam
a37c4328a1 Fix H404/405 violations in novaclient/v2/[a-f]
There is a lot of H404/405 violations in novaclient, and it is better
to fix those to have a better doc string for class/methods.

This patch fixes these violations for [a-f] files under  novaclient/v2
folder.

As there are lot of violations and cannot be fixed in single patches,
So separating those in multiple patches for easy review.

Change-Id: Ibe5afef349d1be6d70903e06bee402ca30738ea1
Partial-Bug: #1521899
2015-12-07 17:35:19 +09:00
Ghanshyam
573bdaa290 Fix H404/405 violations in novaclient/tests/*
There is a lot of H404/405 violations in novaclient, and it is better
to fix those to have a better doc string for class/methods.

This patch fixes these violations for files under  novaclient/tests/
folder.

As there are lot of violations and cannot be fixed in single patches,
So separating those in multiple patches for easy review.

Partial-Bug: #1521899
Change-Id: I6e712ece14c745013bfba0bee9d77e7875dd2263
2015-12-07 14:17:56 +09:00
Stanisław Pitucha
e767f26cce Fix multiline string with missing space
Change-Id: Ie59447b92f20cc4fb931ad8311f46bc1b1158abb
2015-12-07 15:25:47 +11:00
Jenkins
06af0bf79b Merge "Fix repr of a host from a hosts.list()" 2015-12-04 19:55:33 +00:00
Jenkins
713b6f12e8 Merge "[microversions] Increase max version to 2.9" 2015-12-04 13:10:07 +00:00
Jenkins
0718f1a252 Merge "[microversions] Add support for 2.8" 2015-12-04 12:59:12 +00:00