406 Commits

Author SHA1 Message Date
Jenkins
72078267ec Merge "Port disk_config extension for V2.1" 2014-10-14 05:40:34 +00:00
Jenkins
b34b06b4ad Merge "Port os-networks plugin to v2.1(v3) infrastructure" 2014-10-14 01:20:30 +00:00
Jenkins
560803f3f4 Merge "Port floating_ip_pools extention to v2.1" 2014-10-13 16:22:25 +00:00
Eli Qiao
a6e5365ea6 Port floating_ip_pools extention to v2.1
This patch ports floating_ip_pools extention from v2 to v2.1,
and have v2 unit test cases shared between v2.1 and v2.
Partially implements blueprint v2-on-v3-api

Change-Id: I0b34358db08a29e76a59b22a0992abc88296058d
2014-10-13 15:33:03 +08:00
Chris Yeoh
be5285c3fc Port os-networks plugin to v2.1(v3) infrastructure
Ports os-networks extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical.

- unittest code modified to share testing with both v2/v2.1
- Adds expected error decorators for API methods

Partially implements blueprint v2-on-v3-api

Change-Id: I94b7b476cbb02725a396725a379417b64afd58a7
2014-10-10 09:48:13 +10:30
Eli Qiao
6722f72fd1 Port cloudpipe extension to v2.1
This patch ports couldpipe extension from v2 to v2.1,
and have v2 unit test cases shared between v2.1 and v2.
Partially implements blueprint v2-on-v3-api

Change-Id: Id40c637c0fc207e97b1d094805eb0cee6e9cd9c9
2014-10-09 14:05:49 +08:00
Dan Smith
a172e45cce Remove baremetal virt driver
This patch removes the baremetal virt driver from nova, which was
deprecated in Juno. It does not aim to perform any of the refactoring
we need to do now that the driver is gone, but is intended as a clean
removal of all the baremetal code itself.

Of specific note are the api_samples tests. We didn't have samples to
test the ironic proxy code, so I removed the baremetal ones for show
and index, resetting that extension back to "untested" status as if it
was new.

Tests that stub out ironic interactions and re-introduce those tests
should be added after this patch.

Change-Id: Ia76e41a8a3b7230701872ae7a1975edc3d9ea847
2014-10-08 13:41:37 +00:00
ghanshyam
0ac1358055 Port disk_config extension for V2.1
This patch ports v2 disk_config extension to v2.1.

Unittest code modified to share testing with both v2/v2.1.
API sample file and their tests have been added.

Also added extension point of server resize V3.

Partially implements blueprint v2-on-v3-api

Change-Id: Id2aace8121a310f8c86c6a9cc532bd1074d653c4
2014-10-08 17:33:32 +09:00
Chris Yeoh
08a57f0f25 Port fping extension to work in v2.1/v3 framework
Ports v2 fping extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical.

- unittest code modified to share testing with both v2/v2.1
- Adds expected error decorators for API methods

Partially implements blueprint v2-on-v3-api

Change-Id: I8dc4ede46826bf6062097a3b4ba6be9a09a1bd12
2014-10-07 13:48:08 +10:30
Jenkins
a28e76c0d6 Merge "Don't list entire module autoindex on docs index" 2014-10-02 01:50:13 +00:00
Thierry Carrez
f59333cbc0 Open Kilo development
Bump pre-version to 2015.1 to formally open master branch to Kilo
development.

Change-Id: Ib634eb7acb64ff1d7be49852972295074b11557a
2014-09-30 10:34:26 +02:00
Joe Gordon
0c9a0eb2c7 Don't list entire module autoindex on docs index
Don't list entire api/autoindex under Developer Docs,  we already have a
model index link at the  bottom of the page, showing the entire
autoindex on the home page is makes the page overwhelming.

Change-Id: I25c5b50412881b55aa745ce3da2c22466e879fcf
2014-09-17 18:33:45 -07:00
Jenkins
fae3408e6d Merge "Port image-size extension to work in v2.1/v3 framework" 2014-09-07 02:50:07 +00:00
Jenkins
206068cf9a Merge "Port v2 image_metadata extension to work in v2.1(v3) framework" 2014-09-07 02:47:27 +00:00
Ghanshyam
982f266900 Port used_limits & used_limits_for_admin into v2.1
The used_limits & used_limits_for_admin is removed from v3 API.
For now, we need porting it back. And also try to share unittests
between v2 and v2.1.

Partially implements blueprint v2-on-v3-api

Change-Id: I57199273dcaf20b0b6618dfb436a92f04b139f52
2014-09-03 14:18:21 +09:00
Jenkins
6bcd59c6cf Merge "Port limits extension to work in v2.1/v3 framework" 2014-09-03 03:41:26 +00:00
Jenkins
cd2ca8b530 Merge "Port volumes extension to work in v2.1/v3 framework" 2014-09-03 03:35:29 +00:00
Jenkins
d9ada5e091 Merge "Port v2 images extension to work in v2.1(v3) framework" 2014-09-03 01:59:48 +00:00
Jenkins
b6e1003926 Merge "Adds nova-idmapshift cli utility" 2014-09-02 20:39:21 +00:00
Chris Yeoh
4cb8a0973b Port volumes extension to work in v2.1/v3 framework
Ports v2 volumes extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical with the exception
that there is no support for XML. Also

- unittest code modified to share testing with both v2/v2.1
  where appropriate
- Adds expected error decorators for API methods

Note that there will be further code cleanup in the future
but the code currently is mostly as-is from the v2 codebase.

Partially implements blueprint v2-on-v3-api

Change-Id: If2a9dd1f5233812a1177b54ded6f0ae115c54e97
2014-09-02 09:28:06 +09:30
Chris Yeoh
6f9e3aa49d Port limits extension to work in v2.1/v3 framework
Ports v2 limits extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical with the exception that
there is no support for rate limiting since no one uses that
seriously anyway.

- unittest code modified to share testing with both v2/v2.1
- Adds expected error decorators for API methods

Partially implements blueprint v2-on-v3-api

Change-Id: I072d364f4d2a92a02801862435f11417956d2dc0
2014-09-01 22:38:33 +08:00
Chris Yeoh
cb302f2ba5 Port image-size extension to work in v2.1/v3 framework
Ports v2 image-size extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical with the exception
that there is no support for XML. Also

- unittest code modified to share testing with both v2/v2.1
- Adds expected error decorators for API methods

Partially implements blueprint v2-on-v3-api

Change-Id: I44f3d35b3d888e2f4429ca0788d74b9b0cce9494
2014-09-01 22:27:31 +08:00
Chris Yeoh
3361b6562c Port v2 image_metadata extension to work in v2.1(v3) framework
Port v2 image_metadata extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical with the exception that
there is no support for XML. Also

- unittest code modified to share existing testing with both
  v2/v2.1
- Adds expected error decorators for API methods
- Adds API samples

Partially implements blueprint v2-on-v3-api

Change-Id: Ibc8dc897f3449a1c70bc7ac1510445f48fddb291
2014-09-01 22:26:37 +08:00
Chris Yeoh
e45fc2cf04 Port v2 images extension to work in v2.1(v3) framework
Ports v2 images extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical with the exception
that there is no support for XML. Also

- unittest code modified to share testing with both v2/v2.1
  where appropriate
- Adds expected error decorators for API methods

Partially implements blueprint v2-on-v3-api

Change-Id: I7b15a56f41612e3bbf5d59c3ad44fd32386ff315
2014-09-01 22:22:06 +08:00
Jenkins
06118697d9 Merge "Changes V3 server_actions extension into v2.1" 2014-09-01 13:48:37 +00:00
Jenkins
f92208071e Merge "cmd: add nova-serialproxy service" 2014-09-01 11:19:38 +00:00
Sahid Orentino Ferdjaoui
01dcc382cc cmd: add nova-serialproxy service
Adds a websocket proxy that is compatible with Nova
serial ports.

Co-Authored-By: Vladan Popovic <vpopovic@redhat.com>
Co-Authored-By: Ian Wells <iawells@cisco.com>
Co-Authored-By: Sushma Korati <sushma_korati@persistent.co.in>

Partial-Implements: blueprint serial-ports
Change-Id: Ia944cb93945140e6341588063329a981f7e778f1
2014-08-30 14:27:54 +00:00
Eli Qiao
8c024afaea Changes V3 server_actions extension into v2.1
This patch changes v3 server_actions API to v2.1, and also share v2.1 and v2
test case.
rename server_actions back to instance_actions.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .
Partially implements blueprint v2-on-v3-api

Change-Id: I8f11dc5f199711e1c98badfbe0035883d9c15573
2014-08-30 17:04:47 +08:00
Andrew Melton
fe053d3e1a Adds nova-idmapshift cli utility
nova-idmapshift will be used by the libvirt-lxc driver to
correctly shift ownership of instance rootfs for use with
user namespaces.

Partially implements: bp libvirt-lxc-user-namespaces

Change-Id: I9aee622cca4578149201f02d02231a7bd0cbe912
2014-08-29 14:52:22 -04:00
He Jie Xu
3b9207f53a Add extension block_device_mapping_v1 for v2.1
In the beginning v3 didn't support legacy block_device_mapping request.
For v2.1, we want to keep back-compatibility with v2 api, so we need
add legacy block_device_mapping.

This patch add new extension block_device_mapping_v1 for v2.1. Also
share legacy block_device_mapping related unittests between v2 and v2.1.

Partially implements blueprint v2-on-v3-api

Change-Id: I841833d8fd0995ddf49febd9c1611cf711742f5a
2014-08-29 10:36:43 +08:00
Jenkins
ad1478d1d1 Merge "Port simple_tenant_usage into v2.1" 2014-08-28 18:40:13 +00:00
He Jie Xu
66caf07827 Port simple_tenant_usage into v2.1
The simple_tenant_usage extension is removed from v3 API. For now,
we need porting it back. And also try to share unittests between v2
and v2.1.

Partially implements blueprint v2-on-v3-api

Change-Id: Ie0c36fcd37fb188c1f1b57f04733bfa267b65201
2014-08-28 10:27:25 +08:00
Chris Yeoh
c89f6165d7 Port os-server-groups extension to work in v2.1/v3 framework
Ports v2 os-server-groups extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical with the exception
that there is no support for XML. Also

- unittest code modified to share testing with both v2/v2.1
- Adds expected error decorators for API methods
- Adds api sample tests

Partially implements blueprint v2-on-v3-api

Change-Id: I52e49e6e85a7516e3b184601374e5c987f60a9a0
2014-08-20 17:29:01 +09:30
Davanum Srinivas
34ac961cc3 docs - Set pbr 'warnerrors' option for doc build
By setting this pbr option in setup.cfg, the doc build will fail in case
of any warnings or errors occur during the build process.

Closes-Bug: #1351350

Change-Id: Id4858062d2aaa4c2fe5b597e40e4e8947f544a4d
2014-08-11 12:53:37 +00:00
Paul Murray
05e98dbd51 Add extensible resources to resource tracker (2)
A resource plugin extension point is added to the resource
tracker to allow the types of resources allocated at the compute
node to be extensible. Information maintained by these plug-ins
is written to the compute_nodes table in the database. The
scheduler uses the information in the compute_nodes table to
determine scheduling decisions.

A plugin that implements vcpu resource tracking is included
and all other code for tracking vcpu has been removed. This
example ensures the plugins are tested in gate jobs.

This was previously merged and reverted due to a bug affecting
ironic CI. The bug was pre-existing but was exposed by the
that patch. This change is based on the bug fix here:
Icb19148660bca542a8120ecab064551d67ac28af and the previous
version of this change is here:
I64108338e3c958ba1276aaf113a68861cbe286f5

Co-Authored-By: Andrea Rosa  <andrea.rosa@hp.com>
Co-Authored-By: Paul Murray  <pmurray@hp.com>
This is part of: blueprint extensible-resource-tracking

Change-Id: If1381f99fd7db420380288faf7b2f57553f69136
2014-07-31 13:20:51 +00:00
Joe Gordon
59c1b19521 Turn on pbr's autodoc feature.
In order to make the docs index and moduleindex pages work, turn on
pbr's autodoc_index_modules feature.

Change-Id: I0ef240f4624acf11900705d1c0f4d6d6f70247bd
2014-07-27 19:23:33 -04:00
Derek Higgins
0967953c2a Revert "Add extensible resources to resource tracker"
This bug added a regression to both nova-bm and ironic,
neither can deploy instances.
Fixes-bug: #1347795

This reverts commit 50b4ba4ee583d25eef10a6608172c002f9bec6f2.

Change-Id: Icc8d629467911972480b633c7808a0964c9f1c7d
2014-07-23 17:31:01 +01:00
Paul Murray
e00c056c33 Add extensible resources to resource tracker
A resource plugin extension point is added to the resource
tracker to allow the types of resources allocated at the compute
node to be extensible. Information maintained by these plug-ins
is written to the compute_nodes table in the database. The
scheduler uses the information in the compute_nodes table to
determine scheduling decisions.

A plugin that implements vcpu resource tracking is included
and all other code for tracking vcpu has been removed. This
example ensures the plugins are tested in gate jobs.

Co-Authored-By: Andrea Rosa  <andrea.rosa@hp.com>
Co-Authored-By: Paul Murray  <pmurray@hp.com>
This is part of: blueprint extensible-resource-tracking

Change-Id: I64108338e3c958ba1276aaf113a68861cbe286f5
2014-07-21 16:08:20 +01:00
Jenkins
c8f4fdcfbe Merge "Rename instance_actions v3 to server_actions" 2014-04-24 07:18:42 +00:00
Dirk Mueller
40768863f5 Remove nova-clear-rabbit-queues
It was already non-functional since
https://review.openstack.org/#/c/40355/

Change-Id: I56b19a49c123b73b6b3a5c4fc5f29864c6fd3b98
Closes-Bug: #1307460
2014-04-14 13:44:46 +02:00
Rohan Kanade
8835d1fd34 Rename instance_actions v3 to server_actions
* Renames the os-instance_actions v3 plugin to os-server-actions
* Also modifies api specific tests and expected user input JSON
* DocImpact only for v3 Nova api documentation for this plugin.

Closes-Bug: #1206032

DocImpact

Change-Id: Id5049e10f5ef540d0d8e3871d800e9d9cb33da73
2014-04-01 14:59:31 +02:00
Thierry Carrez
464caf0339 Open Juno development
Bump preversion to 2014.2 to formally open Juno development.
The Icehouse release branch (milestone-proposed) will be cut
from the last commit before this one.

Change-Id: I9b6ed32059a6428dcdd20258c7aaf966c61d5962
2014-03-31 11:36:43 -04:00
Mark McLoughlin
0448c6e754 Remove zmq-receiver from setup.cfg
In commit 1a91aac we removed the zmq-receiver script (in favor of
oslo-messaging-zmq-receiver) but forgot to remove the entry from
setup.cfg.

Closes-Bug: #1279739
Change-Id: Icd08a5b28daee7234abd24ba502c56cc00abcb8c
2014-03-28 13:33:32 +00:00
Jenkins
e707aee772 Merge "Support building wheels (PEP-427)" 2014-03-18 05:44:24 +00:00
Dan Smith
2ddc95bc5e Revert "Adding image multiple location support"
This reverts commit a55bbbfa1957d02b3006a51afcf4984a1f8ff886.

The series of patches involved with adding this feature introduced
an unexpected dependency on glance's v2 API, which we do not
currently support. Triggering a user-facing bug quickly, and leaving
some uncertainty about what else is likely to come in the future,
a revert of this code was decided given the short time to -rc1.

Closes-bug: 1291014
Change-Id: I2ed6a861e583b9513b0984ff9801d4b9f7536798
2014-03-12 08:27:20 -07:00
Dan Smith
8a62fce711 Revert "enable cloning for rbd-backed ephemeral disks"
This reverts commit c25c60f6a9ab1ccf12f72f76d400e7c9c0d090b3.

The series of patches involved with adding this feature introduced
an unexpected dependency on glance's v2 API, which we do not
currently support. Triggering a user-facing bug quickly, and leaving
some uncertainty about what else is likely to come in the future,
a revert of this code was decided given the short time to -rc1.

Change-Id: Iee835652f56beed1b8ac74d782e34a5238102840
Related-bug: 1291014
2014-03-12 08:26:53 -07:00
Jenkins
3c712d0c0d Merge "enable cloning for rbd-backed ephemeral disks" 2014-03-10 00:29:18 +00:00
Josh Durgin
a9cf38f925 enable cloning for rbd-backed ephemeral disks
Currently when using rbd as an image backend, nova downloads the
glance image to local disk and then copies it again into rbd. This
can be very slow for large images, and wastes bandwidth as well as
disk space.

When the glance image is stored in the same ceph cluster, the data is
being pulled out and pushed back in unnecessarily. Instead, create a
copy-on-write clone of the image. This is fast, and does not depend
on the size of the image. Instead of taking minutes, booting takes
seconds, and is not limited by the disk copy.

Add some rbd utility functions from cinder to support cloning and
let the rbd imagebackend rely on librbd instead of the rbd
command line tool for checking image existence.

Add an ImageHandler for rbd that does the cloning if an applicable
image location is available. If no such location is available, or rbd
is not configured for ephemeral disks, this handler does nothing, so
enable it by default.

blueprint rbd-clone-image-handler
Closes-bug: 1226351
Change-Id: I9b77a50206d0eda709df8356faaeeba35d232f22
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-03-07 13:54:37 -08:00
Dan Smith
fd1d7105c4 Add os-server-external-events V3 API
Related to blueprint admin-event-callback-api

Change-Id: I93957840ac251cf6a22474897daf80a164ba35c6
2014-03-06 07:40:43 -08:00
Zhi Yan Liu
1de3ec3d3f Adding image multiple location support
Images now support multiple locations within its metadata and it may be
stored on more than one backend storage. Nova should add a layer to
transparently handle image preparing and removing for an instance by the
best approach/location, and it should allow administrators to configure
the image handler pipeline with the order who preferred to the layer.

Also, based on this structure we could implement particular sub-class in
relevant hypervisor layer with more advanced functions, such as CoW
making, snapshot capturing and etc. in future.

Implement bp: image-multiple-location
DocImpact

Change-Id: Idce8d21ae37bfdbb28a2567120a83d1061061904
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-03-05 01:29:33 +08:00