1917 Commits

Author SHA1 Message Date
Jenkins
f5c0b59fd6 Merge "Adding functional tests for 2.3 microversion" 2016-09-07 13:49:56 +00:00
Sarafraj Singh
47b19ffb54 Adding functional tests for 2.3 microversion
Change-Id: Id5cf7ef5c3c7049e36da42f59fd67a61cd3df2d9
Closes-Bug: #1602797
2016-07-27 14:59:28 -05:00
He Jie Xu
1794fae8f3 Bump Microversion to 2.36 for Proxy API deprecation
This is the final patch in this series. This patch bumps the
microversion to 2.36, all the proxy APIs were deprecated.

Partially implements blueprint deprecate-api-proxies

Change-Id: I1a8a44530be29292561e90d6f7bd7ed512a88ee3
2016-07-26 19:26:37 +08:00
Jenkins
eec3a2b9e8 Merge "Bump service version for BuildRequest deletion" 2016-07-21 00:44:34 +00:00
Jenkins
ab1563a273 Merge "Fix wrong JSON format in API samples" 2016-07-13 04:26:42 +00:00
Jenkins
911baa6018 Merge "Transform instance.restore notifications" 2016-07-13 04:25:49 +00:00
Zhihai Song
bd0ba826e4 Transform instance.restore notifications
The instance.restore.start and instance.restore.end notifications
are transformed to the versioned framework.

Change-Id: I4459ec05a7153af7a0f04adcccb9d99cb5f661e5
Implements: bp versioned-notification-transformation-newton
2016-07-12 20:57:07 -04:00
Andrew Laski
916f01ef7d Bump service version for BuildRequest deletion
This service version indicates that the successful delete of a
BuildRequest during instance deletion will cause nova-conductor to stop
a build when it notices that the BuildRequest is gone. This simplifies
the delete code for dealing with pre-scheduled instances.

Change-Id: I961d002cccd3e01a26cb5174e0804db7fc1f836d
2016-07-12 13:35:36 -04:00
Pavel Kholkin
47358449d3 Microversion 2.35 adds keypairs pagination support
After this microversion Nova API allows to get several keypairs
with the help of new optional parameters 'limit' and 'marker'
which were added to GET /os-keypairs request.

Partial-Bug: #1599904

Implements blueprint: keypairs-pagination

Change-Id: Idd3757f5be90ec4af1bd1a7ca3f9c20319dbfd33
2016-07-12 19:48:05 +03:00
Timofey Durakov
452be384cd rest api version bumped for async pre live migration checks
pre live-migration checks now are done in async way. This patch
updates rest api version to keep this tracked.

bp: async-live-migration-rest-check

Change-Id: I9fed3079d0f1b7de3ad1b3ecd309c93785fd11fe
2016-07-11 14:57:54 -07:00
Jenkins
bae1d9cc21 Merge "Deprecate nova-manage vm list command" 2016-07-11 15:23:47 +00:00
Jenkins
9f2597fac6 Merge "Transform instance.resize notifications" 2016-07-11 02:17:47 +00:00
Jenkins
1a074a7284 Merge "Transform instance.pause notifications" 2016-07-11 02:15:59 +00:00
Jenkins
66d4ab7579 Merge "Add nova-manage quota_usage_refresh command" 2016-07-10 06:12:38 +00:00
Jenkins
074282ec5d Merge "Replace DOS line ending with UNIX" 2016-07-08 20:42:43 +00:00
Anusha Unnam
029f92d93a Transform instance.resize notifications
The instance.resize.start and instance.resize.end notifications
are transformed to the versioned framework.

Implements: bp versioned-notification-transformation-newton
Change-Id: If5183eddb7d79712f360cde11c554e4798f86255
2016-07-08 16:52:15 +01:00
Balazs Gibizer
9fafcc7883 Replace DOS line ending with UNIX
Some of the notification sample files had DOS line endings.

Change-Id: If1a120fc782a144966d41e0c3b2e0859bbffcb44
2016-07-08 09:21:15 +02:00
Takashi NATSUME
31ad01f0f1 Fix wrong JSON format in API samples
Fix wrong JSON format in snapshot-create-assisted-req.json.

Change-Id: I0817171bd7bc67384d4c40854ce5dc2952b38cfa
Closes-Bug: #1600070
2016-07-08 10:15:29 +09:00
Matt Riedemann
5a5b06fb24 Deprecate nova-manage vm list command
The nova-manage vm command is replaced with the nova list command
in python-novaclient, and has been for a long time.

As of microversion 2.3, the fields that are output from
nova-manage vm list are all covered in the REST API for showing server
details, which can also be used via the --fields option of the nova
list command. The nova list command also allows filtering by host.

This sets the timer for deprecation and then removal in Ocata.

Change-Id: Ibce8c3deb24a16019b721d3b91640ca342ae541b
Closes-Bug: #1494841
2016-07-07 16:15:09 -04:00
Matt Riedemann
c1d7fc702a Remove live-migration from nova-manage man page
There is no command for live-migration in nova-manage
so remove it from the man page.

Change-Id: I29764bcc4592ce023cfce53a477a851a633e6541
2016-07-07 16:04:13 -04:00
Sujitha
5bd8e2d47c Transform instance.pause notifications
The instance.pause.start and instance.pause.end notifications
are transformed to the versioned framework.

Implements: bp versioned-notification-transformation-newton

Change-Id: I67979c1cd7cd221a2241846255bf2a884a9d60f5
2016-07-07 15:26:53 +00:00
Béla Vancsics
1d0326cce1 Transform instance.shelve notifications
Instance.shelve.start and instance.shelve.end notifications
are transformed to the new versioned framework.

Change-Id: Ibb52f4c9d8ec10810916a6ccb2bb494db7300d05
Implements: bp versioned-notification-transformation-newton
2016-07-07 09:44:11 +02:00
Chuck Carmack
8d25383ad2 Add nova-manage quota_usage_refresh command
This is the final patch in the sequence.

The nova-manage quota_usage_refresh command will
sync a project or user's usage in the database
with the actual usage.

Implements blueprint: refresh-quotas-usage

Change-Id: Ic6da10b9c567ad5396b4a22b160e1abef8fa8f28
2016-07-06 22:24:02 +00:00
Jenkins
e1b8a1e4bf Merge "Transform instance.suspend notifications" 2016-07-06 21:26:14 +00:00
Jenkins
94c96f226a Merge "api-ref: verify assisted-volume-snapshots.inc" 2016-07-04 14:51:03 +00:00
Pushkar Umaranikar
db064bbb40 Transform instance.suspend notifications
The instance.suspend.start and instance.suspend.end
notifications are transformed to the versioned notifications
framework.

Change-Id: I6a90019773c415db9d27c893eb64466ae101b7d7
Implements: blueprint versioned-notification-transformation-newton
Depends-On: #313654
2016-07-01 19:04:04 +00:00
Zhihai Song
2a99eb1f3a Transform instance.power_on notifications
The instance.power_on.start and instance.power_on.end notifications
are transformed to the versioned framework.

Change-Id: I4e4fd701a59064b89e38b50dcc01c9d8846a09b0
Implements: bp versioned-notification-transformation-newton
2016-07-01 15:36:41 +00:00
Jenkins
4e62960722 Merge "Transform instance.update notification" 2016-07-01 10:24:11 +00:00
ghanshyam
26d4c055cc api-ref: verify assisted-volume-snapshots.inc
This completes the verification of os-assisted-volume-snapshots.inc
for all required area(parameter, example, body)

Part of bp:api-ref-in-rst

Change-Id: I9544e9681bcdd83ca5d2bf6b8722db0a71665b8b
2016-07-01 07:23:33 +00:00
liyingjun
ec53c6c0ec Microversion 2.33 adds pagination support for hypervisors
When there are thousands of compute nodes, it would be slow to get the
whole hypervisor list, and it is bad for user experience to display
thousands of items in a table in horizon. This patch is proposed to
support pagination for hypervisor by adding `limit` and `marker` to
the list api.

Implements blueprint: pagination-for-hypervisor

Change-Id: Ie7f8b5c733b383f3e69fa23188e56257e503b5f7
2016-07-01 08:47:50 +08:00
Jenkins
4d1ef49ffa Merge "Transform instance.delete notifications" 2016-06-30 23:37:46 +00:00
Jenkins
7ffb5aac90 Merge "api-ref: Example verification for os-agents.inc" 2016-06-30 23:10:16 +00:00
Jenkins
33a43322d1 Merge "libvirt: virtuozzo instance rescue mode support" 2016-06-30 18:57:24 +00:00
Jenkins
5b31a0dac8 Merge "Device tagging API support" 2016-06-30 15:00:40 +00:00
Balazs Gibizer
87e13112b1 Transform instance.update notification
Change-Id: I4e1ca357322bdbcb95e4803001f4a7dc1bd37f04
Implements: bp versioned-notification-transformation-newton
2016-06-30 16:54:57 +02:00
Balazs Gibizer
998235da63 Transform instance.delete notifications
The instance.delete.start and instance.delete.end notifications
are transformed to the versioned framework using the generic
InstanceActionNotification and InstanceActionPayload class.

There is no instance.delete.error notification in legacy so
it is not added here but considered as a future improvement.

Change-Id: Iddbe50ce0ad3c14562df800bbc09ec5a7e840485
Implements: bp versioned-notification-transformation-newton
2016-06-30 16:54:51 +02:00
Artom Lifshitz
e83e114e1b Device tagging API support
This patch allows the user to specify a tag for a virtual network
interface and/or block device mapping when booting an instance.

Implements: blueprint bp/virt-device-role-tagging
Change-Id: I89247200f4cf1f644daf476727b4a6acb22b0cf6
2016-06-29 20:55:16 -07:00
Artom Lifshitz
e2eb6659a4 Compute manager device tagging support
This patch allows the network manager(s) to set virtual device tags if
they are present during allocation.

Implements: blueprint virt-device-role-tagging
Co-authored-by: Vladik Romanovsky <vromanso@redhat.com>
Co-authored-by: Dan Smith <dansmith@redhat.com>
Change-Id: I8367f740d6d4ebaeb81bc74c6a82a8faf5cd8308
2016-06-29 16:53:34 -07:00
Mikhail Feoktistov
d60d70598e libvirt: virtuozzo instance rescue mode support
Adapt "nova rescue" code to support Virtuozzo ploop disks.
In rescue mode we use static mount point /mnt/rescue for original filesystem.
As far as ploop disks are in fact directories
we use rmtree function to delete rescue disks in unrescue procedure.

Implements: blueprint virtuozzo-rescue-support
Change-Id: I07b9e3a8b726635294395b0292fc3592a1b0f918
2016-06-29 17:29:30 +03:00
Jenkins
f2276cd309 Merge "Update get_instance_diagnostics for instance objects" 2016-06-29 13:45:15 +00:00
Mikhail Feoktistov
d4aa455d53 libvirt: virtuozzo instance resize support
Adapt "nova resize" code to support Virtuozzo ploop disks.
As far as ploop disks are in fact directories we add '-r' argument
to all utilities that deal with instance' disks such as cp, rsync and scp.
Thus we copy disks universally whether they are folders or files.

Also using "prl_disk_tool" instead of "qemu-img" is better for ploop images
because it resizes guest filesystem as well.

We can't resize disks from guest OS in containers,
because they are not allowed to write directly to block device.
ploop tool can resize partition table and internal filesystem,
but only for container's disks. Such disks must have only one partition
with ext filesystem.

prl_disk_tool can resize disks with internal filesystems
and doesn't require any special layout so it can resize disks
for virtual machines.  So it's better to use this tool instead of ploop.

Also we make compute.filters more strict
We call "ploop" only with "restore-descriptor" argument
And we set disk size in megabytes for prl_disk_tool

Co-Authored-By: Dmitry Guryanov <dguryanov@parallels.com>
Depends-On: I04c4379459c2fc1fd4801ec2aad53d0f6053b6d6
Change-Id: I38dbf73beb01fe1939ddca63fbfedbec1dc3c826
Implements: blueprint virtuozzo-instance-resize-support
2016-06-28 22:13:49 +03:00
Andrew Laski
aeebd6614a Update get_instance_diagnostics for instance objects
Removes a longstanding TODO to update this method to handle instance
objects. The method is not actually used anywhere so there are no
upgrade concerns, but proper protocol is observed regardless.

Change-Id: Ieaf538fa2dc5c4a15574cc6aacac26abbac3b5a2
2016-06-28 10:36:25 -04:00
Takashi NATSUME
ba71b8d9ab api-ref: Example verification for os-agents.inc
Currently only 'xen' is supported for the 'hypervisor'
parameter. So examples are changed to 'xen'
instead of 'hypervisor'.

Change-Id: Ibd40dcfd3801c7a4165e299a1232ea46f2f17cf4
Implements: blueprint api-ref-in-rst
2016-06-27 21:29:26 +09:00
Matt Riedemann
df0a4e0990 Bump the service version for get-me-a-network support
The REST API is going to be checking that all computes
in the deployment are running new enough code to support
network requests with the special 'auto' and 'none' values
for Get Me a Network, so we need to bump the service version
which can be used as the minimum version to check.

Part of blueprint get-me-a-network

Change-Id: Ia1af75422d5e1fd4535c1ed9703d855239282559
2016-06-24 14:02:24 -04:00
Jenkins
491613e3f3 Merge "Fix ConsoleAuthTokens to work for all console types" 2016-06-24 15:58:21 +00:00
Jenkins
5730a39ed7 Merge "fix developer docs on API" 2016-06-24 12:47:03 +00:00
Jenkins
2983c4ecb0 Merge "Modify "policy.conf" to "policy.json"" 2016-06-23 19:17:44 +00:00
Jenkins
81d0bf4619 Merge "Not talking about V2 API code in review doc guide" 2016-06-23 15:19:01 +00:00
Jenkins
7cfe2f37ae Merge "Handle multiple samples per versioned notification" 2016-06-23 11:53:20 +00:00
Sean Dague
c9f7b84df9 fix developer docs on API
During the defcore discussion about the fact that the extensions
facility was deleted from Nova, folks pointed to this doc and the word
extensions to state that it was clearly still supported. There are
many levels of confusion there.

This tries to crisp up the introduction and links to the API docs for
Nova.

Change-Id: Ic0be29fb14bfb00ed7691439318325967d138dc9
2016-06-22 15:06:12 -04:00