Commit Graph

111 Commits

Author SHA1 Message Date
Tiago Mello 851ea98e4e Adds API Sample tests for FloatingIPDNS extension.
Partially implements blueprint nova-api-samples
Fixes bug 1070164

Change-Id: I4c3e5d406ce43c27bb49a651facaa831de646a66
2013-02-11 10:53:36 -02:00
Jenkins e6c28a7a8d Merge "Add api-samples to multinic extension" 2013-02-10 15:19:39 +00:00
Kravchenko Pavel 01a25e9890 Extension for rebuild-for-ha
Adds an extension for blueprint rebuild-for-ha

Evacuation of VM from a failed host for HA.
New api supports recreate/rebuild modes. With shared storage,
VM is recreated on the target from disk.
Otherwise, rebuild from original image is performed.

DocImpact

Change-Id: Id7e3e68dbaaf74e9314440d98195a92454078fd9
Co-authored-by: Oshrit Feder <oshritf@il.ibm.com>
2013-02-07 14:38:38 +02:00
Jenkins d052a664c8 Merge "Add API sample tests to os-network" 2013-02-06 17:43:02 +00:00
ivan-zhu f3476c9541 Add API sample tests to os-network
Partially implements blueprint nova-api-samples
Bug 1070170

Change-Id: I24c708e59e4fe5fcc17be0ae9b7fcb294278a175
2013-02-04 15:04:13 +08:00
gtt116 0d813e44ff Add REST API to show availability_zone of instance.
Implement one workitem for bp:show-availability-zone

This show the availability zone and availability zone of its host in
API: GET /servers/details, GET /server/{uuid}.

When create instance if "availability_zone" doesn't specified, the
"availability_zone" of the instance will be None.  But actually the instance
is in a zone which its host is in. So I think show both of them will be fine.

Change-Id: I2d742ee2d291b514bf783fa79293785cca8ea2a5
2013-02-03 08:57:20 +00:00
Jenkins ff8468ec4a Merge "Add api samples to fping extension" 2013-01-31 20:38:47 +00:00
Giampaolo Lauria df81f0d3cf Added sample tests to FlavorExtraSpecs API
Partially implements blueprint nova-api-samples
Fixes bug 1097131

Change-Id: I38a51e656cc9474e331d8f568d9e7fb6ba62ef42
2013-01-30 13:18:46 -05:00
Mauro S. M. Rodrigues 1b30c9a827 Add api samples to fping extension
Partially implements bp nova-api-samples
Fix bug 1091747

Change-Id: Ic0060b8ea2a01a304c337a31dc276cbf395c2e5d
2013-01-29 22:24:22 -05:00
Tiago Mello 143fb274ef Adds API Sample tests for os-instance_usage_audit_log extension.
Fixes Bug 1091752.
Partially implements bp nova-api-samples.

Change-Id: I2db83ac32283795ab0cbf254c6adbd352806b297
2013-01-29 13:39:06 -02:00
Mauro S. M. Rodrigues 73b3686862 Add api-samples to multinic extension
Partially implements bp nova-api-samples
Fixes bug 1070169

Change-Id: I923054bf92840a7fe81f78c97aa77a9201e94bdc
2013-01-25 14:18:43 -05:00
Giampaolo Lauria adbfd0da94 Added sample tests to floating-ip-pools API.
Partially implements blueprint nova-api-samples
Fixes bug 1070165

Change-Id: Ia7d99354ae815cdd8a41b012f568877751a3d8bd
2013-01-23 17:53:31 -05:00
Jenkins e6907236a4 Merge "Add REST api to manage bare-metal nodes" 2013-01-23 19:32:17 +00:00
Arata Notsu 0a8cc37c0c Add REST api to manage bare-metal nodes
* create/delete/list/show bare-metal nodes
* add/remove interfaces to/from bare-metal nodes

blueprint general-bare-metal-provisioning-framework

Change-Id: I1e76f7e3f7f74087e844cfb23dc92154f4c3e127
2013-01-23 17:39:32 +09:00
ladquin 04f8dcf0bd Fix for typo in xml API doc sample in nova
Modified:   doc/api_samples/os-flavor-manage/flavor-create-post-req.json
Deleted final comma for proper syntax
Partially fixes: bug 1088528 (part of the bug requires changes in other repo - done)

Change-Id: I5b0b29b4c720a95d5c4c5d957e77dc2e4c9cf8ee
2013-01-22 13:36:49 -03:00
Daniel P. Berrange 518bdb5aba Expose a get_spice_console RPC API method
To mirror the existing get_vnc_console RPC API method, expose a
new get_spice_console RPC API method. The only console type
supported currently is 'spice-html5' which is equivalent to
'novnc'

Blueprint: libvirt-spice
Change-Id: Iab9d3dfc3564a122a8cd2b53d34fdcc725bfa29b
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2013-01-16 10:19:37 +00:00
Jenkins a88152a476 Merge "Cells: Add cells API extension" 2013-01-15 21:39:16 +00:00
Chris Behrens 6b4ad2d7d2 Cells: Add cells API extension
Enables cells-related functionality such as adding neighbor cells,
listing neighbor cells, and showing the capabilities of the local cell.

Implements blueprint nova-compute-cells

DocImpact

Change-Id: Iacc1e68721a7867aeaf233903cbe6d18f09ad96e
2013-01-15 01:22:35 +00:00
Matt Dietz 382435275e Renames the new os-networks extension
Merging the new os-networks extension upstream broke what was considered
a 'released' extension. This patch returns everything to normal and
renames the os-networks extension to os-tenant-networks

DocImpact

Implements: blueprint tenant-networks

Change-Id: I04b17d08c5760fd73736124b36cab0d383767020
2013-01-15 00:48:32 +00:00
Jenkins 92f390672a Merge "Added sample tests to FlavorSwap API." 2013-01-12 09:54:30 +00:00
Sean Dague 5fca1d9e97 fix new N402 errors
fix the N402 errors that have slipped in in the last 48 hrs since
starting this patch series.

fix an N401 error that our scanner current can't find because it
only looks for doc strings on classes and defs.

this is the xeno's paradox of patch series, but we're getting close.

Change-Id: I4a763bb4c812335d853eae05c72464f18ab93297
2013-01-10 08:57:09 -05:00
Giampaolo Lauria 35328ddd8f Added sample tests to FlavorSwap API.
Partially implements blueprint nova-api-samples
Fixes bug 1096653

Change-Id: I9a6ca8a023bf0f3404b3a9af635dd29a7a584aa3
2013-01-09 20:47:23 -05:00
Matt Dietz 129fd64ef8 Adds a new tenant-centric network extension
Implements: blueprint tenant-networks

Adds a new API extension that supports a more tenant-centric model for
interacting with isolated networks. Additionally, the patch renames the
existing networks extension as os-admin-networks to more fully fit the
self-described implementation. Two new novaclient extensions and a
novaclient change accompany this patch.

DocImpact

Change-Id: Ib90a65c0a92445f86e930fab88ab4495aefff7c7
2013-01-08 17:02:20 +00:00
Sean Dague f20c3a4ea5 Fix N402 for nova/api
Fix N402 errors (single line docstring should end in a period)
for nova/api, part of a larger attempt to stop ignoring our own
hacking.py tests.

Fix tests that look at docs in extensions

Change-Id: I89d89d1fcf37c4e7740c36375da4c751d1b621ed
2013-01-08 23:40:13 -05:00
Jenkins ddb2400047 Merge "Remove availability_zones from service table" 2013-01-09 04:09:31 +00:00
Jenkins dcd4327bd0 Merge "Enable Aggregate based availability zones" 2013-01-09 04:09:00 +00:00
Jenkins beee8b112a Merge "Added sample tests to FlavorRxtx API." 2013-01-09 04:02:25 +00:00
Joe Gordon 1ab2fc6477 Remove availability_zones from service table
This is the final step in enabling availability_zones using aggregate
metadata. Previously all services had an availability_zone, but the
availability_zone is only used for nova-compute.  Services such as
nova-scheduler, nova-network, nova-conductor have always spanned all
availability_zones.

After this change only compute nodes (nova-compute), will have an
availability_zone. In order to preserve current APIs, when running:
* nova host-list (os-hosts)
* euca-describe-availability-zones verbose
* nova-manage service list
Internal services will appear in there own internal availability_zone
(CONF.internal_service_availability_zone)
Internal zone is hidden in euca-describe-availability_zones
(non-verbose)

CONF.node_availability_zone has been renamed to
CONF.default_availability_zone and is only used by the nova-api and
nova-scheduler. CONF.node_availability_zone still works but is
deprecated

DocImpact

Completes blueprint aggregate-based-availability-zones

Change-Id: Ib772df5f9ac2865f20df479f8ddce575a9ce3aff
2013-01-08 14:01:30 -08:00
Joe Gordon 9f4534ab58 Enable Aggregate based availability zones
Instead of implementing availability zones in the service table,
availability zones are implemented using general aggregate metadata.

This patch does not remove availability zones from the service table, a
latter patch will do that.

* In theory supports a single compute node in multiple availability zones
* Drop availability_zone column from Aggregate table (is now a property)
* map aggregate metadata 'availability_zone' so API does not change

Implements blueprint aggregate-based-availability-zones

Change-Id: I2a2ac5bfaa526d639dff5efa392c051347dbd9bb
2013-01-08 14:00:41 -08:00
Jenkins 741e0e8e75 Merge "Add api extension to get and reset password" 2013-01-08 21:15:52 +00:00
Giampaolo Lauria 8596e8b840 Added sample tests to FlavorRxtx API.
Partially implements blueprint nova-api-samples
Fixes bug 1091743

Change-Id: I400e627cfc499b3e7bb1c88d6ce7d24b4d222b84
2013-01-08 13:34:26 -05:00
Vishvananda Ishaya 285994be59 Add api extension to get and reset password
Password is stored in system_instance_metadata as four items with the
keys 'password_0' through 'password_3'. The extension adds a resource
endpoint with two methods:

GET v2/servers/<uuid>/os-server-password  # get_password
DELETE v2/servers/<uuid>/os-server-password # reset_password

get_password retuns:

JSON: {"password": "xxx"}
XML: <?xml version='1.0' encoding='UTF-8'?><password>xxx</password>

Note that this is intended to be an encrypted password set by the
guest. Includes api tests for json and xml. Also includes api samples.

Part of blueprint get-password

Change-Id: I6c03f9c3bc8a2c70403bbb3e57917ab9522d75bd
2013-01-07 15:35:45 -08:00
Giampaolo Lauria d9b69045a7 Added sample tests to QuotaClasses API.
Partially implements blueprint nova-api-samples
Fixes bug 1070171

Change-Id: I504a9120a0980a727bda21ca2ac76a5d06477e66
2013-01-07 19:46:42 +00:00
Jenkins b4d72616c1 Merge "Add html reports to report action in coverage extension." 2013-01-04 12:33:35 +00:00
Jenkins 8d10a6bc55 Merge "Added sample tests to FlavorDisabled API." 2013-01-04 11:58:30 +00:00
Jenkins 5f9641c979 Merge "Add API sample tests to FixedIPs extension" 2013-01-02 14:29:25 +00:00
ivan-zhu abba5574ca Add API sample tests to FixedIPs extension
Partially implements blueprint nova-api-samples
Bug 1091739

Change-Id: Ie10fd85199ec10de29e99338c748f34cc04aeeb6
2012-12-29 16:39:53 +08:00
Jenkins bde5420564 Merge "Add API samples tests for the coverage extension." 2012-12-27 21:47:52 +00:00
Jason Kölker b3bbd09131 Add extension to allow hiding of addresses
* Servers in certain states will have network_info but it may change,
  (eg. rescheduled build on another host). The extension allows the
  operator to hide the address information in those states
* Fixes bug LP 1089092

Change-Id: Ie843e34a41c77903b201b45c5b67a6f75334cb5e
2012-12-20 15:43:15 -06:00
Matthew Treinish ce9867b3fa Add html reports to report action in coverage extension.
This makes a few minor cleanups and 2 additions to the
coverage extension. First, it adds a new optional field to the
report action: 'html'. This will generate an html report instead
of either the text or xml reports that the extension can
generate.

The second change is that it adds a return for the stop action.
Now upon successful completion of the stop action the directory
where the coverage data files will be returned.

Change-Id: If1aa25fc7237e9bb5100d2a4a8e560f0a68eba61
2012-12-20 15:45:45 -05:00
Matthew Treinish 2655ac9f3c Add API samples tests for the coverage extension.
Partially implements blueprint nova-api-samples
Fixes bug 1089531

Change-Id: I5b287ea210f275a0c316a28d6dc3614d107aff05
2012-12-20 15:39:20 -05:00
Giampaolo Lauria 58d5b2b0c1 Added sample tests to FlavorDisabled API.
Partially implements blueprint nova-api-samples
Fixes bug 1070161

Change-Id: I889a5b2e85d31fda1e9a8a82043ba7e9ddf1b7a6
2012-12-17 22:32:50 -05:00
Chris Yeoh 37d42caeab Add more association support to network API
Adds API support to:
- Disassociate only host from network
- Disassociate only project from network
- Associate network with host (project already supported)

New functionality is added to a new extension networks_associate,
but the original networks extension is modified to allow networks_associate
to extend how it needs to. The original behavior of the networks extension is
preserved (no new functionality, nor change in existing behavior) in
terms of the API presented.

Bumps RPC API version for network RPC server version in order add
the associate function which allows to both associate and disassociate
a network with a host and or tenant. Has overlap with disassociate
and add_network_to_project but these are kept for backwards compatibility

DocImpact
Implmenents: blueprint apis-for-nova-manage
Change-Id: I78fd76e0696d1c872646355ab04d32f051551def
2012-12-17 17:26:03 +10:30
Mark McLoughlin 6c9d9ab434 Fix errors in used_limits extension
Fixes bug #1062049

There was a typo mapping the security groups resource to floating IPs.

Volumes usage isn't tracked by Nova any more since delete-nova-volume.

Key pairs don't work with the extension because of bug #1089877.

Change-Id: Ifd694b21fef1dc95e67c07dcef0cd6ea3daa8d53
2012-12-13 16:46:44 +00:00
Tiago Mello 15a395f4b5 Adds API Sample tests for DiskConfig extension.
Partially implements blueprint nova-api-samples
Fixes bug 1070158

Change-Id: Ied2efc3ae17599b61133247273a7a4bec9020927
2012-12-12 13:01:40 -02:00
Jenkins 1f024f55e1 Merge "Add coverage extension to nova API." 2012-12-11 21:31:17 +00:00
Matthew Treinish 2ec79220e1 Add coverage extension to nova API.
This adds a new extension to nova API. It allows for internal use of
Ned Batchelder's coverage_ module. (what is used for the nosecoverage
plugin)

The api allows for coverage to be enabled and a report to be output to
a file with API calls. The intended use of this is for instrumenting
client based tests like Tempest. Coverage on tempest will not give
information regarding how much of nova is covered.

Implements: blueprint coverage-extension
Change-Id: I47497f5be3fd5956250f2dcd1630c86c72725ce8
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
2012-12-11 13:24:17 -05:00
Giampaolo Lauria 2d85cb2c38 Modified sample tests to FlavorExtraData API.
Added subs wherever applicable.
Added checks for correct return codes after REST ops
Modified sample tests to FlavorManage API to differentiate them
from the ones in FlavorExtraData.

Partially implements blueprint nova-api-samples
Fixes bug 1070162

Change-Id: I57c6611f379bef2ff586551b5501c4f7654e4374
2012-12-10 22:43:43 -05:00
Giampaolo Lauria 797e9dc50f Added sample tests to FlavorManage API.
Partially implements blueprint nova-api-samples
Fixes bug 1070163

Change-Id: Ib838adf0c21f3eee6c52cd8e1942c96ae89cca98
2012-12-08 14:11:15 -05:00
Jenkins 2804b01a6b Merge "Add agent build API support for list/create/delete/modify agent build" 2012-12-05 18:51:58 +00:00