Commit Graph

56344 Commits

Author SHA1 Message Date
Stephen Finucane 4b8560563a pre-commit: Use Python 3 to run checks
We need this otherwise flake8 will run in Python 2 mode, which results
in syntax errors for Python 3-only syntax like kwarg-only functions.

Change-Id: Id55dbce1d9a19ccaa4fe605985fb165e9b3ab48c
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-01-14 14:59:08 +00:00
Zuul 67d9b5114e Merge "Fix typos in nova doc" 2020-01-10 23:27:11 +00:00
Zuul b0cae0750c Merge "Add a workaround config toggle to refuse ceph image upload" 2020-01-10 08:41:44 +00:00
Zuul 3d3d6d5250 Merge "Use Placement 1.35 (root_required)" 2020-01-10 02:44:45 +00:00
Zuul 35b2952a7d Merge "Add missing parameter vdi_uuid in log message" 2020-01-10 01:16:07 +00:00
Zuul 6fd8610da9 Merge "nova-net: Remove firewall support (pt. 3)" 2020-01-09 15:56:52 +00:00
Zuul 36dbe992d1 Merge "Do not reschedule on ExternalNetworkAttachForbidden" 2020-01-09 15:56:45 +00:00
Zuul 83622d389e Merge "functional: Make '_IntegratedTestBase' subclass 'InstanceHelperMixin'" 2020-01-09 14:28:59 +00:00
Dan Smith 80191e6d82 Add a workaround config toggle to refuse ceph image upload
If a compute node is backed by ceph, and the image is not clone-able
in that same ceph, nova will try to download the image from glance
and upload it to ceph itself. This is nice in that it "just works",
but it also means we store that image in ceph in an extremely
inefficient way. In a glance multi-store case with multiple ceph
clusters, the user is currently required to make sure that the image
they are going to use is stored in a backend local to the compute
node they land on, and if they do not (or can not), then nova will
do this non-COW inefficient copy of the image, which is likely not
what the operator expects.

Per the discussion at the Denver PTG, this adds a workaround flag
which allows the operators to direct nova to *not* do this behavior
and instead refuse to boot the instance entirely.

Related-Bug: #1858877
Change-Id: I069b6b1d28eaf1eee5c7fb8d0fdef9c0c229a1bf
2020-01-09 13:53:40 +00:00
zhufl ea172ef85f Fix typos in nova doc
This is to fix the following typos:
  regadless
  users's
  possile
  caculated

Change-Id: If47adefa59f01b7f2ebcee5b7e07e0260df113e4
2020-01-09 15:49:49 +08:00
Zuul f25e5d0820 Merge "Update Testing NUMA documentation" 2020-01-08 16:56:01 +00:00
Victor Morales 4b6b755d86 Update Testing NUMA documentation
The document which contains the steps to test different NUMA
setups was using legacy instructions. This change pretends to update
those instructions to improve the readability.

Change-Id: Id8bf96f035528b15a51c802f06e07422b9f36736
2020-01-08 08:11:50 -08:00
Stephen Finucane 9b321e41f6 nova-net: Remove firewall support (pt. 3)
Firewall support is not needed with neutron, which supports both
security groups for per-port filtering and FWaaS for per-network
filtering. Remove both the generic firewalls and the hypervisor-specific
implementations.

This part focuses on removing the firewall drivers themselves, which are
now unused. It also updates the release note to note the two additional
config options that are removed here, '[DEFAULT] firewall_driver' and
'[DEFAULT] allow_same_net_traffic'.

Change-Id: I2dccf1610d6cbbb076fda393f1ef695d0be84b13
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-01-08 13:53:00 +00:00
Zuul 8302cccff6 Merge "Fix excessive runtime of test test_migrate_within_cell" 2020-01-08 13:01:12 +00:00
Zuul b81d3a26de Merge "libvirt: avoid cpu check at s390x arch" 2020-01-08 10:03:21 +00:00
Zuul 1fed6bd934 Merge "Remove 'nova-xvpvncproxy'" 2020-01-08 06:27:03 +00:00
Zuul 25c39a3207 Merge "Fix the suppress of policy deprecation warnings" 2020-01-08 05:59:55 +00:00
Zuul d4a0f69e61 Merge "nova-net: Remove firewall support (pt. 2)" 2020-01-08 01:55:20 +00:00
Zuul ba266419f1 Merge "nova-net: Remove firewall support (pt. 1)" 2020-01-08 01:30:07 +00:00
Eric Fried bcc893a2b0 Use Placement 1.35 (root_required)
Placement microversion 1.35 gives us the root_required queryparam to GET
/allocation_candidates, allowing us to filter out candidates where the
*root* provider has/lacks certain traits, independent of traits
specified in any of the individual request groups.

Use it.

And add affordance for specifying such traits to the RequestSpec.

Which allows us to fix up the couple of request filters that were
hacking traits into the RequestSpec.flavor.

Change-Id: I44f02044ce178e84c23d178e5a23a3aa1208e502
2020-01-07 16:46:56 -06:00
Zuul 66b7bdaa8b Merge "Deprecate [glance]api_servers" 2020-01-07 21:12:33 +00:00
Ghanshyam Mann b0a0a7e00a Fix the suppress of policy deprecation warnings
oslo.policy log the deprected policy warning while loading the
policy rule. Flag to suppress the warning was set after load_rule()
was called.

Moving the setting of suppress_deprecation_warnings flag before
load_rule method is called.

Closes-Bug: #1858652

Change-Id: I3f30df8f0fdf76d763ee4770af074a2f4f400ee8
2020-01-07 17:58:09 +00:00
Zuul 42742795db Merge "FUP to Iff8194c868580facb1cc81b5567d66d4093c5274" 2020-01-07 16:53:13 +00:00
Zuul 0e81260415 Merge "FUP for docs nits in cross-cell-resize series" 2020-01-07 16:29:48 +00:00
Balazs Gibizer 7845c0cdd3 Fix excessive runtime of test test_migrate_within_cell
The test test_migrate_within_cell functional test takes 160 seconds to
run.

Seems like the cleanup after the test function takes the extra time.
By looking at the test case it starts a migration then if that call
returns 202 the test finishes. So the cleanup and the migration happen
in parallel. By adding a wait for the server to finish migration
removes the excessive run time.

Change-Id: Ib4e1712d9724147ec8bdf90a1294041e62dfb136
Closes-Bug: #1858639
2020-01-07 14:46:24 +01:00
jichenjc 011cce6adb libvirt: avoid cpu check at s390x arch
nova compute will call check_can_live_migrate_destination when doing
live migration and it will compare cpu model, however, following info
indicated that cpu compare is not supported at s390x arch.

URI qemu:///system does not support full set of host capabilities: this
function is not supported by the connection driver:
cannot compute baseline CPU of s390x architecture

https://www.libvirt.org/news.html has the info
v5.9.0 has Improvements part indicated the compare was added at 5.9

so the workaround is to avoid the check and let the migration proceed.

Change-Id: I253f4f305ecf8b5331212be87caef41f2ebb747e
Closes-Bug: 1854126
2020-01-07 07:19:05 +00:00
Zuul 92a9779992 Merge "Add recreate test for bug 1855927" 2020-01-07 05:39:07 +00:00
Zuul 557b73d2a5 Merge "Ensure source service is up before resizing/migrating" 2020-01-07 05:39:02 +00:00
Zuul 0dae0bfde3 Merge "Report trait 'COMPUTE_IMAGE_TYPE_PLOOP'" 2020-01-07 05:29:24 +00:00
Zuul b6e50ad498 Merge "Fix an invalid assertIsNotNone statement" 2020-01-07 01:30:28 +00:00
Zuul a741f28cda Merge "[api-ref] Fix the incorrect link" 2020-01-07 01:30:23 +00:00
Zuul 2c6388e3cd Merge "docs: Add note about an image signature validation limitation when using rbd" 2020-01-07 00:51:29 +00:00
Zuul 34d05c82b8 Merge "Add api for instance action details" 2020-01-06 20:14:00 +00:00
Zuul 662138b6c1 Merge "Create instance action when burying in cell0" 2020-01-06 20:13:52 +00:00
Zuul 2e610aa6cc Merge "Fix duplicated words issue like "during during boot time"" 2020-01-06 19:58:36 +00:00
Zuul 97b8a241a6 Merge "[Trivial]Fix typo instnace" 2020-01-06 19:50:31 +00:00
Stephen Finucane 30141e6b52 nova-net: Remove firewall support (pt. 2)
Firewall support is not needed with neutron, which supports both
security groups for per-port filtering and FWaaS for per-network
filtering. Remove both the generic firewalls and the hypervisor-specific
implementations.

This change focuses on removing the firewall-related API calls from the
various virt drivers. The firewall drivers themselves are removed
separately.

Change-Id: I5a9e5532c46a5f7064441ae644125d21efe5fda1
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-01-06 12:46:30 +00:00
Stephen Finucane 6af7c36ac7 nova-net: Remove firewall support (pt. 1)
Firewall support is not needed with neutron, which supports both
security groups for per-port filtering and FWaaS for per-network
filtering. Remove both the generic firewalls and the hypervisor-specific
implementations.

This changes focuses on removing the firewall-related API calls from the
compute manager.

Change-Id: Id611bb0527092c20ce5b388a5550b98d4a8626c7
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-01-06 12:46:30 +00:00
ericxiett e61cb24932 Report trait 'COMPUTE_IMAGE_TYPE_PLOOP'
This patch updates virt interface for reporting
trait 'COMPUTE_IMAGE_TYPE_PLOOP'.

Change-Id: Ifa2c3857725d64963aed2de7fac0b5b424665afe
Closes-Bug: #1854235
2020-01-06 12:32:42 +00:00
Zuul 7ca014cea7 Merge "Use graceful_exit=True in ComputeTaskManager.revert_snapshot_based_resize" 2020-01-06 06:43:49 +00:00
zhufl b608d6bfb4 Fix duplicated words issue like "during during boot time"
This is to fix the duplicated words issue like
"if it was specified during during boot time".

Change-Id: I0ffedb8c40399a4b0ecd83b142bdeaf556d1568f
2020-01-06 14:19:03 +08:00
Zuul 64c9944978 Merge "Plumb graceful_exit through to EventReporter" 2020-01-05 23:20:05 +00:00
Zuul 71c318f109 Merge "Fix accumulated non-docs nits for cross-cell-resize series" 2020-01-04 18:13:11 +00:00
Zuul 4fcecdb55a Merge "Restore test_minbw_allocation_placement in nova-next job" 2020-01-03 20:45:45 +00:00
zhufl 2fd877310c Add missing parameter vdi_uuid in log message
This is to add missing parameter vdi_uuid in the log message.

Change-Id: If5a2e4245586c54cf575508ab2a5269bd205cb66
2020-01-03 17:09:21 +08:00
zhufl 4352a41b4c [Trivial]Fix typo instnace
This is to fix the typo of instnace, which should be instance.

Change-Id: Ia58f46f647b1fca3405f6e81e631434bec4e31b5
2020-01-03 09:06:20 +08:00
zhufl 1b7ebe5f75 Fix an invalid assertIsNotNone statement
This is to to fix an invalid assertIsNotNone statement,
"self.assertIsNotNone('migration_context', self.task.instance)",
which will never raise an exception.

Change-Id: I7264238a50f5320500696312cff63dcc0e728810
2019-12-26 16:05:09 +08:00
Zuul 65aae518f8 Merge "Introduce scope_types in Admin Actions" 2019-12-26 06:48:34 +00:00
Zuul 029c84e08f Merge "Add cross-cell resize tests for _poll_unconfirmed_resizes" 2019-12-26 03:58:59 +00:00
Zuul 9a083b6db6 Merge "Implement cleanup_instance_network_on_host for neutron API" 2019-12-26 02:04:03 +00:00