2493 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
ca4e838aad Updated from global requirements
Change-Id: Ib1a5293498921aed5e42c14aa7a64878166419d7
2016-01-23 10:35:52 +00:00
Andrey Kurilin
a54a1d16db [microversions] Extend shell with 2.12
Shell was not extended in original patch[1], which turned on v2.12, since
there was not any support of vif in shell yet.
Since shell entry point for legacy vif was merged[2], we need to add support
for v2.12 in shell too.

[1] - I18cf23847d3b2b01f5a6ffae2ebc4bede54babce
[2] - Ib3078125beb7beaa08a3408486db54e0d10763e6

Change-Id: Ie38d099b2babfd8424c7d15bd3dfe8bd75e51136
2016-01-22 20:26:54 +02:00
Jenkins
44edba9e1c Merge "Added support for Nova microversion 2.16" 2016-01-21 17:23:06 +00:00
Jenkins
8165c771ae Merge "[microversions] Add support for 2.15" 2016-01-21 17:22:59 +00:00
Jenkins
1cf3fa9d77 Merge "[microversions] Add support for 2.14" 2016-01-21 17:22:53 +00:00
Jenkins
1e7310a74d Merge "Fix URLs for CLI Reference and API" 2016-01-21 17:10:34 +00:00
Jenkins
c1aaf4431b Merge "Functional tests for flavors with public and non-public access" 2016-01-21 13:06:04 +00:00
Andreas Jaeger
60b05f7128 Remove argparse from requirements
argparse was external in python 2.6 but not anymore, remove it from
requirements.

This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is not needed.

Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
2016-01-20 19:21:40 +01:00
Tomi Juvonen
48605fcb43 Added support for Nova microversion 2.16
Added support for new host_status attribute in endpoints
servers/detail and servers/{server_id}.

Partially implements blueprint get-valid-server-state

Change-Id: If72fbcaa02267077dc082a7557c593f35474c4bb
2016-01-19 15:31:22 +00:00
Anna Babich
20c65aac87 Functional tests for os-services
The added tests check functionality of os-services actions
except 'service-delete' (it's hard to recover after test running)

Also 'forced_down' attribute exposed by microversion 2.11
is checked here

Change-Id: I6652bac4ce49d5174592f19b1b4d91ac5bd51500
2016-01-19 16:33:41 +02:00
Anna Babich
f6e0dcd34c Functional tests for flavors with public and non-public access
The added tests check granting access actions for public and
non-public flavors

The test for microversion 2.7 checks that the appropriate
error is returned when attempting to grant an access
to a public flavor for the given tenant

The base TenantTest class has been added to avoid code
duplication in test_keypairs and test_flavor_access tests

Also, test_keypairs code has been modified in accordance with
TenantTestBase class usage

Change-Id: Icf21d8aceaa191aee8b8ffc7c52e97ebe9509b3d
2016-01-19 16:14:55 +02:00
OpenStack Proposal Bot
0d99c693f4 Updated from global requirements
Change-Id: I552f35171e15991a1f57c0d09fa20fe5042cc8e7
2016-01-19 13:52:46 +00:00
OpenStack Proposal Bot
e7711cddaf Updated from global requirements
Change-Id: Id51d3606a6d29f909e8c40edfeed0505d8144250
2016-01-18 22:45:55 +00:00
OpenStack Proposal Bot
3346dc826a Updated from global requirements
Change-Id: I38b118679fae02c3e37a8f145b28dd7340eb1bc7
2016-01-17 01:15:47 +00:00
Andreas Jaeger
1adad69789 Fix URLs for CLI Reference and API
The CLI Reference files has been moved, update the link.
Replace link to API Quick Start with link to API reference for nova.

Change-Id: Ic933d44cddc24702648c69498e632efefda7bf88
2016-01-16 17:38:18 +01:00
Jenkins
6c37270c4e Merge "Add functional tests launcher for py3 env" 2016-01-16 03:56:26 +00:00
Andrey Kurilin
426f6afb3c Add functional tests launcher for py3 env
It would be nice to check not only unit test on py3 env, but functional
tests too.

Also, this patch fixes usage of xrange in functional tests.

Change-Id: I15ef204022583a40a02b3f2a48771347ddc95f3e
2016-01-15 13:25:33 +00:00
Jenkins
c819132c4c Merge "[microversions] Add support for API microversion 2.13" 2016-01-13 19:32:51 +00:00
Jenkins
f17bbbe95b Merge "Test: Clean v2 client userwarning" 2016-01-13 19:32:43 +00:00
Jenkins
c6c5a60a63 Merge "Add a mechanism to call out deprecated options" 2016-01-13 19:32:16 +00:00
Balazs Gibizer
7cc26eee72 [microversions] Add support for 2.15
With I3f156d5e5df4d9642bb4b0ffac30a6288459ce61 nova introduced
microversion 2.15 which adds two new policies soft-affinty and
soft-anti-affinity for the server-group api.

This patch bumps the nova client microversion support to 2.15.
The novaclient is transparent regarding the policy value of the
server-group api so no further changes are needed. However the
help text of the policies parameter mentioned the possible policies.
This was removed as the current framework does not support providing
different help text for a parameter depending on the microversion.

Implements: blueprint soft-affinity-for-server-group
Change-Id: I739ed1dd3e4c15e28a269c4f980a12a74fb1def0
2016-01-12 17:30:16 +01:00
OpenStack Proposal Bot
54b625aae8 Updated from global requirements
Change-Id: Ief924564960d7733f129fd02d0e9898527393151
2016-01-12 05:05:56 +00:00
Chaozhe.Chen
14f63647e9 Test: Clean v2 client userwarning
Problem:
When we run nova client unit test, there are lots of UserWarnings
printed on the screen. These warnings mean to remind users not to
use v2.client directly.

Solution:
1. In top level tests such as some tests in test_auth_plugins.py
test_client.py and fixture_data/client.py, we use updated usage
novaclient.client instead of using novaclient.v2.client directly.
2. In v2 unit tests, we clean those warnings with setting direct_use
False.

Change-Id: I70682e54874860f1d67d29325811c9da616bb705
Closes-Bug: #1532711
2016-01-12 12:05:50 +08:00
Jenkins
797ae2af69 Merge "Fix W503 line break before binary operator" 2016-01-12 01:43:47 +00:00
Jake Yip
2ac32e0f18 Fix broken link in documentation
Documentation on developer.openstack.org points to API 2.1 now

Change-Id: Ic49279bf2ad66b2467ae49fe87243011e3a8c362
2016-01-12 09:36:28 +11:00
Dirk Mueller
fa3a8edf20 Fix W503 line break before binary operator
According to PEP8 the line break should be always after
a binary operator.

Change-Id: I9d0f6909d0e649fe740b748b831894ccb4e80b15
2016-01-09 09:27:38 +01:00
Kevin L. Mitchell
08c4b746b2 Add a mechanism to call out deprecated options
We have had deprecated command line options in novaclient for a long
time, but no warnings about the deprecations were ever emitted, despite
the help text being suppressed.  It would be nice to finally get rid of
those deprecated options.  This change sets up the precondition to
accomplish this, by emitting appropriate warnings when a deprecated
option is used.

Note: The "use" text for the deprecated options has been deliberately
      chosen to reduce the number of translations required.

Change-Id: Ibe13faa56c5abca97f85f9c5172ef5a5591b5f71
2016-01-07 11:07:44 -06:00
OpenStack Proposal Bot
ff980114b6 Updated from global requirements
Change-Id: I19f98a76b8e0d595fe75842db7b23453ef7e102a
2016-01-07 04:57:56 +00:00
LiuNanke
6d023a6bc2 Replace assertTrue(isinstance()) by optimal assert
assertTrue(isinstance(A, B)) or assertEqual(type(A), B) in tests
should be replaced by assertIsInstance(A, B) provided by testtools.

Change-Id: Ie4fe7b40e3f4350db94b350395269340ee6acf11
Related-bug: #1268480
2016-01-07 02:55:45 +08:00
Jenkins
7d05f540ea Merge "Use assertTrue/False instead of assertEqual(T/F)" 2016-01-06 14:55:20 +00:00
Jenkins
802b016a9f Merge "[microversions] share one object for shell arguments" 2016-01-05 15:50:18 +00:00
Jenkins
60997a5997 Merge "Validate the fixed ip address passed with --nic" 2016-01-04 20:11:41 +00:00
Jenkins
3b73491975 Merge "document search_opts parameter" 2016-01-04 20:11:24 +00:00
Jenkins
6bc5b3ef2a Merge "Fixed test_shell which can't test microversions>=2.4" 2016-01-04 15:27:35 +00:00
Jenkins
a5b8597753 Merge "Add python 2.7 comment" 2016-01-04 15:08:04 +00:00
yangyapeng
06be50b97a Use assertTrue/False instead of assertEqual(T/F)
The usage of assertEqual(True/False, ***) should be changed
to a meaningful format of assertTrue/False(***).

Change-Id: I66110e5fc1afdf9dd6824b1f7bcb7b2c091a272d
Closes-Bug: #1512207
2016-01-04 09:52:04 -05:00
Jenkins
2e7e651a58 Merge "Put py34 first in the env order of tox" 2016-01-04 13:40:46 +00:00
Jenkins
8158f046c6 Merge "Fix extension loading from python path on Python 2.7" 2016-01-04 13:40:40 +00:00
Jenkins
1a8937a6cc Merge "Wrong usage of "a/an"" 2016-01-04 13:32:55 +00:00
Jenkins
26e511466d Merge "Fix a Typo in Docstring" 2016-01-04 13:32:49 +00:00
Jenkins
86a9cc8371 Merge "Fix help strings" 2016-01-04 13:32:43 +00:00
Jenkins
2d96c2c9bb Merge "Cleanup needless code from oslo-incubator" 2016-01-04 13:30:18 +00:00
Sean Dague
f9f9a4654c Add python 2.7 comment
Change-Id: Ie4183da314bd7ca0719f45f0d9b3c26f8707e266
2016-01-04 12:33:27 +00:00
Balazs Gibizer
5a3956c399 [microversions] Add support for 2.14
In I54bfa1275e188573c1b95d770d89160a86cdf52c the onSharedStorage
flag is removed from the evacuate API. This patch removes it from
the novaclient as well.

Implements: bp remove-shared-storage-flag-in-evacuate-api
Change-Id: I5ae75fdac226f0246f22a4d5245c1e4952571fc1
2015-12-31 12:51:45 +01:00
Jim Rollenhagen
48c9a91de6 Fix extension loading from python path on Python 2.7
Commit 81f8fa655ccecd409fe6dcda0d3763592c053e57 broke extension loading
from pythonpath on python 2.7 due to the removal of code that was
erroneously marked for 2.6 compatibility. Put it back.

Change-Id: Ic04f4d57953967fde9817ff5119ce0182453a86d
Closes-Bug: #1530230
2015-12-31 00:04:33 +00:00
hgangwx
2283b46a2f Wrong usage of "a/an"
Wrong usage of "a/an" in the messages:
"It will be deprecated after an suitable deprecation"
"Delete metadata from an server"
"Get a list of actions performed on an server"
"based on an requests response"
"Get a aggregate by name or ID"

Should be:
"It will be deprecated after a suitable deprecation"
"Delete metadata from a server"
"Get a list of actions performed on a server"
"based on a requests response"
"Get an aggregate by name or ID"

Totally 5 occurrences in python-novaclient base code.

Change-Id: Iabe764f8b547b39431deb34221266695e0e79fa9
2015-12-30 15:05:50 +08:00
Andreas Jaeger
8f320313f3 Fix help strings
Reviewing the import of novaclient 3.1.0 into the CLI Reference (change
Ib39cdfdd563a2a53f0e6de1f8d2dc4f8c4678c15), a few inconsistencies where
found and fixed:
* Missing "." at end of help string
* Inconsistent capitalization of "DEPRECATED, use"
* Inconsistent capitalization of "Set or delete"
* It's IPv4 and IPv6
* It's ID

Change-Id: I425cd6575ca31efd92fc7f0be6192031886fcc41
2015-12-28 08:10:44 +01:00
Zhihai Song
dd6b3cd394 Validate the fixed ip address passed with --nic
Currently fixed ip address passed with --nic is not validated.
This patch add the validation to the fixed address.

Change-Id: I032cc9ce9333b723d37e94b81d699cc0d78d36bf
Closes-Bug: #1528455
2015-12-23 15:11:40 +08:00
Kevin_Zheng
b6677ebc03 [microversions] Add support for API microversion 2.13
Nova now supports API microversion 2.13 to
allow return project_id and user_id for
os-server-groups API. Sync this to the
client side.

Change-Id: Ia09ab4bd5c693ed95b0f5dd9bc709b7597f7034e
Closes-Bug: #1526143
2015-12-23 06:39:13 +00:00
Andrey Kurilin
fd450d8c60 [microversions] share one object for shell arguments
I8d599b712b17dcfc0be940a61c537d2dfe1b715b change provides a wrong fix for
an issue with cli arguments.

_find_actions method is designed to find all action methods(do_server_list,
do_server_show and etc). Since one module can include several versions of
one action(after microversion implementation) and only the last one will
be registrated in module, _find_actions method was adopted to handle
versioned methods.
Now it checks that discovered method is related to versioning stuff and
replace it by appropriate(in terms of microversions) functions. In this case,
the substituation is used only to determine function name and that it relates
to versioning methods. That is why the change(see a change-id above) is not
help at all.

We should share list object named "arguments"(it used by all action methods to
store cli arguments) with substitution and original method(which will be used
by _find_action). It will allow to put api_versions.wraps and cliutils.arg
decorators in any order.

Change-Id: Ief316a8597555db6cb02c9f23406b9f1f09f8313
2015-12-22 15:17:12 +02:00