This patch move 'personality' from core into extensions.
* demote personality the attribute of server from servers
* add corresponding tests
* move some tests about personality from test_servers to test_personality
Partially implements blueprint nova-v3-api
Change-Id: I62254a94476271b1d8bcc206dfda1236f155960b
This patch contains the changes required to adapt the agent
extension and the corresponding unittest to the v3 framework.
Moves the commented out tests from the v3 version of test_servers
to the user data extension unittests.
Partially implements: bp v3-api-extension-versioning
Partially implements blueprint nova-v3-api
Change-Id: I7eef3ba18d7cc36c1ef78d093f50fd9122ac26c7
This extension was promoted to core API so it's code is moved inside
main controller
Related to blueprint nova-v3-api
Change-Id: Ia526f27382cf3bedea8b97de11659243d724497f
Glance can expose direct URL locations to its clients. In current
versions of nova the only URL that can be accessed directly is file://.
This patch adds a notion of download plug-ins. With this new download
protocol modules can be added without disruption to the rest of the
code base. Based on the scheme of the URL returned from Glance a
plug-in will be loaded and used to download the data directly, instead
of first routing it through Glance. If anything fails in the process
the image will be downloaded by way of Glance.
Handlers are loaded with stevedore. To add a new module follow the example
in nova.image.downloads.file.py. The module is required to have two
functions:
get_download_hander():
This must return a child of nova.image.download.TransferBase
get_scheme():
Return the URL scheme that this module handles (ex: 'file')
If additional configuration is needed it can be added by the specific
plug-in (as shown by file_download_module_config included with this
patch submission). Once the module is created it must be added as an
entry point to the python installation. For those included with nova
this can be done by adding the following it setup.cfg:
[entry_points]
nova.download.modules =
file = nova.image.xfers.file
Additionally, as part of the multiple-locations work in Glance meta data
comes back with each location describing it. As an example,
this is needed for direct access to file URLs. Nova cannot assume that
every file URL is accessible on its mounted file systems, nor can it
assume that the mount points are the same. This patch solves that
problem for direct access to files.
blueprint image-multiple-location
Change-Id: I79b863c0075cebaadce5b630f22b81d2959ddbb1
This patch move the action 'change_password' from core into extensions.
* Catch exception InstancePasswordSetFailed explicitly
* Add decorator 'expected_errors'
* Change naming style of action name and attributes
* Add testcase
Partially implements: bp v3-api-extension-versioning
DocImpact
Change-Id: I35fb73a47a58584ad6f8af78ffa087ecebde92a8
Ports the server usage extension and the corresponding
unittests to the v3 API framework
DocImpact
Partially implements blueprint nova-v3-api
Change-Id: Ic5c14ef83e0ec16f36672377f1daa046044dce78
The fping extension, was introduced in
I7d942270aa52bd6216eda0d7ae366ef0195d52a8. But this doesn't seem like a
good for nova-api. We have no other 'instance monitoring' support in
nova and doing it out of the nova-api doesn't seem like the right place.
Change-Id: I3e9bd9b1c04aa06b62f1d3d82b0966e69829a620
This patch contains changes to port migrations extension to v3.
Partially implements blueprint nova-v3-api
Change-Id: Ie79a0d1eeeee7d4fce7a61d8e0cec90982368cf2
This patch contains the changes required to adapt the BaremetalNodes
extension and the corresponding unittest to the v3 framework
Change-Id: Iceef736a3821a4628afc34be29a04766421d3e47
This patch contains the changes required to adapt the AttachInterfaces
extension and the corresponding unittest to the v3 framework
Partially implements: bp v3-api-extension-versioning
Change-Id: I0f3d4da962323a318448634e762f7c31490f9298
Ports the used limits extension and the corresponding unittests to
the v3 framework.
Partially implements blueprint nova-v3-api
Change-Id: I6f1aa507ffd297e56d9cfd23972bc3bb15ba181a
This includes a set of fixes and improvements to os-aggregates:
- eliminate the action method replacing its functionality with wsgi.action
decorator.
- Returns explicity and appropriate status codes for each REST action.
- Improves information error passed to the user.
In the unit test removes one test that in fact was testing the action method
itself instead of _remove_host and which no longer makes sense since action is
removed.
Partially implements blueprint nova-v3-api
Change-Id: Ie737333c6b058f5b57b3e7c75b3d3eda95b80402
This adapts server metadata API to v3 tree using the new extension
framework.
Partially implements bp v3-api-core-as-extensions
Change-Id: I2013ef255e00e256899f8048c97c1d6c73b3268f
This adds and adapts limits API to v3 tree using the new extension framework
Also changed the unit tests were done in v2 to look more like servers and other
API entry points tests.
Partially implements bp v3-api-core-as-extensions
Change-Id: I370e00bda0f8b328c5bd41bb3701ef77fc1d21d1
Ports the user_data extensions and the corresponding unittests
to the v3 framework. Moves the commented out tests from the v3
version of test_servers to the user data extension unittests.
Partially implements blueprint nova-v3-api
Change-Id: Id9b406271d821a99bbe7a3b3eb6ad7fc549ae7a3
Ports the flavor_rxtx extension and the corresponding
unittests to the v3 framework.
Partially implements blueprint nova-v3-api
Change-Id: Id486e157e4f5ce467400c88ca89952d175f6e9a8
Ports the deferredDelete extensions and the corresponding unittests
to the v3 framework.
Partially implements blueprint nova-v3-api
Change-Id: Idc847e1b3c9fb422043d3a919452d842c2c4c30b
This patch contains the changes required to adapt the agent
extension and the corresponding unittest to the v3 framework
Partially implements: bp v3-api-extension-versioning
Change-Id: Ibf0784a455942185799d40395fab5e8eb112e2d8
This patch contains the changes required to adapt the AvailabilityZone
extension and the corresponding unittest to the v3 framework. Moves the
commented out tests from the v3 version of test_servers to the config
drive extension unittests.
Partially implements: bp v3-api-extension-versioning
Change-Id: I2cf214061e3accbb056ca53c224df1c5bf74a6e4
This patch contains the changes required to adapt the service
extension and the corresponding unittest to the v3 framework
This also fix the xml/json inconsistance issue in update:
1:add root element 'service' for json format.
2:merge the extended_service.
3:raise HTTPBadRequest instead of HTTPUnprocessableEntity
Partially implements: bp v3-api-extension-versioning
Partially implements: bp v3-api-inconsistencies
Change-Id: I88cfbe69e0bc0351e81a831345f2a36bf63f5f4f
Ports the hide server addresses extension and the corresponding
unittests to the v3 framework.
Partially implements blueprint nova-v3-api
Change-Id: If0df9839d897b7baf49278915f1a4948c8b6a1e4
Ports the extended_status extension and the corresponding
unittests to the v3 framework.
Partially implements blueprint nova-v3-api
Change-Id: I457701a36ddafbaba89fdbe460650f2f32079987
This change includes:
- changes to os-console-output fit into api-v3
- unit test refactor to decrease code duplication
- change the action name to get_console_output since it is more 'compliant
with all other servers actions, using '_' to separate the words in the
request.
Partially implements blueprint nova-v3-api
Change-Id: I075c868c3a160f06980edcc27ff22da910ff4403
This patch contains the changes required to adapt the
extended-availability-zone extension and the corresponding
unittest to the v3 framework.
Partially implements bp v3-api-extension-versioning
Change-Id: Ifa9b8a0ddb1c5a297d6fcddbaea476192f339784
Ports the server password extension and the corresponding
unittests to the v3 framework.
Partially implements blueprint nova-v3-api
Change-Id: I85c7241fa6c711f492c7a8ec644c0ba1d01fe5ef
this port host api into v3, and fix the xml/json inconsistance issue
in it.
Partially implements: bp v3-api-extension-versioning
Partially implements: bp v3-api-inconsistencies
Change-Id: I8a9ca6765f448f787fd69ff1cb0f8f9e6e315522
This patch contains the changes required to adapt the admin-actions
extension and the corresponding unittest to the v3 framework.
Partially implements bp v3-api-extension-versioning
Change-Id: Ib109f52999de8e986c258d8d9d35d8193e8b0851
The images metadata functionality is moved for the V3 API from
core to an extension and is now accessed via
/os-images/{image_id}/os-image-metadata instead of
/images/{image_id}/metadata.
Consensus appears to be that we continue to need this
functionality for v3 because some deployers disable the public
image endpoint due security concerns and whether this will be
fixed in glance for Havana. Deployers can disable this extension
if they do not want it.
Partially implements blueprint nova-v3-api
Change-Id: I13a6d049a29a452ad269dba7b59b03718ada2eab