Commit Graph

9 Commits

Author SHA1 Message Date
ghanshyam 5c836cc901 Merge extended_status extension response into server view builder
As nova extensions has been deprecated already and goal is to
merge all scattered code into main controller side.
Currently schema and request/response extended code are there
among all extensions.

This commit merge the extended_status extension resposne into server
view builder.

Partially implements: blueprint api-extensions-merge-stein

Change-Id: I35b933a9fa4ab263f5302463a0f3a5b96a99f855
2018-09-17 18:22:20 -04:00
ghanshyam f72fa9a739 Remove the deprecated API extensions policies
API extensions policies have been deprecated in 17.0.0
release[1]. This commit removes them.

[1] Ie05f4e84519f8a00ffb66ea5ee920d5c7722a66b
Change-Id: Ib3faf85c78bc2cdee13175560dc1458ddb6cb7a8
2018-08-17 07:11:45 +00:00
He Jie Xu 68bbddd8ae Totally freeze the extension_info API
The extension will be removed from the Nova API totally. The extension_info
API is just for backward compatibility. And there is no way to disable/enable
the extension, also the discovery policy rules are removed, so it is time
to just hard-code most of the logic at here.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I56d859beb675199b209587bfe0a23cd9b75233ad
2017-05-08 16:32:48 +08:00
Jenkins a39ed347e0 Merge "Remove unnecessary __init__" 2016-06-27 17:04:31 +00:00
Claudiu Belu 93cc5e3ffd policy: Replaces 'authorize' in nova-api (part 2)
Adds 'fatal' argument (with default value True) to context.
If the argument is False, if a nova.exception.Forbidden
is raised, False is returned instead. This is the equivalent of
soft_authorize.

Adds docstring to nova.context.RequestContext.can.

Adds unit tests for nova.context.RequestContext.can.

Partially-Implements: bp policy-in-code

Change-Id: Ib6388822da3d3eb9b8fbd9b5c341cd8efeb790fe
2016-06-27 13:18:03 +00:00
zhufl 79402586ca Remove unnecessary __init__
This is to remove unnecessary __init__ to keep code clean.

Change-Id: Ib9f2d39122ea4bb24c864ba13afaf07f4b3a7a33
2016-06-27 15:23:00 +08:00
Matt Riedemann b562790fc4 Add note about using OS-EXT-* prefix for attribute naming
The 2.3 microversion used the OS-EXT-SRV-ATTR prefix for
compat with v2.0 for the ec2 API split out of nova.

The 2.16 microversion added the 'host_status' extended
server attribute and doesn't use the prefix.

This adds a note that nothing after the 2.3 microversion
should be using the OS-EXT-SRV-ATTR prefix since it's an
artifact of v2.0 and extensions which are deprecated in
v2.1.

Similar notes are added for other extensions that add
extended attribute names to other resources like AZs,
volumes and images.

Change-Id: I60a53e13121b7280a41c3889ba86edcd2ae7bf83
2016-02-23 16:15:21 -05:00
EdLeafe 55e04230ad Rename classes containing 'v3' to 'v21'
This part of the ongoing v3 cleanup effort.

Partial-Bug: #1462901
Change-Id: I5d9b43503629cc3f5a566f7bfa23cc5d0d14d985
2015-08-18 15:25:46 +08:00
EdLeafe 003c868da7 Move v2.1 code to the main compute directory - remove v3 step3
Move all the plugins/v3 code to the main compute directory.

Partial-Bug: #1462901
Change-Id: I7df413b76ff0a6610ccd3cb90137ec99b372d5ab
2015-08-13 09:58:47 +08:00