Commit Graph

95 Commits

Author SHA1 Message Date
Jenkins 65d1071a09 Merge "Adds lock server extension for V3 API" 2014-01-30 17:04:43 +00:00
Chris Yeoh 237e990926 Adds lock server extension for V3 API
Moves the lock/unlock server functionality out of admin_actions into
its own extension. This part of the larger
blueprint v3-api-admin-actions-split allows more selective enablement of
features contained in the admin actions extension.

Some setup work is done in the tests directory with an
admin_only_action_common.py file. This allows tests which are
split out from test_admin_actions (as their corresponding features
are separated from the admin_actions extension) can continue to
share code.

Note that XML api samples are no longer generated because
bp remove-v3-xml-api has been approved.

Partially implements bp v3-api-admin-actions-split
DocImpact: Adds os-lock-server extension and moves lock/unlock
functionality out of os-admin-actions into this new extension

Change-Id: Ie4b6e856c2f5c33de5575aa8666e0b2784b58d05
2014-01-30 10:13:23 +10:30
Russell Bryant c2336e2405 Remove v3 xml API sample tests
This is a step toward removing XML support from the v3 compute API.
First, we need to remove all of the tests that would fail once we start
ripping out the real code.

Part of blueprint remove-v3-xml-api

Change-Id: Ie2c280d5ea1e6b8756535deb05982a92561552db
2014-01-28 17:01:44 -05:00
Jenkins 76fb176005 Merge "Add alias as prefix for flavor_rxtx v3" 2014-01-28 02:47:04 +00:00
Jenkins 744ee6bb90 Merge "Add preserve_ephemeral option to rebuild" 2014-01-25 12:02:46 +00:00
Jenkins b89f1320cd Merge "Extends V3 os-hypervisor api for pci support" 2014-01-20 14:11:18 +00:00
Roman Podoliaka c557472496 Add preserve_ephemeral option to rebuild
The preserve_ephemeral option for rebuild will preserve the content of
the ephemeral partition, making stateful golden image based
deployments possible even when clouds haven't deployed Cinder, or the
hypervisor doesn't support Cinder (e.g. BareMetal / Ironic).

Partial-Bug: #1174154
blueprint: baremetal-preserve-ephemeral
Co-Authored-By: Robert Collins <rbtcollins@hp.com>

Change-Id: Id33d5d4107f89814842a3f0b7f33690dd7e3aadc
2014-01-16 16:24:05 +02:00
Jenkins 03b267f26c Merge "Removes disk-config extension from v3 api" 2014-01-06 05:26:15 +00:00
Shuangtai Tian cfa202f33c Extends V3 os-hypervisor api for pci support
All pci passthrough code is merged into nova, but the APIs do not support.
this patch extends os-hypervisor to show PCI information for instance and
compute node. This is a part of PCI APIs, for more information see the
blueprint.

Partially implement blueprint pci-api-support

Change-Id: Ia366df257f077c74b1a6639b7078ba4230d3f1a7
2014-01-06 09:52:29 +08:00
He Jie Xu 65d2398388 Add alias as prefix for flavor_rxtx v3
As v3 api rules, the extended attribute should be with extension
alias as prefix. So fix this case for flavor-rxtx v3 extension.

Closes-bug: 1252986
DocImpact

Change-Id: I9f5984a406d039245db4bef2df53cfe10a331cc2
2014-01-02 11:29:40 +08:00
He Jie Xu ec1711134e Removes disk-config extension from v3 api
This patch removes disk-config extension for v3 api, and also
remove related tests. And remove resize extension point for
servers core because there isn't any extension using it anymore
and there isn't good way to test resize extension point.

Implements bp api-v3-remove-disk-config
DocImpact

Change-Id: I894ae6f4e0d6c9f956a71e8e061ccb3fa1b039d8
2013-12-30 13:05:55 +08:00
He Jie Xu 93d3e47531 Remove middleware ratelimits from v3 api
The ratelimit middleware isn't really useful. That is pointed out
by https://review.openstack.org/#/c/34821/. And it didn't get any
object from mail-list:
http://lists.openstack.org/pipermail/openstack-dev/2013-November/020291.html

This patch remove ratelimit middleware and limits extension. The config option
'api_rate_limit' is only valid in v2 api. The pipeline factory for v3 api won't
check that option anymore. For compatibility, if user is still using old
'api-paste.init', pipeline factory will ignore to load ratelimit middleware, and
print warning message to user for notice ratelimit is deprecated in v3 api.

Closes-bug: 1255471
DocImpact

Change-Id: Ifeae0504e11089f95e4d8af58bcb7372dca87f81
2013-12-15 18:52:03 +08:00
Jenkins 457d3b799d Merge "Extends V3 servers api for pci support" 2013-12-11 22:08:53 +00:00
Chris Yeoh ebd23c945d Hide injected_file related quotas for V3 API
The injected_files, injected_file_content_bytes and
injected_file_path_bytes are all related to the
os-personalities extension which has been removed. They
can't be removed from the core quotas code as that has
to still support the V2 API. So for the V3 API we just
hide them.

DocImpact

Partially implements blueprint v3-api-remove-extensions

Change-Id: Iedb6e1427ac22f1926e929f3391e56403c37d088
2013-12-08 23:17:28 +10:30
Jenkins 3825ebcf81 Merge "Remove traces of V3 personality extension from api samples" 2013-12-07 04:22:43 +00:00
Jenkins 578d8d4c14 Merge "Fix sample parameter of agent API" 2013-12-07 02:27:30 +00:00
Jenkins c5f68b6b75 Merge "Fix limits v3 follow API v3 rules" 2013-12-06 07:20:09 +00:00
Shuangtai Tian c087250048 Extends V3 servers api for pci support
All pci passthrough code is merged into nova, but the API does not support.
this patch extends the servers to show PCI information for instance and compute
node. This is a part of PCI APIs, for more information see the  blueprint.

Partially implement blueprint pci-api-support

Change-Id: I99eeeca67983c49433ab0079f490a454d250f5e0
2013-12-04 10:01:40 +00:00
Jenkins ce51e0d77f Merge "Add flavor-access to core for V3 API" 2013-12-03 02:08:29 +00:00
Jenkins 914b1df971 Merge "Add v3 api samples for shelve" 2013-11-26 11:54:18 +00:00
Jenkins b0218ec916 Merge "Add V3 API sample for server's actions" 2013-11-23 01:47:31 +00:00
Jenkins 34dfcb732b Merge "Add v3 api samples for availability_zone" 2013-11-22 10:51:30 +00:00
Jenkins a777d5f80f Merge "Add V3 api samples for access_ips" 2013-11-22 10:48:17 +00:00
He Jie Xu a6d641d4e9 Add v3 api samples for shelve
Adds api sample tests and api samples for shelve

Partially implements blueprint v3-api-unittests
Partially implements blueprint v3-api-specification

Change-Id: Ib485ab042a340c4672ad01fb35d065fd52889b07
2013-11-22 15:35:50 +08:00
Chris Yeoh e9d426cc21 Remove traces of V3 personality extension from api samples
Removes occurences of the personality extension from the V3 API
samples as the extension has been removed. Cleanup of consistency
of image and flavor ref examples for the api samples.

DocImpact

Partially implements blueprint v3-api-remove-extensions

Change-Id: I43a34097904d3d7e280039c3d5d76479a49e92d0
2013-11-20 22:49:27 +10:30
Ken'ichi Ohmichi 38c17db30a Fix sample parameter of agent API
The parameter of agent update API has been changed from "para" to
"agent" since Nova v3 API, and this patch fixes the sample doc.

Partially implements blueprint v3-api-specification

Change-Id: Ic9c0f11a637e48daa9457ab9ae923fefc0fb350d
2013-11-19 15:25:09 +09:00
He Jie Xu a9e29b7e9f Fix limits v3 follow API v3 rules
* Add expected_errors decorator.
* Remove 'absolute_limit' from response, that already return by
extension quota_sets. And update api samples.

Partially implements bp nova-v3-api

Change-Id: Iea3ff494b8abed77fdc4b9e5e552784ed3733c34
2013-11-15 11:16:51 +08:00
Chris Yeoh 332741760e Add flavor-access to core for V3 API
Adds the flavor-access plugin to the core list for the V3 API.
This is part of the process of adding all of the flavor related
extensions to core, with the exception of rxtx, as per the discussion
here: https://etherpad.openstack.org/p/NovaV3APICore

Note that since the alias changes from os-flavor-access to flavor-access
the api samples move directory and quite a few of other api samples
as well as flavor access is included by default.

Partially implements blueprint nova-v3-api

DocImpact

Change-Id: I9abc7df8f4620d462b0d381a2c0ed180c48f220e
2013-11-15 10:48:00 +10:30
He Jie Xu 69c9baa117 Add V3 api samples for access_ips
Adds api sample tests and api samples for access_ips

Change-Id: I9d9249a48e7f7ccdff0146fbe5b25463d66a93a7
2013-11-14 15:06:32 +08:00
He Jie Xu 6222379def Add v3 api samples for scheduler-hints
Adds api sample tests and api samples for scheduler-hints

Partially implements blueprint v3-api-unittests
Partially implements blueprint v3-api-specification

Change-Id: If7bc47dc92c1e7f33f80ea567688d067c42fa219
2013-11-14 14:57:44 +08:00
He Jie Xu 4d293357b7 Add v3 api samples for availability_zone
This patch adds api sample tests and api samples for availability_zone.
Because the detail's response use host name as the key of dict and samples
tests didn't support replacing key with variable, so startup nova's service
with specific hostname instead of uuid.

Partially implements blueprint v3-api-unittests
Partially implements blueprint v3-api-specification

Change-Id: I9090a73a8293f26d63744a10d7ffbfc887e37e7c
2013-11-14 14:34:09 +08:00
He Jie Xu 4f786dc1d3 Add V3 API sample for server's actions
Adds api sample tests and api samples for server's actions

Partially implements blueprint v3-api-unittests

Change-Id: I4b420f09f9fc9a7f6fab8dbaeaa9b93631909255
2013-11-14 14:30:03 +08:00
Ken'ichi Ohmichi c88b2de92b Make v3 admin_password parameters consistent
There are API parameters "admin_password" and "admin_pass" on some APIs:
 * AdminPasswordController: admin_password
 * EvacuateController     : admin_password
 * RescueController       : admin_pass
 * ServersController      : admin_pass

These parameters mean the same thing, it is the admin password of a vm
instance. They should be the same parameter name because of the meaning.

DocImpact

Partially implements bp nova-v3-api

Change-Id: I452672e064d0dc4a1d5700bb96c01de8087f33d8
2013-11-05 15:33:32 +09:00
He Jie Xu f4af85dce5 Add V3 API samples for config-drive
Adds api sample tests and api samples for config-drive

Partially implements blueprint v3-api-unittests
Partially implements blueprint v3-api-specification

Change-Id: Id589ddced8c30089bacbb3eca81d4b9238901a91
2013-10-31 14:33:22 +08:00
Jenkins a26b3546b1 Merge "Adds V3 API samples for user-data" 2013-10-30 17:02:36 +00:00
Jenkins d211dd87e9 Merge "Add V3 API sample for admin-password" 2013-10-30 07:50:52 +00:00
Chris Yeoh 5a2895e904 Adds V3 API samples for user-data
Adds V3 API sample tests and api samples for user-data

Partially implements blueprint v3-api-unittests
Partially implements blueprint v3-api-specification

Change-Id: I3a29490061632d7f728edcb942a061c3b65518bd
2013-10-30 14:14:50 +10:30
He Jie Xu d61d1f62da Enable extension access_ips for v3 API
This patch enable extension access_ips, remove old 'access_ip_*'
attributes and related unittest from servers core. And remove
old attributes from api samples.

Partially implements bp nova-v3-api

DocImpact

Change-Id: Id4c8bb721550e317e0695d7876e2faa3d6e91a60
2013-10-26 17:19:46 +08:00
Jenkins 63084a636a Merge "Adds V3 API samples for console output" 2013-10-23 07:50:39 +00:00
Jenkins edc4c5c5b3 Merge "Fix status code of server's action confirm_resize for v3" 2013-10-22 23:38:04 +00:00
Chris Yeoh 5ff633cce4 Adds V3 API samples for the disk-config extension
Adds api sample tests and and api samples for the
disk-config extension

Partially implements blueprint v3-api-unittests
Partially implements blueprint v3-api-specification

Change-Id: Ic5c1e4d4e8c6edf3fceef456a79c1f5b79a3b5aa
2013-10-21 14:31:48 +10:30
Chris Yeoh 43f5dbd08b Adds V3 API samples for console output
Adds api sample tests and api samples for console output

Partially implements blueprint v3-api-unittests
Partially implements blueprint v3-api-specification

Change-Id: I76664a1b0355011c7b42e8571eaf732faed44933
2013-10-17 10:32:02 +10:30
He Jie Xu 573ebe4b41 Add V3 API sample for admin-password
Adds api sample tests and api samples for admin-password

Partially implements blueprint v3-api-unittests

Change-Id: Iade39ff931471d1d68e358ac5d35a1921e85df66
2013-10-16 15:20:27 +08:00
Chris Yeoh fccf0ca795 Adds V3 API samples for attach-interfaces
Adds api sample tests and api samples for attach interfaces

Partially implements blueprint v3-api-unittests
Partially implements blueprint v3-api-specification

Change-Id: I54088cca1b83a8b92620062840606f2340a528c9
2013-10-15 12:53:35 +10:30
Jenkins fc15452d31 Merge "Adds V3 API specific urlmap tests" 2013-10-10 20:28:11 +00:00
He Jie Xu 01a44568cc Fix status code of server's action confirm_resize for v3
The status code of confirm_resize should be 202, but it
returns 204 now. That because it returns HTTPNoContent
that overwrites the status code of decorator 'wsgi.response(202)'

And adds API samples for confirm_resize that used to test
the status code of confirm_resize.

Partially implements blueprint v3-api-unittests
Closes-bug: #1233561

Change-Id: I50a3046866af0a1efdb5c41ded40f973b02843e8
2013-10-08 16:35:57 +08:00
Sumanth Nagadavalli 6ba248635b Create flavor-access for the tenant when creating
a private flavor

In FlavorManage extension, a change has been made to
create flavor-access for a corresponding tenant on
creating a private flavor

This also requires the api-samples for flavor-access
to be changed, since there will be a flavor-access created
by default on creating a private flavor

This commit has a DocImpact

Change-Id: I7795fbd04ae9fc8b1ea6fb27203dfa5217d310ce
Fixes: bug 1209101
2013-10-08 12:23:24 +05:30
Jenkins a49083d79f Merge "Fix V3 API flavor returning empty string for attributes" 2013-10-07 18:48:29 +00:00
Jenkins f9db42dd31 Merge "Adds v3 API samples for hide server addresses and keypairs" 2013-10-07 18:47:57 +00:00
Jenkins 46f403a353 Merge "Adds V3 API samples for srvcs, tenant usage, server_diagnostics" 2013-10-07 18:47:33 +00:00