Commit Graph

12 Commits

Author SHA1 Message Date
Stephen Finucane db1789e82b Ensure controllers all call super
Currently some do and some don't. Do it by default as intended. We also
remove the 'view_builder' argument from the base 'Controller.__init__'
function since nothing was actually setting this.

Change-Id: Ic0b16608078e4545f546509df94caba3166ed6e2
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-06-15 16:40:00 +01:00
Eric Fried b4c03e325b Remove nova.compute.*API() shims
When we had cellsv1, we had two different sets of
[Host|InstanceAction|ComputeCells]API. Now that cellsv1 is gone, we only
need nova.compute.api.API, .HostAPI, and .InstanceActionAPI. This patch
removes the dynamic loader shims from nova/compute/__init__.py and swaps
out all references to directly access the classes in nova.compute.api.

Note that there are a couple of ways we could have done this. One way
would have been to replace

  from nova import compute

with

  from nova.compute import api

and then change

  self.compute_api = compute.API()

to

  self.compute_api = api.API()

However, the current approach was preferred because
- smaller delta
- the code reads better as compute.API(), which is more important than
  the import being pretty

cleanup for blueprint remove-cells-v1

Change-Id: I84d9692efa3a131d6392dbd1011dfc43e4ac0b53
2019-06-12 16:09:46 +01:00
Matthew Edmonds dc32774ecc remove unnecessary conf imports
There are a bunch of files that define CONF but don't ever reference
it. This cleans that up, removing unnecessary imports.

In order to get flake8 to pass I also had to remove some (unrelated)
unused imports from touched files.

Change-Id: Ib96ebeeb5e4bfedb20afb02c56da1521df9fac4f
2018-03-09 14:30:10 -05:00
He Jie Xu 183c3d5f07 Remove extensions module
The most of objects are removed from the extensions module. The last
thing is the expected_errors decorator, but that decorator is nothing
about the extensions. So move the decorator to the wsgi module where
is the place put the other decorator also. Then we can remove the
extensions module entirely.

Partial implement bp api-extensions-merge-queens

Change-Id: I4802c5b38001a756448d4feb9ca336908821f591
2017-12-20 11:35:38 +08:00
Stephen Finucane 6ef30d5078 conf: remove *_topic config opts
All RPC topic opts were deprecated in Ocata.
This patch removes all *_topic opts from the code.

Change-Id: I41a6be48380999c49d6db3ee5221174a41014002
Implements: blueprint centralize-config-options-pike
2017-07-17 21:27:02 -07:00
jichenjc 0f47bc2d01 Use plain routes list for os-instance-usage-audit-log endpoint instead of stevedore
This patch adds os-instance-usage-audit-log related routes by a plain list,
instead of using stevedore. After all the Nova API endpoints moves to the
plain routes list, the usage of stevedore for API loading will be removed
from Nova.

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

Change-Id: I0877f221954374bd3d8ff2f3d91163d450433dbc
2017-04-29 14:32:54 +08:00
Matt Riedemann 223475feef Remove dead begin/end code from InstanceUsageAuditLogController
The begin and end kwargs in the _get_audit_task_logs method are
never used, so this change removes them. This was most likely
and oversight when refactoring this code originally from the following
changes:

2fdd73816c

aad7743f42

Change-Id: Ie59821d133a33ef9069d2c97e8b4fa60025d1825
2016-12-14 11:48:35 -05:00
Claudiu Belu a46e3c89ea policy: Replaces 'authorize' in nova-api (part 3)
Partially-Implements: bp policy-in-code

Change-Id: I316679f3fc3a2022fd6fe57c6bd3fa0e80d8136b
2016-06-28 23:11:10 +00:00
EdLeafe a6425fa304 Move config options from nova/compute/rpcapi.py file
This patch moves the config options from nova/compute/rpcapi.py
directory into the nova/conf/compute.py file. The help text will be
improved in a subsequent patch.

Blueprint centralize-config-options-newton

Change-Id: Iac10f214919738730593e2a303f4236a7a7813c4
2016-04-21 22:26:13 +00:00
Anh Tran a2d0d65a29 Removes some redundant words
This patch removes some redundant words.

Change-Id: I1461ad1d98272b0d6223fd989861885902c12617
2016-03-25 09:10:36 +07: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