48075 Commits

Author SHA1 Message Date
Jenkins
5bf1bb47c7 Merge "Enable custom certificates for keystone communication" 2017-09-20 08:45:42 +00:00
Jenkins
5ebff5071d Merge "use unicode in tests to avoid SQLA warning" 2017-09-19 15:16:59 +00:00
Jenkins
be7fb7fe7f Merge "Fix the ocata config-reference URLs" 2017-09-19 13:23:18 +00:00
jichenjc
905d31dd97 Enable custom certificates for keystone communication
Nova creates a session back to keystone to verify project ids for
quota and flavor access APIs. The session that was being created was
not based on conf options, so it only worked in simple default
scenarios. This updates the session by using the newly added keystone
section to utilize keystoneauth1 to manage the session creation, which
allows for specifying custom site certificates to secure the link
between Nova and Keystone.

Change-Id: Ice4b226fdabdfb66e60b61de05ac8f3b37610661
Closes-Bug: 1704798
2017-09-19 08:18:23 -04:00
Jenkins
20c4840f12 Merge "doc: Further cleanup of doc contributor guide" 2017-09-19 09:24:14 +00:00
Jenkins
e696926660 Merge "doc: rename the Indices and Tables section" 2017-09-19 08:16:30 +00:00
Takashi NATSUME
2fce8a1396 Fix the ocata config-reference URLs
Replace the ocata config-reference URLs with
URLs in each project repo.

Change-Id: I48d7c77a6e0eaaf0efe66f848f45ae99007577e1
Closes-Bug: #1715545
2017-09-19 06:38:15 +00:00
Jenkins
2761b7fc40 Merge "Updated from global requirements" 2017-09-19 02:58:27 +00:00
Jenkins
bd37c64b4a Merge "[placement] Unregister the ResourceClassList object" 2017-09-19 00:16:47 +00:00
Sean Dague
b33ae7f657 use unicode in tests to avoid SQLA warning
This suppresses a warning from SQLA which is only popping up in the
tests. Something we can and should avoid.

Change-Id: I3d1cf3a5dd817e0896809145fcb8fdd25a3a5d78
2017-09-18 16:00:15 -04:00
Jenkins
0aeaa2bce8 Merge "Set error state after failed evacuation" 2017-09-18 14:50:48 +00:00
Jenkins
224e216139 Merge "[placement] Unregister the Trait object" 2017-09-18 13:07:27 +00:00
Jenkins
962b28a516 Merge "Add '_has_qos_queue_extension' function" 2017-09-18 10:14:02 +00:00
Jenkins
100e668ca3 Merge "Add '_has_dns_extension' function" 2017-09-18 10:13:43 +00:00
Jenkins
6ef01a43ed Merge "Assume neutron auto_allocate extension's enabled" 2017-09-18 10:13:19 +00:00
Jenkins
52590cbc1f Merge "[placement] Unregister the TraitList object" 2017-09-18 10:10:21 +00:00
OpenStack Proposal Bot
8c44be5c9c Updated from global requirements
Change-Id: I10ea32764a04cfe0dd8445708f04bcd184c0d308
2017-09-16 23:18:37 +00:00
Előd Illés
a8ebf5f1aa Set error state after failed evacuation
When evacuation fails with NoValidHost, the migration status remains
'accepted' instead of 'error'. This causes problem in case the compute
service starts up again and looks for evacuations with status 'accepted',
as it then removes the local instances for those evacuations even though
the instance was never actually evacuated to another host.

Change-Id: I06d78c744fa75ae5f34c5cfa76bc3c9460767b84
Closes-Bug: #1713783
2017-09-15 17:33:04 -04:00
Matt Riedemann
7d3553c079 doc: rename the Indices and Tables section
We haven't had a doc wide index or mod index in this
section on the main page for a long time, so it's a
weird title for just having a link to the search page.

This renames the section title, describes the link and
also links to the openstack-wide docs search page.

Change-Id: Idf63e6035841c8ff0ec1aa9bd2994fedf53555b1
2017-09-15 12:53:24 -04:00
Stephen Finucane
88c31c8077 doc: Further cleanup of doc contributor guide
Change-Id: I03f00876fd8a51af487b18b8eb3f53454f81f0a2
2017-09-15 10:44:27 -06:00
Chris Dent
5cabc535af [placement] Unregister the ResourceClassList object
Unregister the ResourceClassList object because we do not need RPC
and versioning for the objects in nova.objects.resource_provider.

There are two primary changes here:

* unregistering the ResourceClassList class
* where objects.ResourceClassList is used, point directly to the
  nova.objects.resource_provider package instead

Partially-Implements: bp placement-deregister-objects
Change-Id: I109cceb08050b2714c2a2409bf4674f718ab29d6
2017-09-15 16:49:45 +01:00
Chris Dent
60d14c5915 [placement] Unregister the Trait object
Unregister the Trait object because we do not need RPC and
versioning for the objects in nova.objects.resource_provider.

There are two primary changes here:

* unregistering the Trait class
* where objects.Trait is used, point directly to the
  nova.objects.resource_provider package instead

Partially-Implements: bp placement-deregister-objects
Change-Id: I73e08aba095d843b59f73cf2ce8d8d4801740ed2
2017-09-15 16:49:45 +01:00
Chris Dent
171c0cab7d [placement] Unregister the TraitList object
Since we don't use RPC in placement and intend to never use RPC in
placement it makes little sense to register the resource provider
objects and keep track of their versions. They still need to be
activated as structured objects to get their fields set and properly
inherited.

Tests of versioned objects inspect the dependency trees of objects that
have other objects as fields so this process starts with the TraitList
object. Nothing depends on it. In subsequence patches the other objects
will be unregistered.

There are two primary changes here:

* unregistering the TraitList class
* where objects.TraitList is used, point directly to the
  nova.objects.resource_provider package instead

Partially-Implements: bp placement-deregister-objects
Change-Id: If284b7d595a7dd214a5cd3a322419074dcf0373e
2017-09-15 16:49:45 +01:00
Stephen Finucane
cc8da506cd Add '_has_qos_queue_extension' function
This is how we've standardized on checking for extensions. Use it for
QoS too.

Change-Id: I48c3e41df6133e04be3e25905ff4e168a44534c7
Related-Bug: #1698010
2017-09-15 09:19:40 -06:00
Stephen Finucane
d84a0a6184 Add '_has_dns_extension' function
This is how we've standardized on checking for extensions. Use it for
DNS too.

Change-Id: I46b24fe630fdfb9ea49c70ffc2d7386c9c31b5f0
2017-09-15 09:19:40 -06:00
Stephen Finucane
145e7b8cdd Assume neutron auto_allocate extension's enabled
No recent neutron deployment should ever have the 'auto_allocate'
extension missing in its list of extensions.

It appears like this has been the case since at least Mitaka [1].

This simplifies code slightly and allows us to remove a few
now-unnecessary tests.

[1] https://github.com/openstack/neutron/blob/mitaka-eol/neutron/plugins/common/constants.py#L41-L47

Change-Id: Ia420eac4471cdafecfe1ad3d411c494545046c92
2017-09-15 09:19:26 -06:00
Matthew Treinish
09fc560609
Add single quotes for posargs on jobs
People seem to hate the idea of using tox -epy27 -- foo to use a
test regex so add single quotes around posargs to make it so you can
just do tox -epy27 foo again.

Change-Id: I12c5d2dc78db3bc8954ff420492115ff53c42703
2017-09-15 11:15:06 -04:00
Jenkins
f91817aaf4 Merge "Split out the core of the ironic flavor migration" 2017-09-15 04:03:03 +00:00
Jenkins
4932720dad Merge "Target context when setting instance to ERROR when over quota" 2017-09-15 01:50:28 +00:00
Jenkins
0e0cde9bff Merge "Call terminate_connection when shelve_offloading" 2017-09-14 22:33:24 +00:00
Jenkins
befd01a572 Merge "Tweak connection_info translation for the new Cinder attach/detach API" 2017-09-14 22:23:17 +00:00
Jenkins
5070976af7 Merge "Add attachment_complete call to volume/cinder.py" 2017-09-14 22:21:53 +00:00
Jenkins
0566a76035 Merge "[placement] Correct a comment in _set_allocations" 2017-09-14 22:21:24 +00:00
Jenkins
d1e70e9801 Merge "Default the service version in the notification tests" 2017-09-14 21:28:41 +00:00
Jenkins
4e13c38f78 Merge "Revert "Enable test_iscsi_volume in live migration job"" 2017-09-14 21:25:25 +00:00
Andrea Rosa
e89e1bdc60 Call terminate_connection when shelve_offloading
When nova performs a shelve offload for an instance, it needs to terminate
all the volume connections for that instance as with the shelve offload
it is not guaranteed that the instance will be placed on the same host once
it gets unshelved.
This change adds the call to the terminate_volume_connections on the
_shelve_offload_instance method in the compute manager.

Closes-Bug: #1547142

Change-Id: I8849ae0f54605e003d5b294ca3d66dcef89d7d27
2017-09-14 13:58:11 -04:00
Jenkins
91addc87c6 Merge "Remove deprecated keymgr code" 2017-09-14 17:51:13 +00:00
Matt Riedemann
1328a50e2c Revert "Enable test_iscsi_volume in live migration job"
This reverts commit 1032c79238e87259cef6963e43c78c39eeeb2cde.

This wasn't actually ready to merge, and now that it has
we're seeing a spike in failures of test_iscsi_volume.

Change-Id: I74649dd63ef82a356b829ea01b2e74640dc6f11c
Related-Bug: #1398999
2017-09-14 17:30:18 +00:00
Jenkins
65129e41e9 Merge "Cleanup running of osprofiler tests" 2017-09-14 00:53:24 +00:00
Jenkins
2ff55a8d5a Merge "Fix test runner config issues with os-testr 1.0.0" 2017-09-14 00:52:57 +00:00
Matt Riedemann
7e02f02d15 Target context when setting instance to ERROR when over quota
When conductor does the quota recheck, the instances are created
in a cell but when we update the instance and set it to ERROR state,
we were not targeting the context to the cell that the instance lives
in, which leads to an InstanceNotFound error and then the instance
is stuck in BUILD/scheduling state.

This targets the context to the cell when updating the instance.

Change-Id: I45faffaba4d329433a33cfb5e64c89ce4885df46
Closes-Bug: #1717000
2017-09-13 18:45:28 -04:00
Jenkins
578c41a777 Merge "Fix missed chown call" 2017-09-13 22:10:16 +00:00
Matthew Treinish
531abe778a
Cleanup running of osprofiler tests
Now that we're using stestr directly we have more flexibility on how we
run the osprofiler tests. This patch makes it run second without test
discovery and combines the subunit output with the results of the
previous full test run.

Change-Id: I49db096dd3056a4fd2ec6e6603b59e70a8d25480
2017-09-13 17:22:19 -04:00
Matthew Treinish
d083eceea3
Fix test runner config issues with os-testr 1.0.0
The os-testr 1.0.0 release had a couple of required config changes due
to it's internal usage of stestr. This commit fixes those by adding a
.stestr.conf (to remove a warning) sets the fixture env variables in
the tox.ini instead of being hidden in .testr.conf and removing the
quotes around posargs to make passing args to ostestr actually work.
Also to keep the expected dev experience stestr is used directly for
places where ostestr was called directly.

Change-Id: Ib0fbcb2e7710a6b8219c56ef2a4462c61ea498a9
2017-09-13 17:11:57 -04:00
Jenkins
451fb03d7c Merge "Move execs of tee to privsep." 2017-09-13 20:53:59 +00:00
Jenkins
92b860fa6c Merge "Enable test_iscsi_volume in live migration job" 2017-09-13 17:55:30 +00:00
Jenkins
a28b79adb3 Merge "doc: fix flavor notes" 2017-09-13 17:54:47 +00:00
Michael Still
39c2cceb75 Fix missed chown call
When privsep'ing chown calls, this one was missed. Fix that.

I think this entire method should go away, but it will break at least
one of out tree driver. I'm talking to the powervm guys about a way
forward there.

Change-Id: I8a9bda36728896e60b13c32afda0a7130664cb7b
Closes-Bug: #1716718
2017-09-14 03:01:42 +10:00
OpenStack Proposal Bot
cfdec41eee Updated from global requirements
Change-Id: I043babceb3b1be03550c8e90c9abb9450d5f5cde
2017-09-13 12:57:19 +00:00
Ildiko Vancsa
951b88eec1 Tweak connection_info translation for the new Cinder attach/detach API
This patch is fixing the translation of the attachment_ref to move the
'connection_info' data under a 'data' key in 'connection_info' and move
'status', 'instance', 'attach_mode', 'attached_at' and 'detached_at' into
'connection_info'.

The patch modifies the translation function that got introduced in this
review: https://review.openstack.org/#/c/486194/ Since introducing the
original function we realized that we haven't captured the original
format of connection_info therefore we added additional modifications here.

Partially Implements: blueprint cinder-new-attach-apis

Change-Id: I8156e4da3c218b5f0cb122f161ff7f640fce00ea
2017-09-12 21:12:03 -06:00