Add html for sphinx invocation so that files end in this directory
as usual. This is the usual place for sphinx documentation.
Change-Id: Iae7a3b91d407c06b7f4d2dce909a15c38ea72b9b
The ExtendedVolumes post-processing extension used to do N
block_device_mapping queries (one query per instance in a 'nova list').
Instead, do one block_device_mapping query with an IN clause of
instance UUIDs.
Change-Id: I32a1bd0e05a7a938e531d00bedfab23a0bb68538
Partial-Bug: #1416132
Closes-Bug: #1359808
Since reno is the new tool for Relnotes [1], we need to add it
to Nova and provide some Sphinx docs for Liberty and Mitaka.
Change-Id: Ibd74e62b6f36076dbec17dd146632fd42aad6eb2
Uses openstackdocstheme to match other content
Has a dependent change in project-config also so that
file will build to developer.openstack.org/compute
at https://review.openstack.org/#/c/231000/
Change-Id: Ic060a1e79e4b2f8695cb788ff4df018e0cfd3286
This adds the CORS support middleware to Nova, allowing a deployer
to optionally configure rules under which a javascript client may
break the single-origin policy and access the API directly.
The paste.ini method of deploying the middleware was
chosen, because it needs to be able to annotate responses created
by keystonemiddleware. If the middleware were explicitly included,
keystone would reject the request before the cross-domain headers
could be annotated, resulting in an error response that was
unreadable by the user agent.
The test suite was expanded, to permit the inclusion of
HTTP headers, and to add the ability to send an OPTIONS request.
OpenStack CrossProject Spec:
http://specs.openstack.org/openstack/openstack-specs/specs/cors-support.html
Oslo_Middleware Docs:
http://docs.openstack.org/developer/oslo.middleware/cors.html
OpenStack Cloud Admin Guide:
http://docs.openstack.org/admin-guide-cloud/cross_project_cors.html
bp:nova-cors
Change-Id: Ibc95df0860799ff36f682da7d032d5422b0c39c1
The 'force_config_drive' option provides a way to force injection of
configuration drives on instances. Previously, this option supported
three values: 'always', 'True' and 'False'. However, the 'always'
value was deprecated in Liberty and can now be removed.
Remove this value and replace the existing 'StrOpt' with a 'BoolOpt'.
This also requires changing some unit tests to reflect the new value
for this parameter.
UpgradeImpact: This change removes support for the 'always' option.
Configuration files providing this value will need to be updated
accordingly.
DocImpact: This option is now a BoolOpt and documentation will need to
be updated accordingly.
Change-Id: I0b4030ec1336fb1f2e721570c99a27a979e2847c
This adds coverage for the exceptions.NotFound case when we're getting
floating IPs from neutronclient. It makes the NeutronClientException case
the "legacy" one that we can remove when we fix that bug.
Change-Id: I9c8b20e076527f98085265755a2d2503c703f235
Partial-Bug: 1513879
Almost all of our unit tests for the _poll_shelved_intances() periodic
task were not actually running any code because they didn't set the config
properly. Some were also not setting the instance host either, which means
the test instances wouldn't be returned from the filter query. Since the
tests used stubs and mox, they weren't checking that the stubbed methods
were actually running and thus didn't notice.
This patch makes them use mock, check their work, and set the config
properly. It also does a little object and mock cleanup for the bits that
were touched.
Change-Id: If890eb61e42af3e1495da7db9033b19fa7811aa1
The _poll_shelved_instances() task can race with other API operations
because it does not filter instances with a task_state!=None, and because
it does not use expected_task_state=(None,) when it attempts to lock the
instance for offloading. This patch adds those checks as well as tests to
make sure they're honored going forward.
Change-Id: I7b1e235a4d09085cebf3d6d71d71757f15f69e29
I9229d882712df1ad57afbda7477fa4d72f4fd83c introduced _safe_get_floating_ips
which returns an empty list of floating ips in cases where neutron returns
a 404. It also switched a check for NeutronClientException with NotFound.
The NotFound Exception isn't used by neutron client so allow for both cases.
Closes-bug: #1513879
Change-Id: I1d37a0dadd4c9055ba545906535bb3e40e70a0f0
Fix an issue where when local conductor is used, the DB driver for
servicegroup will not handle transient DB problems gracefully. The
patch makes the behavior consistent with messaging timeouts if remote
conductor is used.
Change-Id: Ie736e7b64ea4f60f78878c8713ce826702f9f05e
Closes-Bug: 1505471