Commit Graph

37221 Commits

Author SHA1 Message Date
Jenkins 5e37254a91 Merge "Add reno for release notes management" 2015-11-13 16:24:51 +00:00
Andreas Jaeger 47ad006952 Fix paths for api-guide build
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
2015-11-13 15:02:29 +01:00
Jenkins 95019f9786 Merge "Replace N block_device_mapping queries with 1" 2015-11-13 13:30:29 +00:00
Jenkins 98af6b148e Merge "Deprecate Extensible Resource Tracker" 2015-11-13 03:00:05 +00:00
Jenkins 7c5acd4f7b Merge "Remove vcpu resource from extensible resource tracker" 2015-11-13 02:59:31 +00:00
Jenkins b587881d4a Merge "Split up test_is_volume_backed_instance() into five functions" 2015-11-13 00:05:04 +00:00
Jenkins bc2eacf732 Merge "VMware: use oslo_config new type PortOpt" 2015-11-12 23:23:33 +00:00
Jenkins a23223e1e8 Merge "Compute: remove unused parameter" 2015-11-12 23:00:03 +00:00
Jenkins bfa6d44c1b Merge "Add test coverage for both types of not-found-ness in neutronclient for floating" 2015-11-12 18:50:28 +00:00
Jenkins 8927870218 Merge "Rearranges to create new Compute API Guide" 2015-11-12 18:28:38 +00:00
Diana Clarke 110bb30d0f Replace N block_device_mapping queries with 1
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
2015-11-12 12:02:05 -05:00
Sylvain Bauza 3a65e4848f Add reno for release notes management
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
2015-11-12 17:34:24 +01:00
Jenkins 2a84b49879 Merge "Revert "Store correct VirtCPUTopology"" 2015-11-12 15:39:02 +00:00
Jenkins 8f4187cdc2 Merge "Add tags to .gitignore" 2015-11-12 15:10:10 +00:00
Jenkins a1de711ff2 Merge "Print number of rows archived per table in db archive_deleted_rows" 2015-11-12 15:09:29 +00:00
Jenkins d74b08a129 Merge "enginefacade: 'instance_mapping'" 2015-11-12 15:07:41 +00:00
Jenkins f8d837e2d0 Merge "enginefacade: 'cell_mapping'" 2015-11-12 15:06:59 +00:00
Jenkins 568b2f0039 Merge "enginefacade: 'instance_info' and 'instance_extra'" 2015-11-12 15:06:26 +00:00
Jenkins 389999c151 Merge "Fix a typo" 2015-11-12 15:03:51 +00:00
Jenkins 11bf1bc6a1 Merge "Remove get_all method from servicegroup API" 2015-11-12 15:03:06 +00:00
Jenkins aa141f0d8e Merge "Fix the help text of monkey_patch config param" 2015-11-12 15:02:17 +00:00
Jenkins e1f0575041 Merge "Remove useless get_instance_faults()" 2015-11-12 15:01:37 +00:00
Jenkins af17939764 Merge "Added CORS support to Nova" 2015-11-12 15:00:27 +00:00
Jenkins 3be51f19ae Merge "Handle a NeutronClientException 404 Error for floating ips" 2015-11-12 12:57:23 +00:00
Jenkins 104f031055 Merge "Add missing policy rules" 2015-11-12 12:46:02 +00:00
Jenkins 4c91fcae72 Merge "Remove duplicate keys in policy.json" 2015-11-12 12:36:03 +00:00
Anne Gentle 17961c41a3 Rearranges to create new Compute API Guide
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
2015-11-12 10:47:23 +00:00
Jenkins ea23e252f8 Merge "Add logging to snapshot_volume_backed method" 2015-11-12 02:53:41 +00:00
Jenkins c52f18bcf1 Merge "Properly log BlockDeviceMappingList in _create_block_device_mapping" 2015-11-11 23:53:21 +00:00
Jenkins f0882bf2ec Merge "force_config_drive: StrOpt -> BoolOpt" 2015-11-11 22:42:58 +00:00
Michael Krotscheck e37e738aae Added CORS support to Nova
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
2015-11-11 14:28:50 -08:00
Jenkins cb92a37d5a Merge "Updated from global requirements" 2015-11-11 21:50:55 +00:00
Jenkins a6659219f6 Merge "clean up regex in tempest-dsvm-cells-rc" 2015-11-11 21:33:56 +00:00
Jenkins 5beca6f332 Merge "Do not mask original spawn failure if shutdown_instance fails" 2015-11-11 21:08:58 +00:00
Jenkins 9ebb638d86 Merge "Fix impotent _poll_shelved_instances tests" 2015-11-11 20:55:36 +00:00
Jenkins adcb1c5058 Merge "Fix race in _poll_shelved_instances task" 2015-11-11 20:45:54 +00:00
Stephen Finucane 296479e1ab force_config_drive: StrOpt -> BoolOpt
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
2015-11-11 19:59:22 +00:00
Jenkins 225715de00 Merge "skip lock_unlock_server test for cells" 2015-11-11 19:38:35 +00:00
OpenStack Proposal Bot 3ac21cbe4b Updated from global requirements
Change-Id: Ie1da4c73c492c4cbb4db7d53bce4743691153f74
2015-11-11 19:07:16 +00:00
Jenkins 72dec37494 Merge "Handle DB failures in servicegroup DB driver" 2015-11-11 18:54:15 +00:00
Jenkins e77f8b5d6a Merge "Block oslo.messaging 2.8.0" 2015-11-11 18:53:32 +00:00
Jenkins f1782b41af Merge "Untie subobject versions" 2015-11-11 18:25:23 +00:00
Dan Smith 69c39b7315 Add test coverage for both types of not-found-ness in neutronclient for floating
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
2015-11-11 09:13:47 -08:00
Dan Smith 6b5685796c Fix impotent _poll_shelved_instances tests
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
2015-11-11 08:34:12 -08:00
Dan Smith 5aedaa5050 Fix race in _poll_shelved_instances task
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
2015-11-11 08:33:57 -08:00
Derek Higgins cbbbaa93ae Handle a NeutronClientException 404 Error for floating ips
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
2015-11-11 16:23:07 +00:00
Jenkins 73f6f11446 Merge "Hook for live-migration job" 2015-11-11 16:00:10 +00:00
Jenkins 89c179ed5c Merge "Config drive: make use of an instance object" 2015-11-11 15:59:37 +00:00
Brian Elliott 5252bba03e Handle DB failures in servicegroup DB driver
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
2015-11-11 14:59:09 +00:00
Jenkins 4b0d117f0a Merge "enginefacade: 'key_pair' and 'cell'" 2015-11-11 14:03:39 +00:00