]> xenbits.xensource.com Git - osstest/openstack-nova.git/log
osstest/openstack-nova.git
13 years agoRe-run nova-manage under sudo if unable to read conffile
Soren Hansen [Fri, 3 Feb 2012 23:02:41 +0000 (00:02 +0100)]
Re-run nova-manage under sudo if unable to read conffile

Having to manually sudo to the nova user to make things work is
tedious. Make it so that if we can't read the conffile, we just
re-exec under sudo.

Fixes bug 805695

Change-Id: I322cece80ca757c69147fb3f8474ad137d9bff82

13 years agoMerge "Provides flag override for vlan interface"
Jenkins [Fri, 3 Feb 2012 23:09:13 +0000 (23:09 +0000)]
Merge "Provides flag override for vlan interface"

13 years agoX_USER is deprecated in favor of X_USER_ID
Mark Washenberger [Fri, 3 Feb 2012 22:31:35 +0000 (17:31 -0500)]
X_USER is deprecated in favor of X_USER_ID

Addressed bug 926372

Eventually, we should stop supporting X_USER because it is *supposed* to
be the user's login name rather than their id. But this change preserves
the old behavior for stability.

For more info checkout keystone/middleware/auth_token.py in the keystone
project.

Change-Id: Ie837e73f9a592a903af71a426e202f8b6a9ac581

13 years agoMerge "Move cfg to nova.openstack.common"
Jenkins [Fri, 3 Feb 2012 19:50:45 +0000 (19:50 +0000)]
Merge "Move cfg to nova.openstack.common"

13 years agoMerge "Remove duplicate instances_path option"
Jenkins [Fri, 3 Feb 2012 19:38:00 +0000 (19:38 +0000)]
Merge "Remove duplicate instances_path option"

13 years agoMove cfg to nova.openstack.common
Mark McLoughlin [Fri, 3 Feb 2012 00:50:58 +0000 (00:50 +0000)]
Move cfg to nova.openstack.common

Move it here so that it can be kept in sync with openstack-common using
the new update.py script for code in openstack-common's incubation area.

See here for more details:

  http://wiki.openstack.org/CommonLibrary#Incubation

Note: this commit just moves the existing code in Nova with no other
changes. A subsequent commit will sync it with latest openstack-common
so that it is easier see the new changes.

Change-Id: If88d678b1b9bad3d37117de7f7159d7fea8ab4c8

13 years agoUse Keystone Extension Syntax for EC2 Creds
Ziad Sawalha [Tue, 24 Jan 2012 19:03:32 +0000 (13:03 -0600)]
Use Keystone Extension Syntax for EC2 Creds

- Syntax is OS-KSEC2:ec2Credentials (not ec2Credentials)
- adds to fix for bug 917408
- Syntax also requires a call to /tokens instead of /ec2tokens
- Changes are compatible (old syntax supported)
- Warning will be issued to log if URL syntax is old

Change-Id: I5ff9d1643122de2f383517e60f15852720c54490

13 years agoRemove duplicate instances_path option
Mark McLoughlin [Fri, 3 Feb 2012 19:14:09 +0000 (19:14 +0000)]
Remove duplicate instances_path option

Change-Id: Ic5b4fd0fd5360ca6f9d029e8eb4d751a3ea36262

13 years agoMerge "Delete swap VDI if not used"
Jenkins [Fri, 3 Feb 2012 18:51:28 +0000 (18:51 +0000)]
Merge "Delete swap VDI if not used"

13 years agoMerge "Raise ApiError in response to InstanceTypeNotFound"
Jenkins [Fri, 3 Feb 2012 18:37:28 +0000 (18:37 +0000)]
Merge "Raise ApiError in response to InstanceTypeNotFound"

13 years agoDelete swap VDI if not used
Johannes Erdfelt [Fri, 3 Feb 2012 18:03:39 +0000 (18:03 +0000)]
Delete swap VDI if not used

Fixes bug 889196

Change-Id: I08f4484310c5a35e62ca761193790a464ad15ac9

13 years agoMerge "Fix bug #924093"
Jenkins [Fri, 3 Feb 2012 17:15:36 +0000 (17:15 +0000)]
Merge "Fix bug #924093"

13 years agoMerge "Make sure tenant_id is populated"
Jenkins [Fri, 3 Feb 2012 16:54:23 +0000 (16:54 +0000)]
Merge "Make sure tenant_id is populated"

13 years agoRaise ApiError in response to InstanceTypeNotFound
Maru Newby [Thu, 2 Feb 2012 20:52:10 +0000 (12:52 -0800)]
Raise ApiError in response to InstanceTypeNotFound

 * Updates methods in nova.compute.instance_types to catch
   InstanceTypeNotFound exceptions and re-raise them as ApiError.
   - Previously, the methods in instance_types were raising ApiError in
     response to DBError, but the underlying db calls have since been
     updated to detect empty results and throw more specific exceptions.
 * Updates get_instance_type_by_flavor_id to not try to catch DBError,
   as the underlying db call only ever raises FlavorNotFound.
   get_instance_type_by_flavor_id should not raise ApiError, as callers
   expect the FlavorNotFound exception and know how to handle it.
 * Fixes bug 872618

Change-Id: I8652f04889adb448017afd253ecdcc840fbb660f

13 years agoMerge "blueprint nova-image-cache-management phase1"
Jenkins [Fri, 3 Feb 2012 06:10:30 +0000 (06:10 +0000)]
Merge "blueprint nova-image-cache-management phase1"

13 years agoFix bug #924093
masumotok [Tue, 31 Jan 2012 02:04:18 +0000 (11:04 +0900)]
Fix bug #924093

Change-Id: If014165a630c3722eae26bf2aa1e5d137f145815

13 years agoMake sure tenant_id is populated
Brad Hall [Fri, 3 Feb 2012 01:10:24 +0000 (17:10 -0800)]
Make sure tenant_id is populated

Change-Id: Ic2dfa06d3a3bef2f63e011629a870903b5990363

13 years agoFix for bug 883310
Mandell Degerness [Fri, 3 Feb 2012 00:01:29 +0000 (00:01 +0000)]
Fix for bug 883310

Don't throw exception when flavor has vcpus=0 or memory_mb=0

Change-Id: I6f12cf06a569b491f537880afe37f2cf516be2d2

13 years agoMerge "Make crypto use absolute imports"
Jenkins [Thu, 2 Feb 2012 23:40:58 +0000 (23:40 +0000)]
Merge "Make crypto use absolute imports"

13 years agoMerge "Remove duplicate logging_debug_format option"
Jenkins [Thu, 2 Feb 2012 23:31:15 +0000 (23:31 +0000)]
Merge "Remove duplicate logging_debug_format option"

13 years agoMake crypto use absolute imports
Vishvananda Ishaya [Thu, 2 Feb 2012 23:24:34 +0000 (15:24 -0800)]
Make crypto use absolute imports

 * Fixes bug 925792
 * Cleans up some extra imports as well

Change-Id: Ibea2411f552747e074c8d2e96468e3b09bf9c9c9

13 years agoMerge "fix stale libvirt images on download failure. Bug 801412"
Jenkins [Thu, 2 Feb 2012 23:14:31 +0000 (23:14 +0000)]
Merge "fix stale libvirt images on download failure. Bug 801412"

13 years agoRemove duplicate logging_debug_format option
Mark McLoughlin [Thu, 2 Feb 2012 23:08:48 +0000 (23:08 +0000)]
Remove duplicate logging_debug_format option

Looks like it was accidentally added by commit 605c22b18.

Change-Id: Ibfd16e47cea3fa549f3a6064076361098ba76dd6

13 years agoMerge "Add comments to injected keys and network config"
Jenkins [Thu, 2 Feb 2012 23:06:19 +0000 (23:06 +0000)]
Merge "Add comments to injected keys and network config"

13 years agoMerge "remove auto fsck feature from file injection. Bug 826794"
Jenkins [Thu, 2 Feb 2012 22:58:23 +0000 (22:58 +0000)]
Merge "remove auto fsck feature from file injection. Bug 826794"

13 years agoblueprint nova-image-cache-management phase1
Michael Still [Mon, 9 Jan 2012 07:21:57 +0000 (18:21 +1100)]
blueprint nova-image-cache-management phase1

Phase 1 of the image-cache-management blueprint. Implement
checksumming and verification of base images, as well as
removal of base images which are not in use. Removal is
enabled with a flag.

Change-Id: Ib04a02075a103c2fef6716fd0ac87c41a3535d37

13 years agoMerge "Set rescue instance hostnames appropriately."
Jenkins [Thu, 2 Feb 2012 22:50:40 +0000 (22:50 +0000)]
Merge "Set rescue instance hostnames appropriately."

13 years agoMerge "Throw an user error on creating duplicate keypairs Fixes bug 902162"
Jenkins [Thu, 2 Feb 2012 22:38:25 +0000 (22:38 +0000)]
Merge "Throw an user error on creating duplicate keypairs Fixes bug 902162"

13 years agoMerge "Remove hard coded m1.tiny behavior."
Jenkins [Thu, 2 Feb 2012 22:31:05 +0000 (22:31 +0000)]
Merge "Remove hard coded m1.tiny behavior."

13 years agoSet rescue instance hostnames appropriately.
Josh Kearney [Thu, 2 Feb 2012 21:19:36 +0000 (15:19 -0600)]
Set rescue instance hostnames appropriately.

Fixes bug 920605.

Change-Id: Iedba7d727fb88d169cc5ca6387ef13345d227c48

13 years agoThrow an user error on creating duplicate keypairs
Nirmal Ranganathan [Thu, 2 Feb 2012 20:19:57 +0000 (14:19 -0600)]
Throw an user error on creating duplicate keypairs
Fixes bug 902162

Change-Id: I1b73943aab338bde90b4d47bc015964e9981af5d

13 years agoFixes uuid lookup in virtual interfaces extension
Vishvananda Ishaya [Thu, 2 Feb 2012 21:04:29 +0000 (13:04 -0800)]
Fixes uuid lookup in virtual interfaces extension

 * Makes virtual interfaces get the instance and pass it to network.api
 * Sends the id from the instance when looking up vifs
 * Repairs the tests
 * Fixes bug 925682

Change-Id: If25514246f30bfc983f26f7a8f1c35f33f8b9cc4

13 years agoAdd comments to injected keys and network config
Brian Waldon [Thu, 2 Feb 2012 20:06:38 +0000 (12:06 -0800)]
Add comments to injected keys and network config

Fixes bug 754950

Change-Id: Ib773479c3b34b9ddd322abd02b297acf5359a847

13 years agoRemove hard coded m1.tiny behavior.
Mandell Degerness [Thu, 2 Feb 2012 18:46:50 +0000 (18:46 +0000)]
Remove hard coded m1.tiny behavior.

It makes more sense to only care about local_gb.

Fixes bug # 851301

Change-Id: I13236020975be8643b227fc2700f2ecefffa5eb7

13 years agoMerge "Capture bandwidth usage data before resize."
Jenkins [Thu, 2 Feb 2012 20:09:03 +0000 (20:09 +0000)]
Merge "Capture bandwidth usage data before resize."

13 years agoFix disassociation of fixed IPs when using FlatManager
Johannes Erdfelt [Thu, 2 Feb 2012 19:24:03 +0000 (19:24 +0000)]
Fix disassociation of fixed IPs when using FlatManager

Fixes bug 925664

The model was disassociated from instance, but the code wasn't updated to
use instance_id instead

Change-Id: I532bd1f0f1d89353b6353215e80b74e9a14d989d

13 years agoMerge "DRYing up Volume/Compute APIRouters"
Jenkins [Thu, 2 Feb 2012 19:05:48 +0000 (19:05 +0000)]
Merge "DRYing up Volume/Compute APIRouters"

13 years agoProvides flag override for vlan interface
Vishvananda Ishaya [Thu, 2 Feb 2012 18:59:43 +0000 (10:59 -0800)]
Provides flag override for vlan interface

This means you can have your vlan_interface be different on
different hosts machines by setting vlan_interface differently
on each host.

 * Allow non-homogenous vlan networks
 * Fixes bug 833426
 * Includes failing test for linux_net

Change-Id: I2f0d43c1366f88a8832a779c4065b37dd1a5bdf8

13 years agoremove auto fsck feature from file injection. Bug 826794
Pádraig Brady [Thu, 2 Feb 2012 18:16:02 +0000 (18:16 +0000)]
remove auto fsck feature from file injection. Bug 826794

This is at least independent of file injection,
and as noted in the bug report is questionable
to do anyway.

Change-Id: Iddd33c446bad2232ea2d47cc30778228d1d222b0

13 years agoMerge "Don't block forever for rpc.(multi)call response."
Jenkins [Thu, 2 Feb 2012 18:58:22 +0000 (18:58 +0000)]
Merge "Don't block forever for rpc.(multi)call response."

13 years agoMerge "Get rid of DeprecationWarning during db migration"
Jenkins [Thu, 2 Feb 2012 18:40:38 +0000 (18:40 +0000)]
Merge "Get rid of DeprecationWarning during db migration"

13 years agoDRYing up Volume/Compute APIRouters
Rick Harris [Wed, 1 Feb 2012 21:20:45 +0000 (21:20 +0000)]
DRYing up Volume/Compute APIRouters

Fixes bug 925102

Change-Id: I4ad3f95bec606ef1767d120b94e5fd03f16a7d3e

13 years agoExcise M2Crypto!
Brian Waldon [Wed, 1 Feb 2012 04:50:48 +0000 (20:50 -0800)]
Excise M2Crypto!

This required rewriting our Diffie-Hellman-Merkle implementation for
set_admin_password in xen. Fixes bug 917851.

Change-Id: Ic4cdcc06221f003aec2dcd5ba05a1a9ad19d39c9

13 years agoAdd missing dev. Fixes LP: #925607
Chuck Short [Thu, 2 Feb 2012 17:46:37 +0000 (12:46 -0500)]
Add missing dev. Fixes LP: #925607

Change-Id: I051bb489c2eb82fbf2d16147cb68774917a3eef5
Signed-off-by: Chuck Short <chuck.short@canonical.com>
13 years agoCapture bandwidth usage data before resize.
Monsyne Dragon [Wed, 1 Feb 2012 00:02:03 +0000 (00:02 +0000)]
Capture bandwidth usage data before resize.

Since resize is really a migrate, we need to capture usage data before resizing.
This fixes bug 925587

Change-Id: I999cb0e7c6b17beff542dddb4be09235e83313f0

13 years agoMerge "Optionally disable file locking."
Jenkins [Thu, 2 Feb 2012 17:31:16 +0000 (17:31 +0000)]
Merge "Optionally disable file locking."

13 years agoGet rid of DeprecationWarning during db migration
Thierry Carrez [Thu, 2 Feb 2012 17:13:34 +0000 (18:13 +0100)]
Get rid of DeprecationWarning during db migration

Use proper syntax to rename column, which avoids printing
silly warnings and future deprecation issues.
Fixes bug 854163.

Change-Id: I7897b6bd15043ff1c3a5688b9ee775b33a0b0c22

13 years agoDon't block forever for rpc.(multi)call response.
Russell Bryant [Wed, 1 Feb 2012 16:32:35 +0000 (11:32 -0500)]
Don't block forever for rpc.(multi)call response.

Fix bug 843200.

This patch adds a timeout for waiting for a response from rpc.call or
rpc.multicall instead of blocking for forever.

Change-Id: I5675597c7e9f3d55170837859ec516cb1c806ca3

13 years agoMerge "Avoid weird test error when mox is missing"
Jenkins [Thu, 2 Feb 2012 16:47:02 +0000 (16:47 +0000)]
Merge "Avoid weird test error when mox is missing"

13 years agoOptionally disable file locking.
Mark Washenberger [Thu, 2 Feb 2012 16:38:25 +0000 (11:38 -0500)]
Optionally disable file locking.

File locks in nova have a bad habit of lingering if the process that
created them is killed, and there isn't a good automated way to fix this
behavior. This option allows a deployer to avoid the problem if they
know they are only running a single nova process on a machine.

Change-Id: I1ae20cc54a4614b200093ffd581d3ab21d7c241b

13 years agoMerge "cleanup test case to use integers not strings"
Jenkins [Thu, 2 Feb 2012 16:32:42 +0000 (16:32 +0000)]
Merge "cleanup test case to use integers not strings"

13 years agoAvoid weird test error when mox is missing
Thierry Carrez [Thu, 2 Feb 2012 16:26:30 +0000 (17:26 +0100)]
Avoid weird test error when mox is missing

Fail early if you can't import mox, rather than return
a cryptic and undecipherable error. Fixes bug 810424.

Change-Id: Ie56d3e7447bbba841fdc882cb1f8f70e234812ef

13 years agoMerge "Fix admin password skip check."
Jenkins [Thu, 2 Feb 2012 15:24:12 +0000 (15:24 +0000)]
Merge "Fix admin password skip check."

13 years agofix stale libvirt images on download failure. Bug 801412
Pádraig Brady [Thu, 2 Feb 2012 14:56:54 +0000 (14:56 +0000)]
fix stale libvirt images on download failure. Bug 801412

If we've just truncated/created the file to receive
the download, but the download fails, then delete the file.
Otherwise subsequent downloads would not be attempted.

Change-Id: Ibe9ba199b2f424d570ce7aedfb768ce283816a3b

13 years agocleanup test case to use integers not strings
Pádraig Brady [Thu, 2 Feb 2012 12:00:01 +0000 (12:00 +0000)]
cleanup test case to use integers not strings

These fields are integers, so to avoid confusion
while grepping the source for example, make them
consistently integers

Change-Id: Iea4496532de89a8d67e141fe4ec1ac65f5d0676d

13 years agoMerge "Respect availability_zone parameter in nova api"
Jenkins [Thu, 2 Feb 2012 07:57:54 +0000 (07:57 +0000)]
Merge "Respect availability_zone parameter in nova api"

13 years agoMerge "Support file injection on boot w/ Libvirt"
Jenkins [Thu, 2 Feb 2012 07:11:07 +0000 (07:11 +0000)]
Merge "Support file injection on boot w/ Libvirt"

13 years agoRespect availability_zone parameter in nova api
Hengqing Hu [Sat, 14 Jan 2012 13:33:51 +0000 (21:33 +0800)]
Respect availability_zone parameter in nova api

Fix bug #890209

Include patch from Vladimir@launchpad with little modification.

Accept availability_zone parameter during volume creation in both ec2 and os api.

Add availability_zone test cases for both ec2 and os api.

Move volume test stubs in fakes module for os api test cases.

Use ec2 api's way to handle instance lazy load problem in os api.

Change-Id: I32c3be91906e03ef6c50a028a7b00057678c7609

13 years agoFix admin password skip check.
Dan Prince [Thu, 2 Feb 2012 01:50:51 +0000 (20:50 -0500)]
Fix admin password skip check.

Skip admin password configuration only if the agent 'version' is
empty. Previously both the 'version' and 'agent_build' were
required to be set.

As the 'agent_build' table is primarily used for upgrades
there should be no requirement that a record exist in order
to configure admin passwords.

Fixes LP Bug #925237.

Change-Id: Ie4530a30ed02f3d49a07037e9d1cc52ef0af1dd4

13 years agoMerge "Add support for pluggable l3 backends"
Jenkins [Thu, 2 Feb 2012 00:50:14 +0000 (00:50 +0000)]
Merge "Add support for pluggable l3 backends"

13 years agoMerge "Make parsing of usage stats from XS more robust."
Jenkins [Thu, 2 Feb 2012 00:42:31 +0000 (00:42 +0000)]
Merge "Make parsing of usage stats from XS more robust."

13 years agoMerge "Support custom routes for extensions."
Jenkins [Thu, 2 Feb 2012 00:30:47 +0000 (00:30 +0000)]
Merge "Support custom routes for extensions."

13 years agoMerge "Add 'all_tenants' filter to GET /servers."
Jenkins [Thu, 2 Feb 2012 00:01:58 +0000 (00:01 +0000)]
Merge "Add 'all_tenants' filter to GET /servers."

13 years agoMerge "Fixing a rebuild race condition bug."
Jenkins [Wed, 1 Feb 2012 23:55:51 +0000 (23:55 +0000)]
Merge "Fixing a rebuild race condition bug."

13 years agoMerge "Optionally pass a instance uuid to log methods."
Jenkins [Wed, 1 Feb 2012 23:54:36 +0000 (23:54 +0000)]
Merge "Optionally pass a instance uuid to log methods."

13 years agoMerge "Remove Hyper-V support"
Jenkins [Wed, 1 Feb 2012 23:47:11 +0000 (23:47 +0000)]
Merge "Remove Hyper-V support"

13 years agoAdd support for pluggable l3 backends
Brad Hall [Sat, 21 Jan 2012 01:25:08 +0000 (17:25 -0800)]
Add support for pluggable l3 backends

This will allow us to support backends other than linux_net (i.e.
quantum L3 when it is available) for defining L3 connectivity.

Change-Id: I0b2ece2278bd68166741107a88cedd106d1ab651

13 years agoMerge "Improve dom0 and template VM avoidance."
Jenkins [Wed, 1 Feb 2012 23:35:44 +0000 (23:35 +0000)]
Merge "Improve dom0 and template VM avoidance."

13 years agoMerge "Fix logging to log correct filename and line numbers"
Jenkins [Wed, 1 Feb 2012 22:59:51 +0000 (22:59 +0000)]
Merge "Fix logging to log correct filename and line numbers"

13 years agoMerge "Fix multinode libvirt volume attachment lp #922232"
Jenkins [Wed, 1 Feb 2012 22:45:32 +0000 (22:45 +0000)]
Merge "Fix multinode libvirt volume attachment lp #922232"

13 years agoMerge "Bug #923865: (xenapi driver)instance creation fails if no guest agent is avaia...
Jenkins [Wed, 1 Feb 2012 22:01:08 +0000 (22:01 +0000)]
Merge "Bug #923865: (xenapi driver)instance creation fails if no guest agent is avaiable for admin password configuration"

13 years agoMerge "Fix VPN ping packet length."
Jenkins [Wed, 1 Feb 2012 21:49:49 +0000 (21:49 +0000)]
Merge "Fix VPN ping packet length."

13 years agoImprove dom0 and template VM avoidance.
Rick Harris [Wed, 1 Feb 2012 21:41:38 +0000 (21:41 +0000)]
Improve dom0 and template VM avoidance.

Fixes bug 920588

Change-Id: Ia19f6e99faceba75af509699a5601f87218671ed

13 years agoRemove Hyper-V support
Soren Hansen [Wed, 1 Feb 2012 17:10:39 +0000 (18:10 +0100)]
Remove Hyper-V support

HyperV has been unmaintained for several releases now. The unit tests
are superficial, we have no way to test it, noone has stepped forward
to maintain it, and for a very long time, we've not had any reports that
it works. Furthermore, many improvements have been made across other
hypervisor drivers that have not been done in the HyperV driver, so even
if it worked, it would only expose a subset of the functionality that
the other drivers do.

Implements blueprint hypervsectomy.

Change-Id: I3160915816a305d7d6bc34790f9deac459b562a9

13 years agoMerge "bug 921087: i18n-key and local-storage hard-coded in xenapi"
Jenkins [Wed, 1 Feb 2012 21:25:18 +0000 (21:25 +0000)]
Merge "bug 921087: i18n-key and local-storage hard-coded in xenapi"

13 years agoMerge "Empty connection pool after test_kombu."
Jenkins [Wed, 1 Feb 2012 21:13:50 +0000 (21:13 +0000)]
Merge "Empty connection pool after test_kombu."

13 years agoMerge "Use name filter in GlanceImageService show_by_name"
Jenkins [Wed, 1 Feb 2012 21:12:40 +0000 (21:12 +0000)]
Merge "Use name filter in GlanceImageService show_by_name"

13 years agoFix logging to log correct filename and line numbers
Alex Meade [Wed, 1 Feb 2012 20:35:50 +0000 (20:35 +0000)]
Fix logging to log correct filename and line numbers

Fixes bug 920809.

Change-Id: I192159efbb8d678d1e1071b18233d19ebcd7198b

13 years agoMerge "Clear out RPC connection pool before exit."
Jenkins [Wed, 1 Feb 2012 21:00:54 +0000 (21:00 +0000)]
Merge "Clear out RPC connection pool before exit."

13 years agoSupport custom routes for extensions.
Rick Harris [Fri, 27 Jan 2012 05:16:47 +0000 (05:16 +0000)]
Support custom routes for extensions.

Fixes bug 923983

Change-Id: Id4673a2ff58d2d94627e5878fed68bcecd9be7a4

13 years agoMake parsing of usage stats from XS more robust.
Monsyne Dragon [Tue, 31 Jan 2012 21:22:22 +0000 (21:22 +0000)]
Make parsing of usage stats from XS more robust.

Better handle odd values in parsing of usage data from xenserver.
Fixes bug 918490

Change-Id: Ie634ba6a740d0ea098d7fc4e13b4b46b5203ce79

13 years agoMerge "lockfile.FileLock already appends .lock"
Jenkins [Wed, 1 Feb 2012 20:42:33 +0000 (20:42 +0000)]
Merge "lockfile.FileLock already appends .lock"

13 years agoMerge "Ties quantum, melange, and nova network model"
Jenkins [Wed, 1 Feb 2012 20:16:03 +0000 (20:16 +0000)]
Merge "Ties quantum, melange, and nova network model"

13 years agolockfile.FileLock already appends .lock
Johannes Erdfelt [Wed, 1 Feb 2012 19:20:38 +0000 (19:20 +0000)]
lockfile.FileLock already appends .lock

Otherwise you end up with files like nova-iptables.lock.lock

Change-Id: Ia7dd82c3721f89d438c1266e7ec3535a0d89334e

13 years agoMerge "Instances to be created with a bookmark link"
Jenkins [Wed, 1 Feb 2012 19:54:19 +0000 (19:54 +0000)]
Merge "Instances to be created with a bookmark link"

13 years agoMerge "optimize libvirt raw image handling. Bug 924970"
Jenkins [Wed, 1 Feb 2012 19:43:11 +0000 (19:43 +0000)]
Merge "optimize libvirt raw image handling. Bug 924970"

13 years agoTies quantum, melange, and nova network model
Trey Morris [Mon, 9 Jan 2012 17:52:53 +0000 (11:52 -0600)]
Ties quantum, melange, and nova network model

get_instance_nw_info() now returns network model, and keeps the network
info cache up to date.
virt shim and translation in place for virts to get at the old stuff

Change-Id: I070ea7d8564af6c644059d1c209542d250d19ddb

13 years agoMerge "remove unsupported ec2 extensions"
Jenkins [Wed, 1 Feb 2012 19:08:03 +0000 (19:08 +0000)]
Merge "remove unsupported ec2 extensions"

13 years agoMerge "Make sure multiple calls to _get_session() aren't nested"
Jenkins [Wed, 1 Feb 2012 18:56:46 +0000 (18:56 +0000)]
Merge "Make sure multiple calls to _get_session() aren't nested"

13 years agoMerge "Correct checking existence of security group rule"
Jenkins [Wed, 1 Feb 2012 18:45:40 +0000 (18:45 +0000)]
Merge "Correct checking existence of security group rule"

13 years agoMerge "Add mkswap to rootwrap"
Jenkins [Wed, 1 Feb 2012 18:35:01 +0000 (18:35 +0000)]
Merge "Add mkswap to rootwrap"

13 years agoMake sure multiple calls to _get_session() aren't nested
Johannes Erdfelt [Wed, 1 Feb 2012 17:07:16 +0000 (17:07 +0000)]
Make sure multiple calls to _get_session() aren't nested

Fixes bug 924918

async_call_plugin() acquires a xenapi session as does the nested call to
get_xenapi_host(). This can cause a deadlock if multiple greenthreads
all block waiting for the outer sessions to be freed to allocate the
inner session. This change moves the call to get_xenapi_host() to outside
the with statement to ensure calls to _get_session() aren't nested.

Change-Id: I8f5490f40a9ccaf74a276187f66519a5d5f52b2e

13 years agobug 921087: i18n-key and local-storage hard-coded in xenapi
Armando Migliaccio [Wed, 25 Jan 2012 00:35:34 +0000 (00:35 +0000)]
bug 921087: i18n-key and local-storage hard-coded in xenapi

This fix introduces a new flag 'sr_matching_filter', whose default value is
'other-config:i18n-key=local-storage'. This filter is used for finding the
SR on which to install guest instances. The default value is the Local
Storage in default XenServer/XCP installations, and it is what was hard-coded
so far.

To select an SR with a different matching criteria, this flag can be set
to 'other-config:my_favorite_sr=true'. On the other hand, to fall back on
the Default SR, as displayed by XenCenter and as returned by
xenapi.pool.get_default_SR, this flag can be set to to 'default-sr:true'.

This changeset also makes a small code simplification along the way.

Change-Id: Ia5ee438389c59a5ef0b858e8548643d57ef16c77

13 years agoMerge "Fix broken devref docs."
Jenkins [Wed, 1 Feb 2012 17:56:37 +0000 (17:56 +0000)]
Merge "Fix broken devref docs."

13 years agoMerge "fixed bug 920856"
Jenkins [Wed, 1 Feb 2012 17:22:42 +0000 (17:22 +0000)]
Merge "fixed bug 920856"

13 years agoMerge "Expand policies for admin_actions extension"
Jenkins [Wed, 1 Feb 2012 17:18:00 +0000 (17:18 +0000)]
Merge "Expand policies for admin_actions extension"

13 years agooptimize libvirt raw image handling. Bug 924970
Pádraig Brady [Tue, 31 Jan 2012 23:46:42 +0000 (23:46 +0000)]
optimize libvirt raw image handling. Bug 924970

Tests were seen to time-out on libvirt when raw images were
used, which was due to large disk images being copied around
inefficiently.  A system with standard disks was seen to take
an extra 60s/10G which was a problem with large root and
ephemeral disks.  The changes below attempt to minimize the
I/O in dealing with cached raw images.  These changes should
also help to minimize the disk space used for such images,
by avoiding the naïve copy which undoes the sparseness.

* nova/virt/libvirt/connection.py (_cache_image): Do the
resize here, rather than in _fetch_image(), so that we
can control when the resizing is done, to minimize the
amount of data that needs to be copied.  Also if we're
generating rather than fetching the image, then just
generate in the instance dir too, as this should be faster.
* nova/tests/fake_libvirt_utils.py: Remove the resize
functionality since it's no longer used.
* nova/tests/test_libvirt.py: Likewise.
* nova/virt/libvirt/utils.py (fetch_image): Likewise.
(copy_image): Shell out to cp since it deals better
with sparse files.  Note the above changes avoid sparse
copies, so this is just an ancillary improvement in the area.

Change-Id: I678d125c61aab56c62c668559eb2220d56702952

13 years agoMerge "Use "display_name" in "nova-manage vm list"."
Jenkins [Wed, 1 Feb 2012 16:42:02 +0000 (16:42 +0000)]
Merge "Use "display_name" in "nova-manage vm list"."

13 years agoBoto 2.2.x failes. Capping pip-requires at 2.1.1
Brian Lamar [Wed, 1 Feb 2012 15:51:55 +0000 (10:51 -0500)]
Boto 2.2.x failes. Capping pip-requires at 2.1.1

Fixes bug 924933

Change-Id: I808daedf9a860a8ef153785693cbc49a0a25f49c

13 years agofixed bug 920856
Thorsten Tarrach [Mon, 30 Jan 2012 10:38:06 +0000 (11:38 +0100)]
fixed bug 920856

Changed the responses to match that of Amazon EC2
Changed test to expect that response

Change-Id: Ia03a0ea663614944067c0a0193058ba91e149ad2