Commit Graph

22615 Commits

Author SHA1 Message Date
lawrancejing 0323f5ef45 Update mailmap
Change-Id: I7cc1c069aefca3f61328fa92d7366b5b755febaf
2013-08-18 10:52:51 +08:00
Jenkins a1fe3d7fe9 Merge "Improve performance of driver's get_available_nodes" 2013-08-17 01:57:14 +00:00
Chris Behrens 1094a1cdba Fixup some non-unity-ness to conductor tests
This moves some conductor compute task tests into the test class that
only tests the manager side.  It also removes testing of
scheduler_utils's set_vm_state_and_notify method as that is already
tested separately.

Change-Id: I30bd3897311870b10c8ec65182c81d341a904485
2013-08-16 23:31:47 +00:00
Chris Behrens 3e5a909305 Add scheduler utils unit tests
They were missing... although there is some testing via some conductor
tests that are not completely unit-y.  Those will be adjusted next.

Change-Id: I696dd8ff264fffb3ae015c3ae653c0799c60cecf
2013-08-16 23:31:46 +00:00
Chris Behrens b4ab277145 Convert admin_actions ext tests to unit tests
The tests for the admin_actions API extension (or v3 plugin) are
stubbing out conductor methods, which creates a lot of pain when
compute_api internals are changed.  Convert these tests to unit tests,
checking only that the appropriate compute_api methods are called with
the correct arguments.

Change-Id: I16634efa2397b36afa15b90712bfd678325bc049
2013-08-16 23:31:46 +00:00
Chris Behrens 9ab69dbdec Unit-ify the compute API resize tests
Move resize related compute API tests to test_compute_api and make them
unit tests.  This makes test changes easier when converting to objects.

This also caught a couple things where the cells compute api class was
not in sync that don't really end up being bugs, but need to match for
tests to pass.

Change-Id: I194310beb5e821e4a8262310d1bb80e0747e1c43
2013-08-16 23:31:46 +00:00
Jenkins 871107b12e Merge "Enforce compute:update policy in API" 2013-08-16 23:23:12 +00:00
Jenkins 03355f3bad Merge "Sync gettextutils from oslo-incubator" 2013-08-16 22:17:33 +00:00
Jenkins e72313b337 Merge "Fix cells manager RPC version" 2013-08-16 20:56:38 +00:00
Jenkins 02a3a25bcb Merge "Set launch_index to right value" 2013-08-16 18:40:37 +00:00
Jenkins 1f6c4f5c0f Merge "Remove deprecated CONF.fixed_range" 2013-08-16 16:48:38 +00:00
Jay Lau c8f0a545bf Set launch_index to right value
Fix bug 1212648

When boot multiple instances in one request, the launch_index
was not increased.

The fix was increase the launch_index one by one for each instances
in one request.

Change-Id: I27dde8cfae52853d33277c3d8e0e65c91bc6280b
2013-08-17 00:07:14 +08:00
Joe Gordon f95bc9ba1c Remove deprecated CONF.fixed_range
This was deprecated in Grizzly, and the TODO said remove for Havana.
fixed_range was deprecated in I4ec111079f7a1d253190e6a6008048f992a53f68

DocImpact: Remove deprecated config option

Change-Id: I1f429de7a7091adbd3a178d287b3a90e02664450
2013-08-15 22:42:27 -04:00
Chris Behrens 33fa3fa07b Fix cells manager RPC version
A previous patchset forgot to bump the version to 1.19.

Change-Id: Iecadcdcc4d75b9e9295f216b3375bfbf852a77e3
2013-08-16 00:19:47 +00:00
Jenkins fa575b51ff Merge "Clean up unimplemented methods in the powervm driver" 2013-08-15 22:05:55 +00:00
Jenkins a5b1cb9300 Merge "Remove old legacy network info model in libvirt driver" 2013-08-15 21:37:45 +00:00
Jenkins 2124d1dd32 Merge "Fix typo in exception message" 2013-08-15 20:35:28 +00:00
Jenkins a4a7144c9e Merge "Make compute_capabilities_filter use information from DB not RPC" 2013-08-15 19:25:41 +00:00
Jenkins bfebb360f3 Merge "Make affinity_filters use host_ip from DB not RPC" 2013-08-15 19:25:18 +00:00
Jenkins f1c9e9123c Merge "db: Add host_ip and supported_instances to compute_nodes" 2013-08-15 19:24:56 +00:00
Andrew Laski 42749b7aff Enforce compute:update policy in API
Now that compute/api.py:update() is no longer being called for instance
updates the policy check is no longer enforced.  This adds policy
checking back in at the API level so that the compute:update policy will
continue to function as it did before.

Bug 1212807

Change-Id: I365ad8ac2845d914deefb841c314a50f4869dba0
2013-08-15 15:19:51 -04:00
Jenkins b64a9971d5 Merge "Add supported_instances to get_available_resource to all virt drivers" 2013-08-15 16:14:43 +00:00
Jenkins c85a86e7b4 Merge "Fix bad check for openstack versions (vendor_data/config drive)" 2013-08-15 13:26:44 +00:00
Jenkins 324dc64bed Merge "libvirt: sync get_available_resources and get_host_stats" 2013-08-15 13:22:15 +00:00
Matt Odden fb0364dcc4 Sync gettextutils from oslo-incubator
Partially implements bp user-locale-api

Change-Id: I1a053d9d0ad65ca90cac86196da68900b8fe112d
2013-08-15 05:16:53 +00:00
Matt Odden 83f14d7c67 Fix typo in exception message
fixes bug 1212438

Change-Id: Ib563fc10743600284a385fcbda1967c85182f542
2013-08-15 05:16:53 +00:00
ivan-zhu f953e20622 remove _action_change_password the attribute in V3 server API
There is no implementation of _action_change_password for the
attribute of ActionDeserializer in V3 server API. Get rid of it

fix bug 1209072

Change-Id: I37019811caa71c491c228b99babfcfb34bbaa685
2013-08-14 10:45:00 -04:00
Jenkins 9e9b3328af Merge "Switch to Oslo-Incubator's EnvFilter rootwrap" 2013-08-14 08:03:12 +00:00
Davanum Srinivas 64fe85d526 Fix bad check for openstack versions (vendor_data/config drive)
Looks like the lack of a test case sneaked in this bug. Added a
simple one that just ensures that we can get a list of all the
metadata information. Basic issue was that the check_version
was checking against ec2 versions. Changed it to check OpenStack
version including the 'latest'.

Fixes bug #1211122

Change-Id: Ifac7659467b81abcffd3f84a24292c11f2e058fc
2013-08-14 00:11:01 +00:00
Joe Gordon a4ad62ac9f Make compute_capabilities_filter use information from DB not RPC
Make compute_capabilities_filter directly use the data in host_state and
not the data capabilities data that is currently broadcast from the
schedulers over RPC, as this will be removed since it doesn't scale.

The filter name, compute_capabilities_filter, is kept the same to keep
backwards compatibility.

Once all the capabilities usage in scheduler filters is removed, the
capabilities RPC broadcast can be removed.

Part of bp no-compute-fanout-to-scheduler.

Change-Id: I846259b363a794803e230eaf25c69c52970b6c4f
2013-08-13 16:28:14 -07:00
Joe Gordon 6403c9df58 Make affinity_filters use host_ip from DB not RPC
Instead of using host_ip from capabilities, which are being removed, get the
host_ip from the same place the rest of scheduling information comes
from, the database.

Part of bp no-compute-fanout-to-scheduler

Change-Id: I56a1cbb1903c20b347469d0ee5a8c6d89a21c44e
2013-08-13 16:28:14 -07:00
Joe Gordon 74b024f754 db: Add host_ip and supported_instances to compute_nodes
In order to remove compute capabilities being broadcast via RPC to the
schedulers, host_ip and supported_instances, the two pieces of data the
scheduler uses that aren't in the database today, need to be added.
In the scope of this blueprint, only the way the filters are getting
their data is changed, not how the data is generated or anything else.

host_ip is used by the affinity_filter and supported_instances is used
by image_props_filter.

Part of bp no-compute-fanout-to-scheduler

Change-Id: I72371260159c9fdffcdb57209095fc103b6dd79e
2013-08-13 16:28:14 -07:00
Joe Gordon 986043d464 Add supported_instances to get_available_resource to all virt drivers
Add 'supported_instances' to the function get_available_resource for all
virt drivers (except libvirt which is done separately). This will help
make image_props_filter work without the RPC broadcast capabilities.

Part of bp no-compute-fanout-to-scheduler

Change-Id: If9eee203b3cbb12963dc55e4215d206cb5d81264
2013-08-13 16:27:57 -07:00
Joe Gordon f364e8ebe3 libvirt: sync get_available_resources and get_host_stats
get_available_resources is actually used by the scheduler while
get_host_stats was previously used, and is still used for host
capabilities.  This patch makes get_available_resources and
get_host_stats use the same logic to clean up the code. As part of
making them use the same logic, some of the unused data returned from
get_host_stats is changed to be what get_available_resources expects.
This is also in preparation for removing the periodic RPC fanout from
compute nodes to the scheduler.

This patch cleans up libvirt and fake drivers only.  This is not needed
for other virt backends as this is a cleanup only.  Further cleanup of
libvirt and other drivers will happen after get_host_stats isn't used
for the compute fanout to schedulers.

Because this makes a change to the fake driver, several api samples
needed to be changed as well. The fake driver is changed so the
test_virt_driver tests can continue to be used

Part of bp no-compute-fanout-to-scheduler

Change-Id: I1eec5c117a1cb0490e9f9c09e731909bc31698a9
2013-08-13 14:24:23 -07:00
Jenkins dfde37b553 Merge "Moves compute.rpcapi.prep_resize call to conductor" 2013-08-13 20:17:01 +00:00
Jenkins df906ac5cb Merge "Removed code for modular exponentiation, pow() already does this" 2013-08-13 20:15:44 +00:00
Jenkins e7d7e7a000 Merge "Remove clear_rabbit_queues script" 2013-08-13 18:10:48 +00:00
Matt Riedemann f3d7733009 Clean up unimplemented methods in the powervm driver
There were several methods overridden from the base virt driver class in
the powervm driver but all they did was pass which can cause problems
with tempest, e.g. the tempest test for pausing an instance will timeout
waiting for the instance state to change. This change raises
NotImplementedError rather than passes so that tempest will fail out
quickly when testing something that the powervm driver does not
implement.

Also removes the overridden manage_image_cache method since it didn't do
anything, which is exactly what the base class does.

Added unit tests to make sure that methods which should simply pass do
and that tests which should raise NotImplementedError do that also.

Fixes bug 1205066

Change-Id: Ieaf256a5c0f54804686318d6cbd5877a5003c9eb
2013-08-13 11:10:03 -07:00
Jenkins 87579b67ed Merge "Port "Accept is_public=None .." to v3 tree" 2013-08-13 15:39:51 +00:00
Jenkins c3f3667ba1 Merge "Cleanup exception handling on evacuate" 2013-08-13 14:26:55 +00:00
Jenkins d9c52956f5 Merge "Fix H501: Do not use locals() for string formatting" 2013-08-13 13:51:04 +00:00
Jenkins 7b77052037 Merge "Add option for QEMU Gluster libgfapi support" 2013-08-13 11:51:02 +00:00
Jenkins f6c002c0a8 Merge "maint: remove redundant default=None for config options" 2013-08-13 11:22:11 +00:00
Jenkins 6d3c1e7b94 Merge "Sync models with migrations" 2013-08-13 10:18:11 +00:00
Jenkins c05a493064 Merge "Enforce authenticated connections to libvirt" 2013-08-13 10:05:29 +00:00
Jenkins 5123992652 Merge "Moved tests for server.delete" 2013-08-13 09:55:31 +00:00
Jenkins 319c82892c Merge "Fix leaking of image BDMs" 2013-08-13 09:55:06 +00:00
Jenkins 9e3f37d943 Merge "Fixes typo in __doc__ of /libvirt/blockinfo.py" 2013-08-13 09:46:40 +00:00
Eric Harney 0ea73f198b Add option for QEMU Gluster libgfapi support
If gluster is present in qemu_allowed_storage_drivers, glusterfs's
backend will pass a disk configuration to QEMU. This allows QEMU to
access the volume using libgfapi rather than mounting GlusterFS via
fuse.

Implements blueprint glusterfs-native-support
DocImpact

Co-authored-by: Flavio Percoco <flavio@redhat.com>
Change-Id: I939cac05ee333b77abcaa9bd132d5eb3308e60ff
2013-08-13 11:03:57 +02:00
Jenkins ab6ba21ed6 Merge "Format CIDR strings as per storage" 2013-08-13 05:45:00 +00:00