Commit Graph

50889 Commits

Author SHA1 Message Date
Michael Still f9a0c1917c Move create_tap_dev to the new utility module.
Move another generally useful utility method out of nova-net to
somewhere more generic.

Change-Id: I1bf7afecd2e8122492dcb2c21b26e5b72919e6b5
blueprint: remove-nova-network
2018-05-10 13:56:23 -04:00
Zuul 25fa2470e2 Merge "remove IVS plug/unplug as they're moved to separate plugin" 2018-05-10 10:29:25 +00:00
Zuul a0ff84e0ba Merge "Migrate tempest-dsvm-multinode-live-migration job in-tree" 2018-05-10 04:39:52 +00:00
Zuul 46e87ce6eb Merge "Add tests for alloc cands with poor local disk" 2018-05-10 02:56:11 +00:00
Zuul 922ca50fd0 Merge "Convert configdrive to use processutils." 2018-05-10 01:30:32 +00:00
Zuul e34c8c3f70 Merge "Remove mox in test_xenapi.py (1)" 2018-05-09 23:25:04 +00:00
Zuul b5bf853f16 Merge "Expose driver_block_device fields consistently" 2018-05-09 22:01:12 +00:00
Zuul 4ca6581bee Merge "Fix detach_volume calls when rolling back a failed attach" 2018-05-09 17:22:00 +00:00
Zuul 30ad9d7e51 Merge "Followup for multiple member_of qparams support" 2018-05-09 16:05:06 +00:00
Matthew Booth b958bf1126 Expose driver_block_device fields consistently
Currently only _proxy_as_attr fields are available as attributes, and
they are not available as dict values. Other values are available as
both. This is inconsistent. This change ensures all fields are exposed
as both dict values and attributes, so the caller doesn't have to
remember which type of attribute they're accessing.

Part of bp local-disk-serial-numbers

Change-Id: I35ebff9a06617aa58e612919eba81e8eea21f6a3
2018-05-09 15:14:01 +01:00
Matt Riedemann 717d09149e Fix detach_volume calls when rolling back a failed attach
Change I751fcb7532679905c4279744919c6cce84a11eb4 modified
the ComputeDriver.detach_volume method signature to pass
the RequestContext as the first argument. This was missed
in the volume attach rollback code where the driver.detach_volume
method is called. It was missed because that is called
in a try/except block which catches generic Exception, which
also means that the unit test covering that flow, which
raised an Exception, was not failing.

This change fixes the code bug and re-writes the test to
use mock rather than mox and explicitly assert the calls made.

An alternative to this would be changing the generic
Exception handling in the rollback code, however, the
virt drivers raise things other than NovaException, like
os-brick exceptions and libvirtError, so refactoring that
error handling is non-trivial.

Change-Id: I9bafd4c47489b61973302310720b11ec1b5e0374
Closes-Bug: #1765742
2018-05-09 09:52:04 -04:00
Aditya Prakash Vaja 92323586b5 remove IVS plug/unplug as they're moved to separate plugin
- as per the bug #1704129, the plug/unplug is moved to a
   separate os-vif plugin
 - IVS's methods have also been moved to a separate package
   called os-vif-bigswitch [1]
 - hence removing all dangling calls from here

[1] https://github.com/bigswitch/os-vif-bigswitch

Partial-Bug: #1704129

Change-Id: Icf948f6ee1c0da2327fb5eac61fec6e89ac30531
2018-05-09 06:02:51 -07:00
Balazs Gibizer 052cefcf43 Followup for multiple member_of qparams support
* Function documentation of member_of param is fixed in multiple places
* Defaulting member_of to None instead of empty string to use a value
  that the caller documented to expect
* Fixing placement db test case that still used a single UUID list as
  member_of

Change-Id: I9b7184f8f8b1e621df61b5652956707345be2ab0
2018-05-09 14:15:01 +02:00
Zuul a8d3c61a57 Merge "Remove [scheduler]/host_manager config option" 2018-05-09 10:53:57 +00:00
Zuul bcb405e871 Merge "Convert certificate generation to processutils." 2018-05-09 08:49:57 +00:00
Zuul 23fce8c13f Merge "Remove unused methods in nova/compute/utils.py" 2018-05-09 08:33:26 +00:00
Zuul 50f42333f5 Merge "Remove IronicHostManager and baremetal scheduling options" 2018-05-09 07:01:41 +00:00
Zuul 2434d597e7 Merge "Convert xenapi's xvp console to processutils." 2018-05-09 04:57:55 +00:00
Zuul ace121b5ec Merge "log stale allocations as WARNING instead of DEBUG" 2018-05-09 04:51:40 +00:00
Zuul b709892cdc Merge "Add docs for hw_video:ram_max_mb flavor extra spec" 2018-05-09 04:11:01 +00:00
Zuul 7e2f459032 Merge "Convert fping API to processutils.execute()" 2018-05-09 01:22:47 +00:00
Zuul 3f1c581fc6 Merge "Use .. deprecated:: theme for deprecations" 2018-05-08 23:47:51 +00:00
Zuul 1d4f01a6fe Merge "doc: Don't confuse CPU pinning/NUMA as Hyper-V only" 2018-05-08 23:47:43 +00:00
Zuul 46552c343e Merge "placement: Granular GET /allocation_candidates" 2018-05-08 23:47:35 +00:00
Zuul a5ed530af8 Merge "Handle PortNotFoundClient exception when getting ports" 2018-05-08 23:09:20 +00:00
Matt Riedemann 1ae5821efd Add docs for hw_video:ram_max_mb flavor extra spec
Change-Id: I4fc888b40216d7d8e53e278c71fde297fa7f2704
2018-05-08 18:13:35 -04:00
Zuul 81c23c047e Merge "placement: Object changes for granular" 2018-05-08 21:51:01 +00:00
Eric Fried fca14f0906 Use .. deprecated:: theme for deprecations
We were using `warning`, and `important` themes to mark deprecations in
various places.  We have a `deprecated` role, so this change switches to
use it.

Note that I also found the following files that mentioned deprecation,
but not in a way where using this role seemed appropriate.  I'm
recording them here so you know I considered them.

doc/source/admin/configuration/hypervisor-kvm.rst
doc/source/admin/configuration/schedulers.rst
doc/source/cli/index.rst
doc/source/cli/nova-rootwrap.rst
doc/source/contributor/api.rst
doc/source/contributor/code-review.rst
doc/source/contributor/policies.rst
doc/source/contributor/project-scope.rst
doc/source/reference/policy-enforcement.rst
doc/source/reference/stable-api.rst
doc/source/user/feature-classification.rst
doc/source/user/flavors.rst
doc/source/user/upgrade.rst

Change-Id: Icd7613d9886cfe0775372c817e5f3d07d8fb553d
2018-05-08 21:50:51 +00:00
Stephen Finucane a2a01c4ace doc: Don't confuse CPU pinning/NUMA as Hyper-V only
A recent'ish change in openstack-manuals [1] noted the new support for
NUMA topologies when using the Hyper-V driver. As part of this change, a
section was added that describes the configuration steps that were
necessary on Hyper-V hosts before booting instances. However, the way
this section is integrated gives the impression that NUMA support is a
Hyper-V only feature.

Correct this by moving this configuration step to the end of the
document and instead opting to link to it from higher in the doc.

[1] https://review.openstack.org/#/c/424102/

Change-Id: Ic8d9c1b35d52a26374763b5c0e4be79875814569
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2018-05-08 17:40:22 -04:00
Zuul acc9703f53 Merge "Remove stale pip-missing-reqs tox test" 2018-05-08 21:32:46 +00:00
Zuul 8d688ad2ff Merge "Bump pypowervm minimum to 1.1.15" 2018-05-08 21:06:34 +00:00
Tetsuro Nakamura 12948cfe73 Add tests for alloc cands with poor local disk
This patch deletes a duplicative test and enhance it to validate a
case where a compute node's local disk is not enough while there
is a shared storage with enough disk.

This case has been already fixed thanks to new _exceeds_capacity
function from commit 9af073384c.

Change-Id: Ia544dc529c844f7bee5b04f90456fd66a20ecdd0
Related-Bug: #1769854
2018-05-09 03:49:57 +09:00
Zuul bbe58eced8 Merge "libvirt: Fix misleading debug msg "Instance is running"" 2018-05-08 17:01:15 +00:00
Eric Fried 9af073384c placement: Granular GET /allocation_candidates
In a new microversion, the GET /allocation_candidates API now accepts
granular resource request syntax:
?resourcesN=...&requiredN=...&member_ofN=...&group_policy={isolate|none}

Change-Id: I4e99974443aa513fd9f837a6057f67d744caf1b4
blueprint: granular-resource-requests
2018-05-08 11:54:30 -05:00
Zuul e778fc7b26 Merge "Changing scheduler sync event from INFO to DEBUG" 2018-05-08 14:34:17 +00:00
Takashi NATSUME 29160cf888 Remove unused methods in nova/compute/utils.py
The following methods in nova/compute/utils.py
have not been used since
I9269ffa2b80e48db96c622d0dc0817738854f602.

* reverse_upsize_quota_delta
* downsize_quota_delta

In addition, remove an unused argument of
the 'upsize_quota_delta' method in the file.

Change-Id: Ia8eed927e3946ee8d7c90f6aead2883728772aca
2018-05-08 20:00:04 +09:00
Zuul 5460592e46 Merge "Give volume DriverBlockDevice classes a common prefix" 2018-05-08 05:17:31 +00:00
Zuul d5049878ca Merge "Deprecate the nova-consoleauth service" 2018-05-08 04:21:43 +00:00
Zuul de7386822c Merge "Proxy is_volume through DriverBlockDevice" 2018-05-08 01:27:20 +00:00
Takashi NATSUME bc8580cc69 Remove mox in test_xenapi.py (1)
Replace mox with mock or stub_out in the following class
in nova/tests/unit/virt/xenapi/test_xenapi.py.

* XenAPIVMTestCase

Subsequent patches will remove mox in other test methods
in the file.

Change-Id: Ie0fc1c66088c4665bc16b46e5eedba33af89a966
Implements: blueprint mox-removal
2018-05-08 01:13:47 +00:00
melanie witt 7d8246244d Migrate tempest-dsvm-multinode-live-migration job in-tree
This defines the nova-live-migration job, based on the
tempest-dsvm-multinode-live-migration job from openstack-zuul-jobs.

The branch override parts of the job definition are removed since
the job will be defined per-branch now.

Change-Id: Idea86d6bb648b1e6fef8813dbe569724ce81a750
2018-05-07 22:39:44 +00:00
Zuul b60c3fc394 Merge "[doc]remove nova-cert leftover in doc" 2018-05-07 20:09:45 +00:00
Zuul f58d8b5513 Merge "doc: add note about xenapi aggregate upcall being resolved" 2018-05-07 19:59:14 +00:00
Zuul 300b8f5633 Merge "Replace Chinese punctuation with English punctuation" 2018-05-07 19:59:07 +00:00
Daniel Abad 72633d955f Fix typos in Host aggregates documentation
Change-Id: I5835928b51435149cb1557080b03ae3ab6bf3fa8
2018-05-07 16:41:39 +02:00
Zuul dd2232c446 Merge "Use helpers in test_resource_provider (func)" 2018-05-05 01:57:58 +00:00
Zuul bd0ff54b4a Merge "Use test_base symbols directly" 2018-05-05 00:38:35 +00:00
Erik Olof Gunnar Andersson e86ac82bbd Changing scheduler sync event from INFO to DEBUG
We don't need to log every single sync event, this can get
pretty spammy, especially when you have computes in the hundreds.

Change-Id: I958005b6a3e2b90ca6fe6046e4dbcc5991581245
2018-05-04 12:32:04 -07:00
Zuul e8b4e5e512 Merge "Base test module/class for functional placement db" 2018-05-04 19:07:26 +00:00
Zuul 52e2f03220 Merge "Update layout docs for running console proxies" 2018-05-04 17:21:47 +00:00