Commit Graph

44868 Commits

Author SHA1 Message Date
Jenkins 9a4e7e2b9e Merge "Handle unicode when dealing with duplicate aggregate errors during migration" 2017-01-26 02:15:47 +00:00
Jenkins 2affde40b5 Merge "Handle unicode when dealing with duplicate flavors during online migrations" 2017-01-26 02:15:14 +00:00
Jenkins 3ef7e7f0dd Merge "nova-manage docs: add cells commands prep" 2017-01-25 23:56:06 +00:00
Jenkins 14daabd308 Merge "libvirt: avoid generating script with empty path" 2017-01-25 23:14:20 +00:00
Jenkins 42222969a2 Merge "objects: add new field cpuset_reserved in NUMACell" 2017-01-25 13:18:24 +00:00
Jenkins bdb1084772 Merge "Enable virt.vmwareapi test cases on Python" 2017-01-25 10:15:44 +00:00
Jenkins 20cf491971 Merge "Make api_samples tests use simple cell environment" 2017-01-24 23:33:13 +00:00
Sahid Orentino Ferdjaoui af08620e96 objects: add new field cpuset_reserved in NUMACell
NUMA nodes should store the pCPUs reserved for the hypervisor
to allow drivers to use them and allow to compute NUMA topology
resources usage.

implements blueprint libvirt-emulator-threads-policy

Change-Id: Ieec2e698d6ca8ce4257e0db2f21e3021b3d7d479
2017-01-24 19:37:55 +00:00
Jenkins a404681dcc Merge "scheduler: Don't modify RequestSpec.numa_topology" 2017-01-24 19:24:00 +00:00
Dan Smith 4e3b2abdc6 Make api_samples tests use simple cell environment
The api_samples tests depend on a very static environment where
we use the SpawnIsSynchronous fixture. This is somewhat at odds with
the locking used in the CellDatabase fixture, which will necessarily
recurse at times. Since the api_samples tests are already a bit naive
in the service layout, and since they don't care about cells things,
we do some monkeywork here to make them use the SingleCellSimple
fixture instead of a full-blown multi-cell environment.

Change-Id: If1138331f3a46f5aed87e898ce19879a787d435f
2017-01-24 09:59:50 -08:00
Jenkins fbbbd258ae Merge "conf: Deprecate 'console_driver'" 2017-01-24 17:50:19 +00:00
Jenkins 45e79583ce Merge "Multicell support for instance listing" 2017-01-24 16:29:44 +00:00
Stephen Finucane 582321c54d conf: Deprecate 'console_driver'
This no longer does anything due to our use of fixtures in the test.

Change-Id: Id662bf0bedbd43459cf2561b3d12b65de08db4c0
2017-01-24 13:00:55 +00:00
Neil Jerram 847952927c libvirt: avoid generating script with empty path
Previously, libvirt just appended 'script=' onto the QEMU cmd line
according to what <script path=''/> contained, letting QEMU execute the
script.  That was flawed from security POV (you don't want QEMU to be
allowed to execute anything), so newer libvirt (as of [1]) executes the
script now.  But the libvirt code doesn't allow this corner case (of
allowing and ignoring an empty script path) whereas apparently the QEMU
code does.

So the Nova setting of '' used to work by accident, but now does not.

[1]
http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=9c17d66 (autocreate
tap device for ethernet network type)

Closes-Bug: #1649527
Change-Id: I4f97c05e2dec610af22a5150dd27696e1d767896
2017-01-24 12:50:49 +00:00
Jenkins 66c6612588 Merge "tests: Replace use of CONF with monkey patching" 2017-01-24 12:03:07 +00:00
Jenkins 47fb47924a Merge "Move migration_downtime_steps to libvirt/migration" 2017-01-24 12:02:22 +00:00
Jenkins d723f7310d Merge "Raise DeviceNotFound detaching volume from persistent domain" 2017-01-24 12:00:46 +00:00
Jenkins 223c57f499 Merge "Set sysinfo_serial="none" in LibvirtDriverTestCase" 2017-01-24 12:00:18 +00:00
Jenkins 2a356f2cfe Merge "Ironic: Add soft reboot support to ironic driver" 2017-01-24 11:59:37 +00:00
Jenkins 1cbb083fe5 Merge "Fix Nova to allow using cinder v3 endpoint" 2017-01-24 08:50:57 +00:00
Jenkins 8211f36a5b Merge "Updated from global requirements" 2017-01-23 23:36:39 +00:00
Jenkins e8cd3acf2d Merge "os-vif: convert libvirt driver to use os-vif for fast path vhostuser" 2017-01-23 23:32:07 +00:00
Dan Smith 5555ecc0c7 Multicell support for instance listing
This makes compute API's instance listing routines access and compile
the list of instances across all cells.

Related to blueprint cells-scheduling-interaction

Change-Id: I37b5af1e02e2288340378944e77c110268a59a8d
Depends-On: I3c9101a34b2bb0804fc4deda62dbb8637e7b8f94
2017-01-23 10:24:08 -08:00
Jenkins 7932c96c3f Merge "releasenotes: Add missing releasenote for encryption provider constants" 2017-01-23 18:15:12 +00:00
Stephen Finucane bff2030ece scheduler: Don't modify RequestSpec.numa_topology
The 'NUMATopologyFilter' makes a call to 'numa_fit_instance_to_host' in
order to determine whether an instance with a sample topology could fit
on a given host. This function is provided with an InstanceNUMATopology
object, which was extracted from the RequestSpec provided to the filter.
However, the 'numa_fit_instance_to_host' call has the side effect of
modifying a couple of fields on this InstanceNUMATopology object, most
notably the pinning information, and these changes are then propagated
to subsequent calls of the filter. The reason for this propagation is
presumably Python's "call-by-object" model [1].

While this doesn't cause any issues currently, it is a latent bug that
has caused issues downstream. Resolve the issue by copying the entire
RequestSpec object, thus ensuring any changes to this or the contained
NUMA topology are not stored and cannot affect future calls to this or
other filters.

[1] https://jeffknupp.com/blog/2012/11/13/is-python-callbyvalue-or-callbyreference-neither/

Change-Id: If26cbdd5189c53891554c8d128be9b90578616aa
Closes-Bug: #1655979
2017-01-23 17:26:06 +00:00
Jenkins 35a42c5b12 Merge "Fix and add some notes to the cells v2 first time setup doc" 2017-01-23 15:23:11 +00:00
Jenkins 5ba04f4335 Merge "Improve flavor sample in notification sample tests" 2017-01-23 15:03:31 +00:00
Matt Riedemann 5ba69008b6 Fix and add some notes to the cells v2 first time setup doc
There was a typo in here about the map_cell0 command creating
a db connection with a _nova suffix when it's actually a _cell0
suffix like in the example, nova_cell0.

This also adds a reminder to sync the API database schema before
running the commands and also gives a warning about being
specific when using map_cell0 and having the databases on different
hosts.

Depends-On: I541b072638b5d50985145391e76f610417fdcaa6

Change-Id: Ibf3355217bbd0139a020de352bb62ff7d973d27b
2017-01-23 11:49:07 +00:00
Jenkins ad78158deb Merge "Amend the PlacementFixture" 2017-01-22 08:21:20 +00:00
OpenStack Proposal Bot 608ba012ce Updated from global requirements
Change-Id: I76ff2ebf5bb49ed0380a073e0e6eb3f43d593056
2017-01-21 15:53:22 +00:00
Jenkins c9eb953031 Merge "[2/3]Replace six.iteritems() with .items()" 2017-01-21 06:55:52 +00:00
Sylvain Bauza bc55e8e37d Amend the PlacementFixture
We recently merged something adding a version argument for the get method of the
SchedulerReportClient. We should add that feature into the PlacementFixture.

Also adding a comment explaining why we need to mock up the report client.

Change-Id: I918b84a0f19d56fe9aa2164c1c7ab679e7535769
2017-01-21 07:47:53 +01:00
Jenkins 777cb642b1 Merge "Updated from global requirements" 2017-01-21 04:06:35 +00:00
Jenkins 09401d4a0f Merge "[py35] Fixes to get more tempest tests working" 2017-01-21 04:05:45 +00:00
Jenkins 78edb82d72 Merge "Add a PlacementFixture" 2017-01-21 01:25:52 +00:00
Jenkins 431d0de19c Merge "Add more details when test_create_delete_server_with_instance_update fails" 2017-01-21 01:24:51 +00:00
Jenkins ea1fb4bbb1 Merge "nova-manage cell_v2 map_cell0 exit 0" 2017-01-21 01:23:56 +00:00
Jenkins fdc150897e Merge "Add ComputeNodeList.get_all_by_uuids method" 2017-01-21 01:23:04 +00:00
Jenkins 72390adaf2 Merge "Add nova-manage cell_v2 delete_cell command" 2017-01-20 21:35:22 +00:00
Jenkins e1a4d0618d Merge "rt: use a single ResourceTracker object instance" 2017-01-20 21:15:54 +00:00
Hironori Shiina f3c774a96b Ironic: Add soft reboot support to ironic driver
This patch gets Ironic virt driver to support soft reboot.

Ironic API supports soft reboot since  API version 1.27. The API
version has already been bumped to 1.28.

Change-Id: I4e61ebf852f61e3c0a511b49f0304d3138ef022e
Implements: blueprint soft-reboot-poweroff
Co-Authored-By: Tang Chen <chen.tang@easystack.cn>
Co-Authored-By: xiexs <xiexs@cn.fujitsu.com>
2017-01-20 21:15:30 +00:00
Francesco Santoro 67868cf7d7 os-vif: convert libvirt driver to use os-vif for fast path vhostuser
Signed-off-by: Francesco Santoro <francesco.santoro@6wind.com>

Change-Id: Iedb00f171bb198c86b843d315154bac5732b0af3
Implements: blueprint libvirt-os-vif-fastpath-vhostuser
2017-01-20 16:08:47 -05:00
Jenkins 32e2654152 Merge "Remove invalid URL in gabbi tests" 2017-01-20 20:48:06 +00:00
Jenkins b08033f5e4 Merge "os-vif-util: set vif_name for vhostuser ovs os-vif port" 2017-01-20 20:47:05 +00:00
Jenkins 6a2c62ddc0 Merge "placement: create aggregate map in report client" 2017-01-20 20:41:30 +00:00
OpenStack Proposal Bot 9385eaff09 Updated from global requirements
Change-Id: I740a7d5e9f1740e2b1d1fbd9cff110fa83741e29
2017-01-20 19:43:54 +00:00
Jenkins 2d035aacbf Merge "Generate necessary network metadata for ironic port groups" 2017-01-20 19:32:39 +00:00
Jenkins 5f5001ded1 Merge "Support Ironic interface attach/detach in nova virt" 2017-01-20 19:27:38 +00:00
Sylvain Bauza 98936fb28f Add a PlacementFixture
Some of the functional tests are calling the scheduler for getting the destination.
Once we will accept having the scheduler be calling the Placement service in order
to know a list of valid resource providers, we will need to run a local fixture
for having those tests faking the Placement service.

Change-Id: I6883888bf5d1920ab57dbf3dcaa1a7b375591754
2017-01-20 17:41:37 +01:00
Jenkins ae753d9628 Merge "Remove mox in nova/tests/unit/compute/test_shelve.py (end)" 2017-01-20 13:59:29 +00:00