Commit Graph

136 Commits

Author SHA1 Message Date
Jenkins 11f6587250 Merge "Make os-services API extensions consistent." 2013-03-15 20:14:14 +00:00
Jenkins 63c1d5e6fa Merge "Add missing API doc for networks-post-req." 2013-03-15 15:23:37 +00:00
Dan Prince d96b07ed11 Add missing API doc for networks-post-req.
Part of the os-tenant-networks API extension.

Fixes LP Bug #1155303.

Change-Id: Ic71a3d108f9401ec81d2c59a6f7ba3ec6ab59dd8
2013-03-14 15:50:37 -04:00
Dan Prince 37c618da7c Make os-services API extensions consistent.
Updates the os-services API extension so that it is consistent
internally (index and update return similar formats), and so
that it works with the recent novaclient code which sends
the following request body format:

  {"binary": "nova-cert", "host": "nova1"}

Also, updates the response body format of the update call so that it
wraps things in an extra service dict which should make novaclient
happier here as well (and is consistent with other extensions too).

Fixes LP Bug #1147746.

Change-Id: I932160d64fdd3aaeb2ed90a092ecc7a36dcc9665
2013-03-14 15:34:49 -04:00
Michael Still 99429214d4 Add quotas for fixed ips.
DocImpact: there is now a default quota of 10 fixed ips per tenant.
This will need to be adjusted by deployers if that number does not
meet their needs.

Resolves bug 1125468.

Change-Id: Iffa19583340f80cb2a13ba5fce31f7ff724a52d6
2013-03-15 03:42:48 +11:00
Mauro S. M. Rodrigues dc29ab91e4 Add MultipleCreate template and fix conflict with other templates
This patch creates a dedicated xml template to the os-multiple-create extension
when using return_reservation_id=True in the request. The previous code, with
all extensions loaded, conflicted with security_groups extension.

There is also a change in the response due to the new Template, but the only
information removed is an empty metadata field (which made the previous xml
output even more inconsisten with json). The consistency between json and xml
will be treated in the next api version.

DocImpact

Fixes bug 1149526

Change-Id: I3ca0129086ff1df3a8faa2b3b8bd959c9b74103c
2013-03-07 13:48:24 -05:00
Adalberto Medeiros a94176e15b Add os-volumes extension to api samples
Add samples and templates to api samples for volumes extensions

Fixes: bug 1071338
Implements: blueprint nova-api-samples
Change-Id: Ia021cc4d6c29ccaa3e81f4c5fdbb7e88d9f02dc6
2013-03-01 11:31:25 -03:00
Tiago Mello 4a1d27c4ad Adds API Sample tests for Volume Attachments
Partially implements bp nova-api-samples
Fixes Bug 1126204

Change-Id: I4b061f1916d688ad97c6a6ba4011dd13431a4fcb
2013-02-28 11:32:25 -03:00
Giampaolo Lauria d10a2e13e1 Add API Sample tests for Snapshots extension.
Partially implements blueprint nova-api-samples
Modifies fakes to produce a real timestamp
Fixes bug 1126211

Change-Id: I8973d50fa67abbf6f96684ff8a0b898912f09caf
2013-02-25 11:33:47 -05:00
Jenkins a41d9c6c10 Merge "Add an extension to show image size." 2013-02-21 04:44:15 +00:00
Giampaolo Lauria 605bf01cf3 Add API Sample tests for Hypervisors extension.
Partially implements blueprint nova-api-samples
Fixes bug 1091750

Change-Id: Ie8e6881ea3533cd43259548594d3debe377345a5
2013-02-20 14:55:37 +00:00
Jenkins 6d0ed8f86f Merge "Add support for network adapter hotplug." 2013-02-20 06:16:33 +00:00
Andrew Laski d2b553030e Add an extension to show image size.
Adds image size data that is returned from Glance into the API response.
This becomes really useful for users when they take a snapshot and want
to track the storage used by it.  Since this information is already
being pulled by Nova we should display it.

DocImpact
Change-Id: I8a2d4001c21bcc54cac1a2992034dfc9fbe39d7e
2013-02-19 18:53:10 -05:00
Dan Smith a9add7d35e Add support for network adapter hotplug.
This patch makes it possible to add/del instance
    interface other than booting time.
    Implement bp:network-adapter-hotplug

Originally from change Ibee003a9ec6cc9b3fd275417caccd0c67f6c871f

Co-authored-by: Yaguang Tang <heut2008@gmail.com>
Co-authored-by: Édouard Thuleau <edouard.thuleau@orange.com>

Change-Id: I4f8f677af58afcb928379e5cf859388d1da45d51
2013-02-19 14:12:54 -05:00
Morgan Fainberg 59aaf1dff9 Default SG rules for the Security Group "Default"
Added in the API os-security-group-default-rules

This allows create, delete, list, and get (of individual rules) for
rules that will be pre-populated into the Security Group "default"
that is populated in all projects on creation.

These rules will not be applied retroactively, as it is designed
to allow the creation of a "reasonable" base-line set of sg rules.

The new rules live in a separate table that mirrors the relevant
structures of the security_group_rules table.

Added unit tests/API samples for the new API calls

Related to bp default-rules-for-default-security-group

DocImpact

Change-Id: I7ab51e68aff562bb869538197a0eca158fc3220c
2013-02-19 01:50:51 +00:00
Jenkins 29aea13f08 Merge "Adds API Sample tests for FlavorAccess extension." 2013-02-16 07:38:30 +00:00
Giampaolo Lauria de56abd4b1 Adds API Sample tests for FlavorAccess extension.
Partially implements blueprint nova-api-samples
Fixes bug 1091741

Change-Id: I65bb9e508996417bdcdc9ec87997df5373c06bad
2013-02-14 16:25:42 -05:00
Adalberto Medeiros d74ad18520 add config drive to api_samples
Add config drive extension show and details to api_samples

blueprint nova-api-samples
bug 1091737

Change-Id: I6ae1f01a417f153723b85d08c2f181909c154946
2013-02-14 13:58:26 -02:00
Andrew Laski 9ed8d398c2 API extension for accessing instance_actions
Adds a new API extension for accessing the recorded actions and events
on an instance.  Usage is documented with api samples.

Additionally it modified the db api to retrieve actions by request_id
since the api does not return the db id.  This extension is the first
consumer of that method so there's no issue of changing behaviour
elsewhere.

Blueprint instance-actions
DocImpact

Change-Id: I74109586cc762a7f51d2b114896cf071ee0671cb
2013-02-13 14:53:43 -05:00
ivan-zhu 4348529188 Add API sample tests to Services extension
Partially implements blueprint nova-api-samples
Bug 1091755

Change-Id: I7a0e124871c248bbb7613bfcdf335fee29a887f2
2013-02-13 17:49:16 +08:00
Vishvananda Ishaya 80bd1de65a Simplify and optimize az server output extension.
Displaying two different az results to users is confusing, so just
return the az that the instance is actually in. Also, cache the
result from looking up the az by host for an hour to avoid making
lots of expensive db requests.

DocImpact

Change-Id: Ib39bf94c608874695aab00e61035e64f9594a985
2013-02-12 09:00:33 -08:00
Vishvananda Ishaya 64fcd4de11 Add an extension to show the type of an ip.
There is currently no way to differentiate a fixed ip from a floating
ip in the servers list. This extension adds the OS-EXT-IPS:type param
so that users can determine if it is a fixed address or a floating
address.

Fixes bug 1117784

DocImpact

Change-Id: I8709a4f2f6792faa3d8e0cdcd330d751ef6633ae
2013-02-12 09:00:13 -08:00
Jenkins d905aea697 Merge "Adds API Sample tests for FloatingIPDNS extension." 2013-02-12 13:31:42 +00:00
Jenkins f807355f9d Merge "Clean up extended server output samples" 2013-02-12 06:51:57 +00:00
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
Vishvananda Ishaya 1ea366be70 Clean up extended server output samples
The extended status extension was testing list instead of get and the
extended server attribute extension was misnaming its sample files.

This makes the names of the samples consistent.

Change-Id: I5b6f8d00c85d7817775c190b2a7645a47f8085db
DocImpact: The api sample site may need to be updated as well
2013-02-07 11:35:49 -08: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