summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | | | | | | Merge "Update vol mount smoketest to wait for volume."Jenkins2012-11-141-3/+15
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|/ / / / / / |/| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Update vol mount smoketest to wait for volume.Dan Prince2012-11-121-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the test_003_can_mount_volume smoke test so that it waits for the volume to show up in /proc/partitions for up to 60 seconds before proceeding. This eliminates the need for a hard coded sleep value which can cause intermittent test failures. Change-Id: Ibdc56a00e141211e40068c22fc268efeba6affff
* | | | | | | | | | | | | | | | | Merge "Add DB query to get in-progress migrations."Jenkins2012-11-135-0/+118
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / / / / / / / / / |/| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Add DB query to get in-progress migrations.Brian Elliott2012-11-135-0/+118
| | |_|_|_|_|/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds DB query to get in-progress migrations. This will be needed by resource tracker to get more accurate usage values around inbound and outbound resizes. bug 1065267 Change-Id: Ib111002c70aa16e404c6e2c3fcb4ad234177ce91
* | | | | | | | | | | | | | | | Merge "Try hard shutdown if clean fails on resize down"Jenkins2012-11-131-1/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|/ / |/| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | Try hard shutdown if clean fails on resize downAndrew Laski2012-11-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the xenapi driver, a clean shutdown is attempted before a resize down. If the Xenapi raises an exception it is logged and ignored and the resize will fail later in the process. This adds a hard shutdown attempt if the clean shutdown fails. Change-Id: I458931a19dd2375ad7142d60cb8b6ed274de9483
* | | | | | | | | | | | | | | | Merge "Remove volume.driver and volume.iscsi"Jenkins2012-11-136-1228/+138
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / / / / / / / / |/| | | | | | | | / / / / / / / | | |_|_|_|_|_|_|/ / / / / / / | |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | | Remove volume.driver and volume.iscsiJoe Gordon2012-11-126-1228/+138
| | |/ / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remaining flags moved to nova.virt.libvirt.volume Part of bp delete-nova-volume Change-Id: I1b96c773f0b5df73b04215a4afb350a5583b0101
* | | | | | | | | | | | | | fix LVM backed VM logial volumes can't be deleted.Yaguang Tang2012-11-131-1/+1
| |_|_|_|/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug#1078085. Change-Id: Ib899754002cea28f310b042e5d4a7f89416e031e
* | | | | | | | | | | | | Merge "Upgrade pylint version to 0.26.0"Jenkins2012-11-131-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Upgrade pylint version to 0.26.0Yun Mao2012-11-121-1/+1
| | |_|_|_|_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade pylint to reduce false positives in lintstack. Change-Id: I10ab7a46c6a70daf9151f03cd9fea3c4851e6ebb
* | | | | | | | | | | | | Merge "powervm: failed spawn should raise exception"Jenkins2012-11-132-2/+34
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | powervm: failed spawn should raise exceptionMatt Odden2012-11-092-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes bug #1065295 On a failed spawn instance, we should run our cleanup on the host and then re-raise the exception to inform ComputeManager of a failure Change-Id: Ia9ce8360117e94d10d53278d4c9a16931dea70f2
* | | | | | | | | | | | | | Merge "Imported Translations from Transifex"OpenStack Jenkins2012-11-131-1321/+1264
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Imported Translations from TransifexOpenStack Jenkins2012-11-131-1321/+1264
| | |_|/ / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iabd3c760f635e3dc6bbeed5f0dc6123708a20a00
* | | | | | | | | | | | | | Merge "Remove custom test assertions."Jenkins2012-11-1326-193/+483
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Remove custom test assertions.Monty Taylor2012-11-1026-193/+483
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we testtools, We can use stock testtools assert methods instead of defining our own. As part of removing them, we add Matcher classes to use in the testtools.assertThat method. testtools matchers can be arbitrarily combined and chained, so give more flexibility than plain asserts Related to blueprint grizzly-testtools. Change-Id: I26d1dbac8dc3c322eb55c96c48330c0e38636107
* | | | | | | | | | | | | | | Merge "Add REST API support for list/enable/disable nova services"Jenkins2012-11-137-0/+353
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / / / / / / |/| | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Add REST API support for list/enable/disable nova servicesivan-zhu2012-11-107-0/+353
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements one workitem of blueprint apis-for-nova-manage This adds an extension that provides REST API for list/enable/ disable nova service. The interface ia accessed via GET /v2/{tenant_id}/os-services PUT /v2/{tenant_id}/os-services/enable PUT /v2/{tenant_id}/os-services/disable And the command:nova host-describe have implemented the functionality of nova-manage service describe_resource. So we needn't add a REST API for it. DocImpact Change-Id: I030a7e00b878d7931456e7e323db37b7c47fce48
* | | | | | | | | | | | | | | Merge "make libvirt with Xen more workable"Jenkins2012-11-132-2/+9
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | make libvirt with Xen more workableChristian Berendt2012-11-122-2/+9
| | |_|_|_|/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Xen creates it's own tap devices when using libvirt, unplugging in Nova is not necessary - 'script' should be None for Xen using libvirt with Quantum Linux Bridge Agent - live migration is not working because the libvirt method virConnectCompareCPU is not implemented for Xen Change-Id: Ibb937f75763cb83691a056ca41e244e171499fbb
* | | | | | | | | | | | | | | Merge "Make xenapi shutdown mode explicit"Jenkins2012-11-132-18/+36
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|/ / / / / / / / / | |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | | Make xenapi shutdown mode explicitAndrew Laski2012-11-122-18/+36
| | |_|_|/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split shutdown_vm in the xenapi utilities into two methods with clear names defining their behavior rather than relying on a default argument being passed in. This makes something like the following more clear than it would be currently: if not clean_shutdown_vm(): hard_shutdown_vm() Change-Id: Ia7079197c8b8726c7e2ddc508b301162a02baa1b
* | | | | | | | | | | | | | Merge "Move libvirt specific cgroups setup code out of nova.virt.disk.api"Jenkins2012-11-132-7/+7
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Move libvirt specific cgroups setup code out of nova.virt.disk.apiDaniel P. Berrange2012-11-122-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nova.virt.disk.api module contains code that is generically reusable for any hypervisor. Thus the 'bind' method should not contain Libvirt LXC specific cgroups code Change-Id: I919b74c2c4af8ba05b1005ea93d2164be69612ba Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | | | | | | | | | | | Merge "Use base image for rescue instance."Jenkins2012-11-132-8/+34
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | Use base image for rescue instance.Rick Harris2012-11-122-8/+34
| | |_|/ / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rescue mode was using the instance's current image when building the rescue VM. This is a problem because that image may be broken, hence the need for the rescue operation. Rescue should use the 'base' image instead. Fixes bug 1075701 Change-Id: Ie3e65cc75c4710f7b6391d5111cb096755e600d4
* | | | | | | | | | | | | | | Merge "Let VlanManager keep network's DNS settings."Jenkins2012-11-131-2/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | Let VlanManager keep network's DNS settings.Yuriy Taraday2012-10-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lost piece of https://review.openstack.org/14560 Change-Id: I0376767f66041e2647fc2319ab3b2a339cdf7a19
* | | | | | | | | | | | | | | | Merge "Update uuidutils from openstack common."Jenkins2012-11-131-0/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | Update uuidutils from openstack common.Alex Meade2012-11-121-0/+4
| | |_|_|/ / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I91fe13eb7dda8aa64187ce5a6d2c34dacdc9f1bb
* / | | | | | | | | | | | | | | Clean up __main__ execution from two tests for consistencyZhongyue Luo2012-11-132-8/+0
|/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can run individual tests with nose, and most of the tests in the tree don't include __main__ sections. This patch cleans up the two oddball cases for consistency. Change-Id: I78860e1b651982279944c7cf2caff251b9feee90
* | | | | | | | | | | | | | | Merge "Fix a bug in XenAPISession's use of virtapi"Jenkins2012-11-122-14/+43
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | Fix a bug in XenAPISession's use of virtapiDan Smith2012-11-122-14/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the aggregate_get_by_host() call was moved to virtapi, the XenAPISession's use of it was changed incorrectly. This fixes that, and also adds a test that would have caught it. Change-Id: I13ed36efcb7d285e3a99accb007bb0c263b3179c
* | | | | | | | | | | | | | | | Merge "Ban db import from nova/virt"Jenkins2012-11-127-7/+8
|\| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | Ban db import from nova/virtDan Smith2012-11-127-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes hacking.py complain if someone adds something like: from nova import db into any of the files in nova/virt/* (aside from the fake.py file). It also removes the rest of the dangling db imports that are no longer needed. Yay! Change-Id: Iba3d53b87e65e33a55f8e5033b5d1d33b28d12f7
* | | | | | | | | | | | | | | | Merge "Fix getattr usage"Jenkins2012-11-121-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | Fix getattr usageYun Mao2012-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Class 'object' has no '__getattr__' member as pylint pointed out. Use the getattr function. Change-Id: I38c6075ac477e2fe33870bed64b0e5e986175305
* | | | | | | | | | | | | | | | | Merge "Add missing webob to exc"Jenkins2012-11-121-1/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Add missing webob to excYun Mao2012-11-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of bug 1078062 Change-Id: I05910f6d2dea7af51f1fe35d7efa6006dfef02bf
* | | | | | | | | | | | | | | | | Merge "Rename config to vconfig"Jenkins2012-11-121-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | Rename config to vconfigYun Mao2012-11-121-1/+1
| |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config doesn't have member named LibvirtConfigCPUFeature. Part of bug 1078062 Change-Id: I115f3351b42173a00e2b7d02cb0fc3d76b9eb4e5
* | | | | | | | | | | | | | | | | Merge "Add missing exception NetworkDuplicated"Jenkins2012-11-121-0/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | Add missing exception NetworkDuplicatedYun Mao2012-11-121-0/+4
| |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NetworkDuplicated is missing from nova.exception but used in quantumv2 Part of bug 1078067 Change-Id: I115b6171cc119b62bd2cd8d96420188a6488db54
* | | | | | | | | | | | | | | | | Merge "Fix misuse of exists()"Jenkins2012-11-121-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | Fix misuse of exists()Yun Mao2012-11-121-1/+1
| |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should be os.path.exists not os.exists Part of bug 1078062 Change-Id: I8126c496b3089ab65ce3b8c7fdcd84944b8e259f
* | | | | | | | | | | | | | | | | Merge "Move agent_build_get_by_triple to VirtAPI"Jenkins2012-11-124-2/+21
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | Move agent_build_get_by_triple to VirtAPIDan Smith2012-11-124-2/+21
| |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a method to the VirtAPI for fetching information about the guest agents. It would be nice to avoid having to have this be passed into the virt driver on spawn (and migrate, and resize), but I think that asking the compute manager to guess what the virt driver wants for each of the parameters (or grab them all) is probably no better. Related to bp:no-db-virt Change-Id: I27fb4bd85e6c6bb11e01fb652b199956df88804d
* | | | | | | | | | | | | | | | | Merge "improve session handling around virtual_interfaces"Jenkins2012-11-121-9/+8
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | improve session handling around virtual_interfacesDevananda van der Veen2012-11-111-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | improve session handling around virtual_interface_(get|delete|delete_by_instance) blueprint db-session-cleanup Change-Id: I7ce5a5bb6f079d83d79c1f7ed00994af0af09f1e