EXPERIMENTAL support - Helpers for running nova-api and nova-ec2-api
under Apache2 just like keystone.
Inspiration from code in the chef cookbooks:
https://github.com/rcbops-cookbooks/nova/tree/master/files/default
These files are used by the following devstack review:
I9fc0c601db2776d3e9084be84065e728e3f5d414
Partially Implements: blueprint run-nova-services-under-apache2
Change-Id: Idd7d3d1b3cc5770cdecea7afe6db3c89d5b2c0d0
This just turns spawn_n into a blocking passthrough so that we actually
run the spawned thing synchronously instead of not running it (and often
thinking we did).
Change-Id: I47ce83505361084e262843505031e3327d8e68a8
This attempts to add some enlightenment to the case where we try to
associate a floating ip for an instance and hit the case where there
is no info_cache. We need to know if it's actually None, or empty.
Related-Bug: #1249065
Change-Id: Ic0051d1d520f800d845b7006b5b95be5d8edf7c9
Retrieve all services is exposed in to few circumstances to
justify to maintain a method get_all in every drivers of
servicegroup instead we have to continue to use
Service.get_all_by_topics() (which is used by default)
Also this method is never used as a public and only the
zk driver needs it.
Finally it makes pain for some drivers like Memcached to
maintain a routine like that.
This commit removes the method get_all from the public API
and rename the method to be private for the Zookeeper's
driver.
Change-Id: Idc0dfbbe1887e11166acb7d989dd5466751761af
All calls to libvirt should be passed by Host class. The todo is to
avoid future inclusion the time all tests are updated.
Co-Authored-By: Daniel Berrange <berrange@redhat.com>
Change-Id: I651019e9808665824d7e2b1101207287875418a7
Add method to compare cpu in Host and update the driver
to use it instead of calling libvirt directly.
Change-Id: I461f111ff3d1c99c809cb7f9424ca6f5b273ace1
Adds method to list pci devices in Host and update the
driver to use it instead of calling libvirt directly.
Change-Id: I002677253fe978bf960218f31d0b3f3975255223
Add method "lookup_device_by_name" in Host and
update the driver to use it instead of calling libvirt
directly.
Change-Id: I1642f839c5a0c22d8dc978c2a84906e2d3d8a051
Add method "write_instance_config" to define config of
a domain in Host and updates the driver to use it instead
of calling libvirt directly.
Change-Id: I3f0b86bf343c7cb58b6888fee00e609dd5219b58
Moves code from libvirt.driver to libvirt.host to return cpu stats
information and update the driver to use it instead of calling
libvirt directly.
Change-Id: Ifde0d67a152adf93bb8531ca58f53d2ca40b4948
There is no need to have a particular dep with libvirt
driver. This commit cleans the test to avoid loading a
ComputeManager and LibvirtDriver
Change-Id: I79d4d19a040f2786537accdcd8054a6abd508e84
The private method '_get_instance_nw_info' of ComputeManager
make no sense, it just call self.network_api.get_instance_nw_info
again. Remove it, unify all methods of ComputeManager to use
self.network_api.get_instance_nw_info and update the related
test cases.
Remove the asserting admin context logic, because it come from
I5bc35632ca382d011eb42e738140ba54d9cdc93f, it's useless any more.
Change-Id: Ica58122c60c9e2d3e6740d458559ddf4b5a652be
When nova-cells processes a 'run_compute_api_method' message it pulls
the instance from the local db and calls the appropriate compute api
method with a sqlalchemy model. Instead it should populate an instance
object and pass that in.
Change-Id: Ib4fb46310c2a2c1edf378ed3a3fd42421ff4cb47
Closes-bug: #1290975
Two parameters were documented as unused but in subsequent patches the
parameters have now become used. Update the docstring to no longer say
that:
* admin_password
* injected_files
are unused.
Change-Id: I94522c35d2ee464b796502662cf50bd352c9ab15