3a65e4848f49c82716713ffc52e30de60957f59b
Commit Graph

37203 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
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
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
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
Timofey Durakov
0624778b24 Hook for live-migration job
Live-migration multinode job should check different configurations.
To implement this new hook in nova should be used. Current patch adds
execution of live-migration specific use-cases.
Change-Id: I3ad9287b8f103a874f88100df82fa9e1f8617d6f
2015年11月11日 15:41:28 +03:00
Jenkins
f5e3c7d54a Merge "Remove unnecessary destroy call from Ironic virt driver" 2015年11月11日 06:31:54 +00:00
Ryan Rossiter
ea483ac1c4 Untie subobject versions
Since obj_relationships was removed in
Iea8b6348e3b01aaa335ec5408f07826f1e758d20 because manifest backports are
now used, most parent object versions will no longer change when a child
object is changed. Because of this, some objects that have a child
version tied to a parent version no longer need to be tied. The versions
can progress individually on their own. The child is all grown up now,
he's moving out of his parents' basement, buying a car, and going on to
make his parents proud.
Change-Id: Ie0c7bd419e3490d01f73c7a39cd2666eafcf9539
2015年11月10日 15:56:14 +00:00
Matt Riedemann
acb97e6388 Block oslo.messaging 2.8.0
There is a locking regression in the 2.8.0 release that is
causing nova unit/functional tests to time out.
Depends-On: #I37eeb57e99db5f77a11eed471ac6c55c4547e821
Change-Id: I3ec6a6429bb1032e47fb0317ce9ca4b769666370
Closes-Bug: #1514876 
2015年11月10日 07:33:33 -08:00
Sean Dague
387e2b4fbb clean up regex in tempest-dsvm-cells-rc
The current regex contains a lot of slightly off regex
definitions. Most of them don't hurt, and do still match the correct
way, but they make people believe that things like the * at the end of
matches is important (which it is not).
This cleans this up, plus adds a few comments to help people going
forward.
Change-Id: Ica7fc32fd5a756214db987b95d2305bc74cfb6f1
2015年11月09日 18:57:35 -05:00
Sean Dague
02de17c72a skip lock_unlock_server test for cells
The cells architecture of doing db replay makes this call
fundamentally racey for cells. The contract is that if you request an
action on a server and it is locked, you get a 409 at the API, and are
done. If you get a 2xx, the resource is not locked, and life is good.
Except in cells, the API db will be updated, and the API will return
all is well. Except the db replay hasn't happened for the cell, so the
additional check in the nova compute for locked blows up.
The fix probably involves the nova-compute check doing a timed retry
under cells because of replication lags.
Change-Id: Ic18407b8372c286d8e258860f3e2bf76eceef2aa
Related-Bug: #1466696 
2015年11月09日 16:54:19 -05:00
Davanum Srinivas
7d3259ddd8 Remove duplicate keys in policy.json
In I8d58be7f3cb1bdefc3b783a256c21ed216cdbad7, we added
"compute:delete", "compute:soft_delete" and "compute:force_delete",
So let's remove the older lines that have the an empty "" target.
Change-Id: I239ca596cca4631e311d7afe45de7ffcc60f70b9
2015年11月09日 08:23:37 -05:00
Davanum Srinivas
555c9df65f Add missing policy rules
Added a LOG.info nova.policy:enforce method to print
what exactly we are testing in our gate jobs (see
I62d8572e36b8ebb5ece218d858679e93ca0f8c7e) and found
these two rules were missing.
Change-Id: I94780b5173a72c93cf3f7e0dabd429f40fcda46f
2015年11月09日 08:04:55 -05:00
Jenkins
4474dce9e6 Merge "devref: update the nova architecture doc" 2015年11月09日 06:04:10 +00:00
Jenkins
b12e72ff23 Merge "Fix missing obj_make_compatible() for ImageMetaProps object" 2015年11月09日 06:03:47 +00:00
Jenkins
07bdf9852e Merge "Deprecated: failIf" 2015年11月09日 06:03:25 +00:00
Jenkins
e8004142c9 Merge "Remove flavors.get_all_flavors() only used in tests" 2015年11月09日 05:55:38 +00:00
Jenkins
49836e749b Merge "Fix attibute error when cloning raw images in Ceph" 2015年11月09日 03:39:15 +00:00