2916 Commits

Author SHA1 Message Date
Matt Riedemann
ef74c0a7c8 Remove deprecated floating IP DNS domain/entry APIs
These were deprecated in Newton in change:

aaebeb05a03e34281a091dc6dfc4672b01cdfbbb

Change-Id: I8888f241b04f075d92d2298c623144809546581f
2017-03-20 16:58:22 -04:00
Matt Riedemann
ac7c96690f Remove deprecated tenant network APIs
These were deprecated in Newton:

aaebeb05a03e34281a091dc6dfc4672b01cdfbbb

Since this is the last of the deprecated contrib extensions,
we can also deprecate the 'only_contrib' parameter from the
novaclient.client.discover_extensions method.

Change-Id: Ie2e3fdc4e044f6eb304724d16a7d0f1f7ba705fd
2017-03-20 16:36:58 -04:00
Matt Riedemann
dee51a0163 Remove deprecated baremetal CLIs and APIs
These were all deprecated in Newton with change:

87c1b5311b2e641564305a4753b989b6498775b1

So now we can remove them.

Change-Id: Ic74a989b8a6565cc52ab82440fab8605a4b78e6b
2017-03-20 15:33:23 -04:00
Eric Brown
4746e0bb58 Remove py34 tox env and pypi classifier
Currently only py27 and py35 (not py34) is tested in the gate, so
py34 should no longer be part of the tox environment or part of the
PyPi classifier.

Change-Id: I81058c5df47c4dae3c331d0030141896b6a9f1bb
2017-03-20 19:06:51 +00:00
Jenkins
ba24847cbe Merge "Use Sphinx 1.5 warning-is-error" 2017-03-20 13:36:00 +00:00
Jenkins
03e7d8b1d1 Merge "Remove duplicate methods" 2017-03-20 10:13:14 +00:00
Dan Smith
20f00553d0 Fix aggregate_update name and availability_zone clash
The name and availability_zone arguments to aggregate update were
replaced by optional parameters in change
I778ab7ec54a376c60f19dcc89fe62fcab6e59e42. However, the '--name' and
'name' arguments in the parser would conflict, resulting in only the
deprecated argument working. Thus, attempting to update the name
on an aggregate using --name would end up doing a PUT with no new
name provided.

Note that there were unit tests for this, but they were not catching
this problem. So, this removes those tests and adds functional tests
to poke it.

Change-Id: Ifef6fdc1a737dd219712a4525d4e34afd3fbd80c
Closes-Bug: #1673789
2017-03-17 09:15:10 -07:00
Stephen Finucane
f1d2641396 Use Sphinx 1.5 warning-is-error
With pbr 2.0 and Sphinx 1.5, the setting for treat sphinx warnings as
errors is setting warning-is-error in build_sphinx section. Migrate the
setting from the old warnerrors one.

There are only three related fixes required.

Change-Id: I84b020c18a8a1c7c11a35bacd61523bbb094abe4
2017-03-16 16:56:04 +00:00
dineshbhor
2918655877 Remove duplicate methods
TrivialFix

Change-Id: Idb938e09516f24a6827f613d58ee0f1e310c79df
2017-03-14 12:52:55 +05:30
Jenkins
296b5da84b Merge "Fix ValueError when incorrect metadata passed" 2017-03-10 15:42:25 +00:00
Jenkins
8968353964 Merge "Remove functional tests for removed commands" 2017-03-08 14:49:19 +00:00
Dinesh Bhor
72a0ec9adc Fix ValueError when incorrect metadata passed
If you pass incorrect formatted metadata to the 'boot', 'rebuild'
and 'image-create' apis returns following error:

ERROR (ValueError): dictionary update sequence element #0 has
length 1; 2 is required

Caught the ValuError and raised argparse.ArgumentTypeError with
proper error message.

Closes-Bug: #1668549
Change-Id: I14a30b93f4a916fc04610f9e475c12eb352e38c5
2017-03-06 11:16:54 +05:30
OpenStack Proposal Bot
45c501ff51 Updated from global requirements
Change-Id: I8f32fd359720c73d3a4ee8f87a6ce7764b921021
2017-03-06 01:18:45 +00:00
Kevin_Zheng
0797115241 Tags and Metadata fields with unicode cannot be correctly displayed
Currently, Tags(list) and Metadata(dict) fields of instance will
firstly transformed to str using jsondump first when display. And
cannot be correctly transfomed and displayed afterwards.

This patch adds ensure_ascii=False to the transform function thus
those fields can be correctly tranformed and displayed afterwards.

Change-Id: Ib4e7a34f3b19db89280cc73053acbac8c8816f85
Closes-Bug: #1669683
2017-03-05 17:37:29 +08:00
ricolin
7d79428b17 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Idc1755ccd8d477ffd1ff0febf586238249f45c60
2017-03-02 20:28:42 +08:00
Jenkins
ad864bf8c0 Merge "Release note for cell_name deprecation" 2017-03-01 23:57:20 +00:00
Timofey Durakov
6ec83fbfa1 Release note for cell_name deprecation
This is a follow up patch, that adds a release note
about cell_name argument deprecation for migration-list

Change-Id: Ia3c21c7697e2c64025d35c23ed32fecff9c076df
Related-bug: #1668743
2017-03-01 20:18:26 +00:00
Matt Riedemann
371b6b42d4 Remove functional tests for removed commands
Change adf7d1e48c619579c2fc430229173264db45033e removed the
deprecated network proxy CLIs but missed a couple of functional
tests. These were caught because the mitaka functional job runs
nova-network which actually runs these tests, but is non-voting.
The functional jobs that run on master are using neutron and skip
these tests.

Change-Id: I5f66905a315cb36f094e30e673629893cf4bdc49
Closes-Bug: #1669043
2017-03-01 14:32:33 -05:00
Jenkins
051702f28f Merge "Deperecate cell_name cli arg for migration-list" 2017-03-01 17:33:03 +00:00
Timofey Durakov
e08823198d Deperecate cell_name cli arg for migration-list
This patch adds deprecation warning for usage of
cell_name argument in migration_list command.

Change-Id: I54468682d5391668a513e708e26bc3c165c95ca1
Related-bug: #1668743
2017-03-01 15:07:13 +00:00
OpenStack Proposal Bot
f6b1552780 Updated from global requirements
Change-Id: Idaf27bd64f035e1cc7c919a99d0f87b466500b14
2017-03-01 04:16:08 +00:00
Jeffrey Guan
0a88bd439f Grammar typo in the comments for function set_meta.
Change-Id: Ia62c8e37f240f0dfc00950f6ef6e1ecc4d5b9453
Closes-Bug: #1668336
2017-02-23 13:49:47 +00:00
Jenkins
79308caf9d Merge "Fix devstack python-novaclient warning" 2017-02-24 00:14:36 +00:00
Diana Clarke
1a9bfc424a Fix devstack python-novaclient warning
The following warning is emitted for every nova command using devstack,
stable/ocata.

    site-packages/novaclient/client.py:278:
        UserWarning: The 'tenant_id' argument is deprecated in Ocata and
        its use may result in errors in future releases. As 'project_id'
        is provided, the 'tenant_id' argument will be ignored.

See the following commit for related changes:

    Clarify meaning of project_id var
    9bbe5a87b7df62a7962debba5db7c96555da6761

Change-Id: Ifa5ed16f10a43c9961e98b03fc0535e12d7977ba
2017-02-23 14:42:55 -05:00
Matt Riedemann
adf7d1e48c Remove deprecated network-related resource commands
In Newton we deprecated the various network-related resource
commands which were either for nova-network or were proxy
APIs to Neutron, because of the 2.36 microversion which deprecated
those APIs.

This removes the deprecated commands. Because of the size of this
change, the deprecated python API binding removals will come in a
separate change.

Change-Id: I6ecca49e7208f9dc0969bf377930a729c4b407b8
2017-02-23 08:56:27 -05:00
Matt Riedemann
41f66d15aa Remove deprecated image commands/API bindings
We deprecated the image proxy commands and APIs in Newton
due to the 2.36 microversion. We said after Ocata 15.0.0 we
would remove these, which we can do now in Pike.

Note that the list() method on the ImageManager has to be
moved to the GlanceManager since we still need to list images
for the --image-with option on the boot command. The _match_image
method in the shell has to be updated for a glance v2 response
where custom metadata properties are flat in the image body.

This needs to be released with a major version bump.

Change-Id: I2d9fd0243d42538bd1417a42357c17b09368d2a5
2017-02-22 15:56:28 -05:00
Matt Riedemann
e7df023d31 Add functional test for "nova boot --image-with"
We have no functional testing for creating a server
using the --image-with option, which is going to be
impacted when we remove our deprecated code for the
image proxy API in Nova.

This adds a functional test for that flow which
creates a server, snapshots the server with a meta
key/value, then creates a second server using
--image-with and specifying the same meta key/value
set on the snapshot image.

Change-Id: I30017380d3e8dba6f1a50dfdda5eb4802b498bb4
2017-02-22 07:18:41 -05:00
OpenStack Proposal Bot
540f9ceb46 Updated from global requirements
Change-Id: I4d6f4532055172f1c5ba5ff47c0a216890a48480
2017-02-11 17:51:53 +00:00
OpenStack Proposal Bot
814ae2986f Updated from global requirements
Change-Id: I77e91257dcfbe30f8c9d6937038d0dd718c1dfcd
2017-02-10 05:59:16 +00:00
059e5b8e8d Update reno for stable/ocata
Change-Id: Ie163d138f986b6c85e63fae8ee296d81a7d860bc
2017-01-31 18:25:53 +00:00
Jenkins
f6e0128f9a Merge "Add release not for fixing token auth method" 2017-01-26 20:55:25 +00:00
Andrey Kurilin
2b2af1c771 Add release not for fixing token auth method
Change-Id: I0fade88d7c58f4688285ce694ab1258f2ff13c9e
2017-01-26 20:28:22 +02:00
Matt Riedemann
ae69976802 Fix functional tests to deal with multiple networks
There was a change in the openstacksdk 0.9.11 which
python-openstackclient uses to create networks in a devstack
run with Neutron. Because of this change, the admin tenant
has access to both the 'public' and 'private' network setup
in devstack which before used to just be the 'public' network,
which exposed a bug in the novaclient functional testing where
the admin user is attempting to create a server but not
specify a specific network to use, but multiple networks
are available to the admin (it can list multiple networks).
In this case the networks are the standard public and private
networks that are created in devstack. Since a network isn't
specified when creating the server, the nova API fails with a
409 error because it can't determine which network to use.

This patch fixes the testing in novaclient by checking to see
if there are multiple networks available and if so, specifies
one for the legacy BDM tests that weren't specifying a network
ID (those tests don't really care about the networking).

The auto-network test is skipped if there are multiple networks
available because passing in a specific network would defeat
the purpose of that test.

Change-Id: I22ee148581a94b153cf7e733563cfafaa56b1ffd
Closes-Bug: #1654806
2017-01-24 18:44:37 -05:00
Jenkins
16b5bd09e9 Merge "ListExtResource given in place of ListExtManager" 2017-01-24 18:06:04 +00:00
Radomir Dopieralski
1dcd83012b ListExtResource given in place of ListExtManager
This patch makes it use ListExtManager again.

Change-Id: I00ef7107cdf027c747806c4e5037c05b60312e21
Closes-bug: #1658963
2017-01-24 15:57:09 +01:00
Istvan Imre
9940e3fe0e Pass relevant parameters to Token based authentication
In case of token authentication is used pass relevant parameters
to Token authenticator.

Co-Authored-By: Andrey Kurilin <andr.kurilin@gmail.com>
Change-Id: I9a04d89016a834fe96f1b77e91011f7fa4fdda51
Closes-Bug: #1654183
2017-01-24 15:52:22 +02:00
Jenkins
e0d50479ad Merge "x-openstack-request-id logged twice in logs" 2017-01-22 17:32:15 +00:00
OpenStack Proposal Bot
dc3a06bc3b Updated from global requirements
Change-Id: I226c003ea438edd6d4dec6f0b135847381ad7d07
2017-01-21 15:56:51 +00:00
Jenkins
a6a9826cfd Merge "Allow multiple tag add/delete from cli" 2017-01-20 17:16:57 +00:00
Abhishek Kekane
98976d5ab8 x-openstack-request-id logged twice in logs
In the recent release of keystoneauth1 2.18.0 provision is made to log
x-openstack-request-id for session client. Once this new library is synced
in openstack projects, the x-openstack-request-id will be logged twice
on the console if session client is used.

For example,
$ nova --debug list

DEBUG (session:640) GET call to compute for
http://10.232.48.204:8774/v2.1/servers/detail used request id
req-b6aeff56-0408-44ed-80ba-cd7b950a8f21

DEBUG (client:85) GET call to compute for
http://10.232.48.204:8774/v2.1/servers/detail used request id
req-b6aeff56-0408-44ed-80ba-cd7b950a8f21

Above log will be logged twice on the console.

Removed logging of x-openstack-request-id in case of SessionClient as it
is already logged in keystoneauth1.

Depends-On: I492b331ff3da8d0b91178bf0d5fe1d3702f15bd7
Closes-Bug: #1657351

Change-Id: I9ba6a9e498fbcb027f45499d27ece966c52580ba
2017-01-19 18:12:39 +05:30
Boris Pavlovic
0fed79fd8f Add profiling support to novaclient
To be able to create profiling traces for Nova, client should be
able to send special HTTP header that contains trace info.
This patch is also important to be able to make cross project
traces. (Typical case heat calls nova via python client, if
profiler is initialized in heat, nova client will add extra
header, that will be parsed by special osprofiler middleware in nova
api.)

Security considerations: trace information is signed by one of the
HMAC keys that are set in nova.conf. So only person who knows HMAC key
is able to send proper header.

oslo-spec: https://review.openstack.org/#/c/103825/
Based on: https://review.openstack.org/#/c/105089/

Co-Authored-By: Dina Belova <dbelova@mirantis.com>
Co-Authored-By: Roman Podoliaka <rpodolyaka@mirantis.com>
Co-Authored-By: Tovin Seven <vinhnt@vn.fujitsu.com>

Partially implements: blueprint osprofiler-support-in-nova

Depends-On: I82d2badc8c1fcec27c3fce7c3c20e0f3b76414f1
Change-Id: I56ce4b547230e475854994c9d2249ef90e5b656c
2017-01-19 03:50:06 +00:00
Jenkins
c732a5edce Merge "Make _console() public" 2017-01-18 18:29:41 +00:00
Andreas Jaeger
6ba28821bc Fix help strings
Some help strings miss spaces and thus get displayed like "willbe" or
"biggerthan" - add missing spaces.

Change-Id: I560738dd46b3088a6e528a1a24fb2dbea495dcc7
2017-01-18 13:38:57 +01:00
huangtianhua
2512a28dc1 Make _console() public
Heat wants to use 'novaclient.v2.servers.
ServerManager._console' method to simplify the
implementation of retrieving server console.
It's better to change the method to public for
public use.
The patch changes:
1. add public method named get_console_url() for class
   'novaclient.v2.servers.Server'
2. rename _console() to get_console_url() for class
   'novaclient.v2.servers.ServerManager'

Change-Id: I3d1485468d1d0a79d4002981ebe05b6cdf2332e7
Closes-Bug: #1651677
2017-01-18 09:36:43 +08:00
int32bit
70a3957cae Allow multiple tag add/delete from cli
Our users always want to add/remove multiple tags easily, but currently we
can only add/remove a single tag to a server via Nova CLI. This patch
allows user to add or delete server tags in one hit.

Change-Id: I4dc6e5cb30b99857970965cd180e116afba1fc7d
2017-01-17 16:27:26 +00:00
OpenStack Proposal Bot
ae7b2c1edb Updated from global requirements
Change-Id: I291eb851e3d77afd4586b2dfab33cd5302a4b66d
2017-01-16 17:28:02 +00:00
Jeremy Liu
e81b81a027 Enable coverage report in console output
Currently, the coverage test job doesn't provide any test result
to developer, we could enable coverage report in console output
to let the developer know the coverage status when running coverage
test job.
Change-Id: I12764de112e948129e21732faae03562649522fc
2017-01-13 14:14:21 +08:00
Jenkins
e1e33a4823 Merge "Add support for showing aggregate UUIDs (v2.41)" 2017-01-10 17:56:48 +00:00
Kevin_Zheng
aeec4d11b2 Fix "Message object do not support addition".
In the 7.0.0 Novaclient release we added some warning
log about user should using "endpoint_type" rather than
"interface" when init novaclient:
https://github.com/openstack/python-novaclient/blob/master/novaclient/client.py#L312-L327

https://github.com/openstack/python-novaclient/blob/master/novaclient/client.py#L249-L272

This is now causing a lot jenkins failures acroos projects
that is using novaclient with enable_lazy set to False.
As in this kind of scenario the warning message is a message
object instead of unicode sting and it cannot be added:
http://git.openstack.org/cgit/openstack/oslo.i18n/tree/oslo_i18n/_message.py#n227

and "Message object do not support addition" will raise.

Related Jenkins Error:
Ceilometer:
http://logs.openstack.org/29/333129/3/check/gate-ceilometer-python27-ubuntu-xenial/bd125e7/

Closes-bug: #1652414
Change-Id: I11a490f759fdac9707c1321c9659da2605196a94
2017-01-08 00:21:53 +00:00
Matt Riedemann
75ffbaa3e6 Add support for showing aggregate UUIDs (v2.41)
This adds support for the v2.41 microversion which returns
the aggregate uuid in os-aggregates responses. With this
change, CLI requests with microversion >= 2.41 will show
the aggregate UUID in the table output.

Depends-On: I4112ccd508eb85403933fec8b52efd468e866772

Part of blueprint return-uuid-from-os-aggregates-api

Change-Id: I71aeec07c7c442fe82e2bb3f75f49de6ced22e77
2017-01-05 22:11:09 -05:00