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>
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
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
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
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
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
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:
2fdd73816caad7743f42
Change-Id: Ie59821d133a33ef9069d2c97e8b4fa60025d1825
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