Commit Graph

36572 Commits

Author SHA1 Message Date
John Hua b97e409dfd xenapi: Support extra tgz images that with only a single VHD
Currently tgz images are supported only when the names of VHD files
within follow the format of "0.vhd, 1.vhd, ... (n-1).vhd" called VDI
chain.

To maximize the range of support, the arbitrary named VHD file could be
renamed to 0.vhd when the tgz image only has a single VHD file.

Change-Id: I01cadf26262b20f1ad5a19e4441b42a0155f5a52
2015-09-07 12:39:01 +00:00
Jenkins 8cf2228ea1 Merge "Cells: remove redundant check if cells are enabled" 2015-09-07 11:56:18 +00:00
Jenkins a897bb9ed0 Merge "API: remove unused parameter" 2015-09-07 11:55:47 +00:00
Jenkins bffdec0f0f Merge "Fix DeprecationWarning when using BaseException.message" 2015-09-07 02:15:15 +00:00
Jenkins e53667c29d Merge "Fix incomplete error message of quota exceeded" 2015-09-06 22:07:30 +00:00
Jenkins f1f799183f Merge "Remove the blacklisted nova-cells shelve tests" 2015-09-06 11:58:28 +00:00
Jenkins 0391a19d0f Merge "Reject the cell name include '!', '.' and '@' for Nova API" 2015-09-06 03:19:28 +00:00
Jenkins ce2da347a9 Merge "Add notes explaining vmware's suds usage" 2015-09-05 07:14:44 +00:00
Jenkins 69bcfc3d3e Merge "Add Instance and InstanceList v2.0 objects" 2015-09-05 01:53:39 +00:00
Jenkins a5ff51d8bf Merge "Teach conductor to do manifest-based object_class_action() things" 2015-09-05 01:53:11 +00:00
Jenkins b893d2114b Merge "Make the conductor fixture use version manifests" 2015-09-05 01:35:12 +00:00
Jenkins 3b333cb2ae Merge "Update objects test infrastructure for multiple versions" 2015-09-05 01:34:44 +00:00
Jenkins 72c1195af8 Merge "Refactor Instance tests to use objects.Instance" 2015-09-05 01:34:17 +00:00
Jenkins a988f844ba Merge "Fix an issue with NovaObjectRegistry hook" 2015-09-05 01:33:49 +00:00
Jenkins 531019ee51 Merge "Pull out the common bits of InstanceList into _BaseInstanceList" 2015-09-05 00:39:27 +00:00
Jenkins 442d2fe203 Merge "Specify current directory using new cwd param in processutils.execute" 2015-09-05 00:25:18 +00:00
Jenkins a7ea0efb63 Merge "Pull out the common bits of Instance into _BaseInstance" 2015-09-04 23:44:56 +00:00
Jenkins 7d0e253454 Merge "Provide working SQLA_VERSION attribute" 2015-09-04 22:50:31 +00:00
Jenkins 236707d40f Merge "Fix Cells gate test by modifying the regressions regex" 2015-09-04 20:55:32 +00:00
Jenkins 2daae57e46 Merge "Hyper-V: Adds HyperVDriver unit tests" 2015-09-04 20:47:46 +00:00
Mike Bayer dd22884311 Provide working SQLA_VERSION attribute
Replace the parsing within test_migration_utils
to use the alphabetic-supporting
version parser approach provided by oslo.db.
Necessary in order to work with
beta / dev versions of SQLAlchemy.

Change-Id: Ib55b6d815649d9212460805acbabdabb72dddeec
References: https://review.openstack.org/#/c/165166/
2015-09-04 17:55:20 +01:00
Sylvain Bauza f45ace1e64 Fix Cells gate test by modifying the regressions regex
Ie4ffd458456d03b0b817b01bbed391f359240db2 changed some TestCases names with
the consequence that those tests were becoming not excluded and consequently
the cells job was failing.

Change-Id: I81ae2918355a02c4e20470a924538d2c7fbafcf6
Closes-Bug: #1492255
2015-09-04 16:24:59 +02:00
Jenkins 02174c3552 Merge "Add migration policy to upgrades devref" 2015-09-04 13:06:16 +00:00
Jenkins ad95c1d439 Merge "Rename tests so that they are run" 2015-09-04 13:05:36 +00:00
Jenkins 02bb28222d Merge "Adds unit tests to test_common.py" 2015-09-04 13:04:40 +00:00
He Jie Xu e5982de3e9 Reject the cell name include '!', '.' and '@' for Nova API
Nova cells use '!', '.' and '@' for routing the instance in cells.
So those special characters can't include in the cell name.

This patch adds '@' validation for v2 API, and adds '!', '.' and '@'
for v2.1 API.

Change-Id: I5cb704a44c2abfb0bfb5b42d4aa8fefe35cc1523
Partial-Bug: #1491511
2015-09-04 13:01:52 +00:00
Jenkins bc0cc457ba Merge "Remove doc/source/api and doc/build before building docs" 2015-09-04 12:55:44 +00:00
Claudiu Belu 38bb88a4ae Hyper-V: Adds HyperVDriver unit tests
The Hyper-V driver oldest tests (test_hypervapi.py) are proving hard to
maintain.

The tests in test_hypervapi.py in particular can also be refactored and
split in separate TestCases, one of each *ops module.

This commit will add unit tests for HyperVDriver, since its code paths
are not covered if we remove test_hypervapi.py.

Change-Id: Ie7cf704f2e76f66768e81315ba88911888327e7a
2015-09-04 05:02:17 -07:00
Jenkins 8c23a50335 Merge "Fix mistake in UT:test_detach_unattached_volume" 2015-09-04 09:31:48 +00:00
Jenkins bf0f4b10cd Merge "[libvirt] Move cleanup of imported files to imagebackend" 2015-09-04 08:03:05 +00:00
Jenkins f003b63689 Merge "Update from global requirements" 2015-09-04 04:46:35 +00:00
Jenkins 5d181e6f8f Merge "Allow to use autodetection of volume device path" 2015-09-04 03:31:09 +00:00
Dan Smith 713d8cb077 Add Instance and InstanceList v2.0 objects
This adds Instance and InstanceList v2.0 and moves v1 compat-related
tests into a separate test subclass.

Note that since services like api and conductor will be sending v2
objects to older computes, this also adds a backport-to-1.x case
to each object for compatibility with kilo computes. Hopefully in the
future we'll be able to avoid needing to do that by capping object
verisons according to the service version. For now, the structure
of instance hasn't diverged enough so this easy approach works.

Related to blueprint liberty-bump-object-and-rpcapi-versions

Change-Id: Icfd2529962c0430761d2424069f0fd60a1b5c260
2015-09-03 19:17:37 -07:00
Dan Smith 452053e8c7 Teach conductor to do manifest-based object_class_action() things
This adds a new object_class_action_versions() handler in conductor, much
like the manifest-aware backport method recently added. Since we back-convert
object results from remotable_classmethod operations, we need to receive
the version manifest there as well. Since oslo.versionedobjects doesn't
currently pass that, we can do a little indirection in our rpcapi to start
calling the new method, gathering the manifest first.

Related to blueprint liberty-bump-object-and-rpcapi-versions

Change-Id: I25751edee551304ec849d7b88e42624970fef45f
2015-09-03 19:17:37 -07:00
Dan Smith 638a807686 Make the conductor fixture use version manifests
This makes the conductor fixture in our tests behave like the real
conductor, and use version manifests for backports.

Related to blueprint liberty-bump-object-and-rpcapi-versions

Change-Id: Id98dc044229413ce086fd7b25d3147f0e394f999
2015-09-03 19:17:37 -07:00
Dan Smith 0b55067ad7 Update objects test infrastructure for multiple versions
This updates the test_objects infrastructure to handle having multiple
major version implementations. Changes:

* The test_versions test will generate fingerprints for all major versions,
  using the latest with its bare name, and appending the major version to
  the class name for alternates.
* Skips testing the relationships mapping for v2.x objects, which will rely
  on version_manifest backports. The tests for the relationship maps will
  go away once we're fully on manifest-based backports.
* Skips v2.x objects in the obj_make_compatible() exhaustive test, which
  will select the newest object versions by default, and then have incorrect
  assumptions about the behavior.

Related to blueprint liberty-bump-object-and-rpcapi-versions

Change-Id: Id315e75cc9d5f5de7f3b6e4c7daa3705933b4d21
2015-09-03 19:17:37 -07:00
Dan Smith 8488d5fe68 Refactor Instance tests to use objects.Instance
This is a precursor to testing Instance V1 and V2. It changes the
direct reference made by the Instance unit tests to use objects.Instance,
which we can use to toggle between versions.

Related to blueprint liberty-bump-object-and-rpcapi-versions

Change-Id: I28ae51b21af42f8c8853e5dc76b7ba0479456063
2015-09-03 19:17:25 -07:00
Dan Smith feb7ac0dd1 Fix an issue with NovaObjectRegistry hook
Due to the order in which the registration hook is called from
oslo.versionedobjects' registration handler, our existing method
does not always make the proper decision when multiple versions of
the same object are registered. This is actually a bug in o.vo,
but we can rewrite our method to be more deterministic such that
it works now, and after we fix the ordering thing in o.vo.

This patch makes it set objects.OBJECT if the new class being
registered is newer, instead of being based on the order of the
classes in the registry at the time the hook is called.

Change-Id: Ic1f9bf5115d72244e317c8fe908aa720e7f9a1a3
2015-09-03 19:09:19 -07:00
Dan Smith fa72d3dd28 Pull out the common bits of InstanceList into _BaseInstanceList
This is preparing for InstanceList v2.0 and is kept separate to prove
that tests continue to pass before and after this split.

Related to blueprint liberty-bump-object-and-rpcapi-versions

Change-Id: I22fb15440aca9c5c47d718f36997ddd4b7c0c2ee
2015-09-03 19:09:16 -07:00
Dan Smith 03f732e319 Pull out the common bits of Instance into _BaseInstance
This is preparing for Instance v2.0 and is kept separate to prove
that tests continue to pass before and after this split.

Related to blueprint liberty-bump-object-and-rpcapi-versions

Change-Id: I0edd4945aa226b7d0fc30d46a5c51ca61b9b545f
2015-09-03 19:00:24 -07:00
Jenkins e2d56ab8d1 Merge "Add JSON-Schema note to api_plugins.rst" 2015-09-04 01:31:43 +00:00
Jenkins 89ac7fefdc Merge "Fix API directories on the doc" 2015-09-04 01:30:28 +00:00
Jenkins 9090cd21eb Merge "Adds instance_uuid index for instance_system_metadata" 2015-09-04 01:29:21 +00:00
Jenkins 3f0c42325a Merge "objects: Hook migration object into Instance" 2015-09-04 00:31:20 +00:00
Jenkins dd4791466e Merge "Add secgroup param checks for Neutron" 2015-09-04 00:30:30 +00:00
Jenkins 6463936e12 Merge "filter pre_assigned_dev_names when finding disk dev" 2015-09-04 00:29:49 +00:00
Jenkins 40552ad47b Merge "Fix permission issue of server group API" 2015-09-04 00:28:56 +00:00
Jenkins 2ea2fb033e Merge "libvirt: enable live migration with serial console" 2015-09-04 00:28:27 +00:00
Jenkins 3093013810 Merge "Neutron: Check port binding status" 2015-09-04 00:27:44 +00:00
Jenkins c08c7c387c Merge "hyperv: convert driver to use nova.objects.ImageMeta" 2015-09-03 22:32:52 +00:00