2493 Commits

Author SHA1 Message Date
Matt Riedemann
fa377e7fca Handle error response for webob>=1.6.0
WebOb change https://github.com/Pylons/webob/pull/230 changed
the way in which the error response body is formatted such that
it's no longer a nested dict. So we have to handle both the
old convention of an error message key to the response body error
dict and the new way with just the error body dict.

This was reported upstream:

https://github.com/Pylons/webob/issues/235

But given this was apparently implemented as a long-overdue change
in WebOb the behavior is not likely to change.

Change-Id: If653a247d842786d2824b4b3a5c0cde1383ed7ab
Closes-Bug: #1559072
2016-03-18 19:22:03 -04:00
Doug Hellmann
a7bffe8a71 Update reno for stable/mitaka
Change-Id: I9081add2d40865a4e379de4ed7dfc46c5e69fbbc
2016-03-10 21:13:40 +00:00
Jenkins
b921cb14e4 Merge "Prepare to move extension into core plugin" 2016-03-10 13:54:55 +00:00
abhishek.talwar
b80d8cb6e6 nova add-secgroup help updated with secgroup id
As per nova add-secgroup help,
the user need to enter secgroup
name's to  add it to a server.
But as the command works fine
with secgroup id too, so updated
the help.

Change-Id: If13dd619808b7ff87c214f17ef71296166d870ab
Closes-Bug: #1554930
2016-03-09 14:53:43 +05:30
Jenkins
5afb7889af Merge "Remove additional 'timeout' element" 2016-03-08 19:01:31 +00:00
Jenkins
5baa4d6d79 Merge "Deprecate run_test.sh" 2016-03-08 12:22:32 +00:00
Cao ShuFeng
680320169b Remove additional 'timeout' element
Remove additional 'timeout' element from trigger crash dump test and
rename _wait_for_nmi to _assert_nmi so that we get at least one
'assert' for each test.

Change-Id: I70372a8c725827ee9b5285ed92ca06b35eb0edbc
Closes-bug: 1554306
2016-03-08 10:25:22 +08:00
Jenkins
17be772404 Merge "Return a less dramatic message for public flavors." 2016-03-08 01:35:48 +00:00
Jenkins
462445d570 Merge "Make it clear that host-servers-migrate is a cold migration" 2016-03-08 00:33:43 +00:00
Jenkins
bfac3c6d55 Merge "Remove unused code in tests/unit/v2/fakes.py" 2016-03-07 21:31:09 +00:00
Matt Riedemann
d8e2f0c1a4 Make it clear that host-servers-migrate is a cold migration
Let's be clear in the help text that host-servers-migrate is
a cold migration since we have similar sounding commands
host-evacuate and host-evacuate-live (which is not actually
evacuate, it's live migration).

Change-Id: I17ee230fc1c29369c40492523c9d97d25f7ee023
2016-03-07 16:01:22 -05:00
Jenkins
df80402fa7 Merge "Remove an unused method in novaclient/shell.py" 2016-03-07 18:30:27 +00:00
Jenkins
0fc5437e5d Merge "Fix a typo in novaclient/v2/hosts.py" 2016-03-07 18:30:20 +00:00
Jenkins
58356df3d9 Merge "Remove console expectation from NMI tests" 2016-03-07 17:48:26 +00:00
Jenkins
20e7aa57c4 Merge "Use novaclient/utils directly and remove openstack/common (4/4)" 2016-03-07 12:07:46 +00:00
Jenkins
f612af714d Merge "Use novaclient/utils directly and remove openstack/common" 2016-03-07 12:07:39 +00:00
Jenkins
0c3a92a77b Merge "Use novaclient/utils directly and remove openstack/common (2/4)" 2016-03-07 11:56:04 +00:00
Jenkins
796b9883b5 Merge "Use novaclient/utils directly and remove openstack/common (1/4)" 2016-03-07 11:48:16 +00:00
Sven Anderson
c2ec89d285 Return a less dramatic message for public flavors.
Getting the access list of a public flavor bails out with a dramatic
error message, suggesting that something is broken.  This changes the
message to an unagitated "Access list not available for public
flavors."

Change-Id: I432496c24b23de8fa58de93f2cbed8bed1d540b1
2016-03-07 11:35:27 +01:00
Takashi NATSUME
a571ebd72a Remove unused code in tests/unit/v2/fakes.py
TrivialFix
Change-Id: I9c089f50f0b48bb7f41af9c4d6fbb8355d668a74
2016-03-07 06:52:33 +00:00
Takashi NATSUME
0ee5aea617 Fix a typo in novaclient/v2/hosts.py
TrivialFix
Change-Id: I6992edbb768f14d0d4f0a7d79521876832e12714
2016-03-07 14:25:54 +09:00
Takashi NATSUME
8691eeccd8 Remove an unused method in novaclient/shell.py
The 'positive_non_zero_float' method has not been used
since Ifc9ddc08614e28358229db84cb9b54552ca36d51.

TrivialFix
Change-Id: Ice0c8f15dbc1a027710e0ace6c8fa872b964c3b6
2016-03-07 13:46:48 +09:00
Ken'ichi Ohmichi
471e08a4d4 Remove console expectation from NMI tests
The original tests expect the server console contains a message
  "Uhhuh. NMI received for unknown reason"
but the expectation is wrong because this message is fallback one
when disabling crash dump, that means the test expects the crash
dump is disable. That is not the purpose of this NMI feature.

In addition, this message is output on x86 cpu architecture only
because the message is implemented in
  https://github.com/torvalds/linux/blob/master/arch/x86/kernel/nmi.c#L304
So if we use the other cpu architectures on the test, this test will
fail.

Let's remove the expectation from the tests.

Change-Id: I62fe2e00433fd216def25d99a2f20d17b988fb84
Closes-Bug: #1553597
2016-03-06 06:47:54 +09:00
Jenkins
d63800d5ec Merge "The novaclient Python API doc keystoneauth example fixed" 2016-03-03 08:24:31 +00:00
Kevin_Zheng
16c36ce79e Use novaclient/utils directly and remove openstack/common (4/4)
We can use novaclient/utils directly and get rid
of openstack/common folder.

This is the last part.

Change-Id: I8103adafde7d8b3a101181366639314740f9a25a
Partial-Bug: #1551603
2016-03-03 09:24:48 +08:00
Kevin_Zheng
49410c06a5 Use novaclient/utils directly and remove openstack/common
We can use novaclient/utils directly and get rid
of openstack/common folder.

This is the third part.

Change-Id: I405044af3912d86da66df05413edfc724bc102d0
Partial-Bug: #1551603
2016-03-03 01:24:05 +00:00
Kevin_Zheng
a787d33eb1 Use novaclient/utils directly and remove openstack/common (2/4)
We can use novaclient/utils directly and get rid
of openstack/common folder.

This is the second part.

Change-Id: I12b03aa0a13c95ae949adf7e876c675ce309bae5
Partial-Bug: #1551603
2016-03-03 01:23:46 +00:00
Kevin_Zheng
93913c84b6 Use novaclient/utils directly and remove openstack/common (1/4)
We can use novaclient/utils directly and get rid
of openstack/common folder.

This is the first part.

Change-Id: Iaec234fbcf4d0f8c7e8f2175eae11d3083a62090
Partial-Bug: #1551603
2016-03-03 01:23:34 +00:00
Jenkins
f9360ae6d4 Merge "Provide user with coherent interface to get request_ids" 2016-03-02 13:05:05 +00:00
meretiko
54ed91583f The novaclient Python API doc keystoneauth example fixed
The novaclient Python API document's keystoneauth session
example is not working.

AttributeError: 'Password' object has no attribute 'Password'
is fixed with this patch

Change-Id: I0c06279eed936619a770e84207bb02e79f42f6a7
Closes-Bug: #1552206
2016-03-02 14:25:29 +02:00
Jenkins
d56c95de40 Merge "[microversion] Bump to 2.25" 2016-03-02 12:15:34 +00:00
Eli Qiao
ae598280ac [microversion] Bump to 2.25
microversion v2.25 will change parameter of os-migrateLive, this patch
adds supports to that changes.

os-migrateLive will abandon disk_over_commit and the default value of
block_migration will be set to `auto`

Depends-on: Ibb0d50f0f7444028ef9d0c294aea41edf0024b31
Implements: blueprint making-live-migration-api-friendly
Change-Id: I01b22593724616bc0a7793c509ecabf095d6927d
2016-03-02 17:24:17 +08:00
Jenkins
f30f41f13d Merge "Use isinstance instead of type" 2016-03-02 07:57:02 +00:00
Jenkins
32a28f8040 Merge "Support for abort an ongoing live migration" 2016-03-01 22:00:25 +00:00
Jenkins
3a3a5c8ac6 Merge "Add two server-migration commands and bump migration-list command" 2016-03-01 15:11:12 +00:00
Andrea Rosa
77e50cc91b Support for abort an ongoing live migration
In Nova API microversion 2.24 there is a new operation which allows to
abort a running live migration.

This change is to enable this feature at the client side implementing a
new method to call the new nova API:
nova live-migration-abort <server_id> <migration_id>

Implements blueprint: abort-live-migration

Depends-On: I1ff861e54997a069894b542bd764ac3ef1b3dbb2

Change-Id: Ic2ead126e0cf48aa54a083e97cb9d1303a5a9bbd
2016-03-01 13:43:33 +00:00
ShaoHe Feng
e0c7d2c673 Add two server-migration commands and bump migration-list command
1. Add two new commands
Add nova client server-migration-list and server-migration-show

2. Bump and old command
Add migration_type field for migration-list command

Partially implements blueprint live-migration-progress-report

Depends-On: Ia92ecbe3c99082e3a34adf4fd29041b1a95ef21e

Change-Id: I071198fa9ba0699383bdebf4fab54714a435e6c3
2016-03-01 12:27:54 +00:00
Jenkins
eb461f082b Merge "Add a way to discover only contrib extensions" 2016-03-01 00:48:38 +00:00
Cao ShuFeng
5c1acb91f7 Use isinstance instead of type
With the patch sets of request_ids, the *Manager classes return
'DictWithMeta' or 'ListWithMeta' rather than 'dict' or 'list'.
This change adjust conditional statements to use isinstance when
comparing variables. Isinstance supports inheritance type checking
better than type.

The effected subcommands are:
    evacuate
    interface-list
    interface-attach
    interface-detach

Change-Id: I0c1291110c1386d2ff027cb149a5aff20019e6f7
Closes-Bug: 1550870
2016-02-28 14:51:51 +08:00
Jenkins
66b4085c9e Merge "Adds missing internationalization for help message" 2016-02-27 01:07:51 +00:00
Jenkins
6a8df59254 Merge "Functional tests for trigger-crash-dump (microversion 2.17)" 2016-02-25 17:59:29 +00:00
Jenkins
a36df7e63f Merge "Support for forcing live migration to complete" 2016-02-25 17:40:00 +00:00
Jenkins
91a7084067 Merge "[microversions] Enable 2.21" 2016-02-25 17:37:44 +00:00
Pawel Koniszewski
62c76301a2 Support for forcing live migration to complete
In API microversion 2.22 in Nova there is new ServerMigrations resource
that allows opertators to force on-going live migration to complete:
https://review.openstack.org/#/c/245921/

This patch implements new method in python-novaclient to take advantage
of the new API:
nova live-migration-force-complete <instance_id/name> <migration_id>

Change-Id: I823c20b4e0c7b63e905f564a7dff13d3fb314a26
Implements blueprint pause-vm-during-live-migration
2016-02-25 13:59:11 +00:00
Bartosz Górski
e43c66a0aa Adds missing internationalization for help message
Change-Id: I676daed583cac49f72593c79e9f79f7c9908a57c
Related-Bug: #1491492
Signed-off-by: Bartosz Górski <bartosz@codilime.com>
2016-02-25 07:05:35 +00:00
Jenkins
bbba47448c Merge "Use assertIsNone instead of assertEqual(None, ***)" 2016-02-24 23:02:40 +00:00
Andrey Kurilin
cd88097ff5 [microversions] Enable 2.21
2.21 - The os-instance-actions API now returns information from deleted
       instances.

Change-Id: Iff514e4fa9135207c6f8e32e444d45b1b61d8c7c
2016-02-24 20:57:34 +02:00
Andrey Kurilin
ca5b06f6ae [microversions] fix help msg for versioned args
If command has arguments with one name, but for different versions(see an
example below), both arguments will be displayed. This patch fixes this
issue.

Example of arguments:

    @cliutils.args("name",
                   help="Name of a good action.",
                   start_version="2.1",
                   end_version="2.20")
    @cliutils.args("name",
                   help="Name of a very good action.",
                   start_version="2.21")
    def do_something_good(cs, args):
        pass

Example of helpoutput before patch:

    Positional arguments:
      <name>    Name of a good action. (Supported by API versions '2.0' - '2.20')
      <name>    Name of a very good action. (Supported by API versions '2.21' -
                '2.latest')

Change-Id: I59f155675e2aae642a5b90cb70008eb5647ffe79
2016-02-24 20:10:31 +02:00
jichenjc
68c16f82d5 Prepare to move extension into core plugin
As nova stable_api.rst indicated: As the extension will be removed
from Nove V2.1 REST API. So the concept of core API and extension
API is eliminated also. There is no difference between Nova V2.1
REST API, all of them are part of Nova stable REST API.

so we can move all extensions from contrib to core, this
patch is prelude of https://review.openstack.org/#/c/285213/ and
its following patchs.

Change-Id: Ibd5df4bcc70a4b4854fd519330d89c751f7409dc
2016-02-24 17:15:31 +08:00
Jenkins
0fcfa02841 Merge "Updated from global requirements" 2016-02-23 22:22:35 +00:00