Commit Graph

57886 Commits

Author SHA1 Message Date
Lee Yarwood 57ac83d4d7 releasenote: Add known issue for bug #1894804
Related-Bug: #1882521
Change-Id: Ib9059dde41b0a07144ffa26552577308b1ffc9e1
2020-09-18 10:45:43 +01:00
Zuul 9fa563666e Merge "compute: Skip cinder_encryption_key_id check when booting from volume" 2020-09-17 19:59:43 +00:00
Zuul 2f18450adc Merge "Add regression test for bug #1895696" 2020-09-17 19:00:27 +00:00
Zuul 8a33066b25 Merge "api: Set min, maxItems for server_group.policies field" 2020-09-17 19:00:20 +00:00
Zuul f47bde539c Merge "tests: Remove '_FakeImageService'" 2020-09-17 12:46:35 +00:00
Lee Yarwood f9b67893ac compute: Skip cinder_encryption_key_id check when booting from volume
Idf84ccff254d26fa13473fe9741ddac21cbcf321 added this check in order for
Nova to avoid booting encrypted images created by Cinder as there is
currently no support for using such images (rotating keys etc).

The check however missed the slightly convoluted use case where this
image property is found against a volume after the volume in question is
created using an encrypted image created by cinder from an encrypted
volume. In other words:

- Cinder creates an encrypted volume A
- Glance creates an encrypted image A from volume A
- Cinder creates an encrypted volume B from image A
- Nova attempts to boot an instance using volume B

Note that Nova may request the creation of volume B or a user could also
do this directly through Cinder.

As such this change simply ensures that the instance isn't booting from
a volume when preforming the check as it is only valid when booting from
an image.

Closes-Bug: #1895696
Change-Id: Ic92cab7362fa25050e5bbef5c3e360108365b5c7
2020-09-17 12:16:54 +01:00
Lee Yarwood e76cccddd3 Add regression test for bug #1895696
Related-Bug: #1895696
Change-Id: I15271fb0b8de7f1184acddd607d605837e2eb7d4
2020-09-17 12:16:44 +01:00
Zuul cf26d18631 Merge "Fix error that cannot overwrite policy rule for 'forced_host'" 2020-09-16 21:49:20 +00:00
Zuul 77e24cc6e7 Merge "tests: Add regression test for bug 1894966" 2020-09-16 19:07:21 +00:00
Zuul b262e23734 Merge "functional: Add and use 'GlanceFixture'" 2020-09-16 17:10:21 +00:00
Zuul d42909a9e5 Merge "functional: Enable real policy fixture by default" 2020-09-16 17:10:12 +00:00
Stephen Finucane 2a7f1f986e docs: Improve 'AggregateImagePropertiesIsolation' docs
When we introduced the 'ImageMetaProps' o.vo in Liberty, we lost the
ability to consume arbitrary metadata configured for images. This
affects users of the 'AggregateImagePropertiesIsolation' filter, who may
have set such arbitrary metadata and expected their instances to be
restricted to host aggregates matching that metadata.

The world has changed a lot since Liberty was released, and it's
probably too late and maybe even a little unwise to let that genie back
out of its bottle, however, we can and should probably do a better job
of warning people of this change in behavior in our documentation. Do
just this.

Change-Id: If7245a90711bd2ea13095ba26b9bc82ea3e17202
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Related-Bug: #1741810
2020-09-16 14:27:51 +01:00
Stephen Finucane 19ef3655b1 tests: Remove '_FakeImageService'
Migrate unit tests over to the new GlanceFixture, allowing us to fully
delete '_FakeImageService' and various helpers.

Change-Id: I3e3d9bbd32aa2fe0777681f21ba827610d5b3040
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-09-16 11:31:23 +01:00
Stephen Finucane cc45581a18 functional: Add and use 'GlanceFixture'
This rather beefy (but also quite simple) patch replaces the
'stub_out_image_service' call and associated cleanup in all functional
tests with a new 'GlanceFixture', based on the old 'FakeImageService'.
The use of a fixture means we don't have to worry about teardown and
allows us to stub Glance in the same manners as Cinder, Neutron,
Placement etc.

Unit test cleanup is handled in a later patch.

Change-Id: I6daea47988181dfa6dde3d9c42004c0ecf6ae87a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-09-16 11:31:23 +01:00
Stephen Finucane 8750c4e173 functional: Enable real policy fixture by default
Enable the policy fixture by default, which should yield more realistic
functional tests. We need to update some tests to use admin APIs where
policy dictates they are necessary. Note that we're currently testing
the legacy policy - not the updated, scoped policy - since the legacy
policy is the default one currently.

Note that we also need to modify the 'SingleCellSimple' fixture in this
change to use the same project ID as the 'OSAPIFixture'.

Change-Id: Ia3dea78f16cb3c7081714c4db36e20d5ee76ed7d
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-09-16 11:31:23 +01:00
Stephen Finucane 32c43fc801 api: Set min, maxItems for server_group.policies field
As noted inline, the 'policies' field may be a list but it expects one
of two items.

Change-Id: I34c68df1e6330dab1524aa0abec733610211a407
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Closes-Bug: #1894966
2020-09-16 11:13:47 +01:00
Stephen Finucane 2c66962c7a tests: Add regression test for bug 1894966
You must specify the 'policies' field. Currently, not doing so will
result in a HTTP 500 error code. This should be a 4xx error. Add a test
to demonstrate the bug before we provide a fix.

Change-Id: I72e85855f621d3a51cd58d14247abd302dcd958b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Related-Bug: #1894966
2020-09-16 11:13:45 +01:00
Zuul f72c9e59fb Merge "Allow tap interface with multiqueue" 2020-09-16 09:56:29 +00:00
Zuul e0f088c95d Merge "functional: Add test for SR-IOV neutron ports" 2020-09-14 19:32:06 +00:00
Zuul 6414afd0ef Merge "conductor: Don't use setattr" 2020-09-14 19:31:58 +00:00
Zuul 30530f5ba7 Merge "Remove write_to_file." 2020-09-14 19:31:52 +00:00
Zuul c710a3f1e3 Merge "Run voting jobs in gate pipeline also" 2020-09-14 18:12:08 +00:00
Stephen Finucane 17ba10b759 functional: Add test for SR-IOV neutron ports
Add a simple test to demonstrate the interaction between nova and
neutron when creating an instance with a (pre-created) SR-IOV port.

Change-Id: I9d0596f31ca342b952c35c742befd75fdc39d95c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-09-14 16:47:17 +01:00
Stephen Finucane cc8b300f67 conductor: Don't use setattr
setattr kills discoverability, making it hard to figure out who's
setting various fields. Don't do it.

While we're here, we drop legacy compat handlers for pre-Train
compute nodes.

Change-Id: Ie694a80e89f99c8d3e326eebb4590d93c0ebf671
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-09-14 16:47:15 +01:00
Zuul 18bae88fd8 Merge "doc: mark the max microversion for victoria" 2020-09-14 12:14:08 +00:00
Zuul 3f54f5033b Merge "Update compute rpc version alias for victoria" 2020-09-14 12:14:01 +00:00
Zuul 76b2fbd90e Merge "Fix invalid assert_has_calls" 2020-09-14 10:29:43 +00:00
Zuul 90777d790d Merge "trivial: Final cleanup" 2020-09-13 23:38:50 +00:00
Zuul 51f698ece4 Merge "objects: Remove 'XenapiLiveMigrateData'" 2020-09-13 23:38:43 +00:00
Zuul 9a2763f846 Merge "xenapi: Remove Xen-only code paths" 2020-09-13 23:12:34 +00:00
Zuul 9e2aa2e87c Merge "virt: Remove 'is_xenapi' helper" 2020-09-13 23:12:27 +00:00
Zuul 7688bc0309 Merge "Correctly disable greendns" 2020-09-13 21:30:08 +00:00
Zuul c92b902f43 Merge "Cleanup unused code" 2020-09-12 09:50:39 +00:00
Zuul 9d9f8131e8 Merge "xenapi: Remove driver and tests" 2020-09-11 23:59:41 +00:00
Zuul 0a804fe139 Merge "trivial: Remove useless comment" 2020-09-11 23:59:33 +00:00
Zuul 73846fc37f Merge "Follow up for I67504a37b0fe2ae5da3cba2f3122d9d0e18b9481" 2020-09-11 21:56:26 +00:00
Artom Lifshitz 7c1d964faa Correctly disable greendns
Previously, we were setting the environment variable to disable
greendns in eventlet *after* import eventlet. This has no effect, as
eventlet processes environment variables at import time. This patch
moves the setting of EVENTLET_NO_GREENDNS before importing eventlet in
order to correctly disable greendns.

Closes-bug: 1895322
Change-Id: I4deed815c8984df095019a7f61d089f233f1fc66
2020-09-11 12:42:04 -04:00
Takashi Natsume f1e0cfda52 Update compute rpc version alias for victoria
This adds a compute rpc version alias for the named release victoria.

Change-Id: I08d6b098492abfb216161fcdda152255583b6763
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2020-09-12 01:29:34 +09:00
Zuul 648ac72818 Merge "Move revert resize under semaphore" 2020-09-11 16:17:42 +00:00
Michael Still f8919c9705 Remove write_to_file.
It only really existed to make unit testing easier back in the day,
and is trivial to move to its two callers.

Change-Id: I06c4408995d4bad0a4560e8e9cd5298d4bb6b043
2020-09-11 17:15:47 +01:00
Takashi Natsume cec24aee74 doc: mark the max microversion for victoria
Just follows the pattern that we do every release.

Change-Id: I8e2acf16bcf6a7d03e85c5b222f1b65c48941597
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2020-09-12 01:01:07 +09:00
Rodrigo Barbieri 84cfc8e9ab Allow tap interface with multiqueue
When vif_type="tap" (such as when using calico),
attempting to create an instance using an image that has
the property hw_vif_multiqueue_enabled=True fails, because
the interface is always being created without multiqueue
flags.

This change checks if the property is defined and passes
the multiqueue parameter to create the tap interface
accordingly.

In case the multiqueue parameter is passed but the
vif_model is not virtio (or unspecified), the old
behavior is maintained.

Change-Id: I0307c43dcd0cace1620d2ac75925651d4ee2e96c
Closes-bug: #1893263
2020-09-11 12:40:25 -03:00
Zuul 3b41633222 Merge "Support old & new versions of svm and vmx traits" 2020-09-11 14:10:00 +00:00
Stephen Finucane 1fd44eb56f trivial: Final cleanup
Remove references to the feature from various comments scattered
throughout the code.

Change-Id: Ic353a2489389c557859c249218eaf6060974e1a9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-09-11 14:09:06 +01:00
Stephen Finucane b9fdf09a17 objects: Remove 'XenapiLiveMigrateData'
This is no longer used by anything.

Change-Id: I39231b18fc0efcddba43be59ad06591d0b551ec4
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-09-11 14:09:06 +01:00
Stephen Finucane b93debd12c xenapi: Remove Xen-only code paths
Change-Id: I7fa825bbe8e9536963badd0f431b83dcbbabfdd6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-09-11 14:09:06 +01:00
Stephen Finucane 7991155454 virt: Remove 'is_xenapi' helper
This will never be true now.

Change-Id: I10c3542e06a4d8132314aaac5cf5a905e1f8a270
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-09-11 14:09:06 +01:00
Stephen Finucane adb28f503c xenapi: Remove driver and tests
Change-Id: I42b302afbb1cfede7a0f7b16485a596cd70baf17
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-09-11 14:09:06 +01:00
Zuul 19cb983800 Merge "func: Remove references to attachment_id when volume_id is used" 2020-09-11 12:45:32 +00:00
Zuul 1b9d06ec2b Merge "Fix an erroneous grammar in explanatory notes" 2020-09-11 12:31:43 +00:00