Commit Graph

127 Commits

Author SHA1 Message Date
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
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