]> xenbits.xensource.com Git - osstest/openstack-nova.git/log
osstest/openstack-nova.git
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 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 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 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 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

13 years agoExpand policies for admin_actions extension
Brian Waldon [Wed, 1 Feb 2012 06:56:37 +0000 (22:56 -0800)]
Expand policies for admin_actions extension

Fixes bug 924417

Change-Id: Ibf62e8e824753dff43e0e86cb9d320086c2c753b

13 years agoCorrect checking existence of security group rule
MotoKen [Tue, 31 Jan 2012 07:35:02 +0000 (15:35 +0800)]
Correct checking existence of security group rule

Fixes bug #900031

Change-Id: I4194610ce53d1c74bd99b6878339da6e0b6a3a73

13 years agoOptionally pass a instance uuid to log methods.
Michael Still [Wed, 1 Feb 2012 00:41:22 +0000 (11:41 +1100)]
Optionally pass a instance uuid to log methods.

This change is intended to make log messages including instance
uuids consistent. This eases operational support, as when a
customer asks for the history of there instance it is a simple
grep operation, instead of the current situation. I have included
a sample use, but will work through adding this to relevant log
messages over time.

Change-Id: I1f61c04f32dbb960471950ac7231313d9d9ced12

13 years agoremove unsupported ec2 extensions
Jesse Andrews [Tue, 31 Jan 2012 22:29:28 +0000 (16:29 -0600)]
remove unsupported ec2 extensions

implements blueprint remove-ec2-extensions

* remove deprecated unofficial ec2 admin api
* remove admin api from wsgi/paste
* remove unofficial ec2 call for ajaxterm / update calls
* remove displayName/displayDescription from volumes/instances

Change-Id: If5a5ae26ebb9456a3c7376ff4ff0aa9589be1f5b

13 years agoFix VPN ping packet length.
Russell Bryant [Tue, 31 Jan 2012 22:42:23 +0000 (17:42 -0500)]
Fix VPN ping packet length.

Fix bug 906346.

This patch addresses the typo pointed out in bug 906346.  The ping being
sent was 15 bytes long when it should have been 14.  Removing a pad byte
from the format string resolves this issue.  I verified that the format
described in the code comments (and now the code) was correct using an
OpenVPN connection setup packet capture.

Change-Id: Idbc5e48ede4a8d2836dd1b102a9a0e172540776c

13 years agoMerge "Allow for auditing of API calls."
Jenkins [Tue, 31 Jan 2012 23:54:46 +0000 (23:54 +0000)]
Merge "Allow for auditing of API calls."

13 years agoUse single call in ExtendedStatus extension
Brian Waldon [Tue, 31 Jan 2012 22:02:30 +0000 (14:02 -0800)]
Use single call in ExtendedStatus extension

Fixes bug 917400

Change-Id: I8bc78f5e5f03c1ea30e7ff23236774af48a2c059

13 years agoAdd mkswap to rootwrap
Mark Washenberger [Tue, 31 Jan 2012 22:01:54 +0000 (17:01 -0500)]
Add mkswap to rootwrap

Change-Id: Ia70a3acf9f8ca6b8c552f208767a92f321b912a5

13 years agoUse "display_name" in "nova-manage vm list".
Russell Bryant [Tue, 31 Jan 2012 21:55:00 +0000 (16:55 -0500)]
Use "display_name" in "nova-manage vm list".

Fixes bug 894807.

This patch changes the output of "nova-manage vm list" to use the
display_name for an instance instead of the hostname in the output.
This makes the output consistent with what you get with "nova list".

Change-Id: I3131c5aad8770481bac7731c06110a98b4cc2966

13 years agoMerge "Use os.path.basename() instead of string splitting."
Jenkins [Tue, 31 Jan 2012 21:43:36 +0000 (21:43 +0000)]
Merge "Use os.path.basename() instead of string splitting."

13 years agoFix broken devref docs.
Russell Bryant [Tue, 31 Jan 2012 21:16:24 +0000 (16:16 -0500)]
Fix broken devref docs.

Fix bug 888102.

This patch fixes the documentation generated here:
http://nova.openstack.org/devref/index.html

There was a typo in a script that resulted in the module names being
invalid and no docs being generated.  This one character patch fixes it
up and makes the docs happy.

Change-Id: I1986e8b468334a1a33264aaec740c4f535a7c30b

13 years agoAllow for auditing of API calls.
Kevin L. Mitchell [Tue, 31 Jan 2012 20:40:26 +0000 (14:40 -0600)]
Allow for auditing of API calls.

Splits Resource.__call__() into two parts to allow for easy auditing
of the API stack--checking execution times, etc.  No behavior change
or execution time impact should be expected.

Change-Id: If9629e8b85f490c66499c42d6f6977a09d641c22

13 years agoUse os.path.basename() instead of string splitting.
Russell Bryant [Tue, 31 Jan 2012 20:25:33 +0000 (15:25 -0500)]
Use os.path.basename() instead of string splitting.

Fixes bug 886268.

Change-Id: I16e05f4ead55c75f29217072d106421fdc7de201

13 years agoRemove utils.runthis().
Russell Bryant [Tue, 31 Jan 2012 19:48:12 +0000 (14:48 -0500)]
Remove utils.runthis().

Fixes bug 884825.  The bug was pointing out some unused variables
noticed by pylint.

utils.runthis() was only used in one place and doesn't really provide
much value over utils.execute(), so just remove it.

Change-Id: I3dcc34bd840a128418b58a8a66acb62adf3fc9cc

13 years agoMerge "Be more explicit about emptying connection pool."
Jenkins [Tue, 31 Jan 2012 18:56:08 +0000 (18:56 +0000)]
Merge "Be more explicit about emptying connection pool."

13 years agoMerge "bug 923798: On XenServer the DomU firewall driver fails with NotImplementedError"
Jenkins [Tue, 31 Jan 2012 18:28:35 +0000 (18:28 +0000)]
Merge "bug 923798: On XenServer the DomU firewall driver fails with NotImplementedError"

13 years agoMerge "fixes melange ipam lib"
Jenkins [Tue, 31 Jan 2012 18:17:04 +0000 (18:17 +0000)]
Merge "fixes melange ipam lib"

13 years agoEmpty connection pool after test_kombu.
Russell Bryant [Tue, 31 Jan 2012 17:58:22 +0000 (12:58 -0500)]
Empty connection pool after test_kombu.

Empty the connection pool after the tests in test_kombu have run.  This
ensures that there is nothing leftover that will affect tests of other
implementations that use nova.rpc.amqp (impl_qpid right now).

Change-Id: Ib023722f97a21821869369d0024cf61272267ea3

13 years agoClear out RPC connection pool before exit.
Russell Bryant [Mon, 30 Jan 2012 23:29:04 +0000 (18:29 -0500)]
Clear out RPC connection pool before exit.

Fixes bug 767984.

This patch ensures that pooled connections to a messaging system get
cleaned up before a process that has used the RPC API exits.

Change-Id: I56eca54334075378534a7a5d3434c420319672b4

13 years agoBe more explicit about emptying connection pool.
Russell Bryant [Tue, 31 Jan 2012 17:52:16 +0000 (12:52 -0500)]
Be more explicit about emptying connection pool.

This patch makes some code in test_qpid be more explicit about emptying
the connection pool.  It now ensures that it removes exactly how many
connections are in the pool.

The previous code made a couple of assumptions.  First, it assumed that
only one connection was in the pool (which is true, but it's still nice
not to make the assumption here in the cleanup code).  Second, it
assumed that free() returned the number of connections that have been
placed in the pool.  This is not correct.  The result also includes the
number of connections that could be created based on the max size of the
pool. Use the free_items attribute instead, which gives the exact number
of connections that have been put() in the pool.

Change-Id: I97378919c2d3e68f224862f07a75529575647163

13 years agofixes melange ipam lib
Trey Morris [Mon, 30 Jan 2012 23:44:07 +0000 (17:44 -0600)]
fixes melange ipam lib

Melange can have multiple ip_blocks assigned to a network. However
the ipam lib assumes that each block is its own L2 network and assigns
ips from each ip_block for every instance.

From internal bug.

Change-Id: I72699f178cfeb214b2911200a7e9ed9b255252f1

13 years agobug 923798: On XenServer the DomU firewall driver fails with NotImplementedError
Armando Migliaccio [Tue, 31 Jan 2012 15:35:44 +0000 (15:35 +0000)]
bug 923798: On XenServer the DomU firewall driver fails with NotImplementedError

Move _provider_rules in the base class. This should be enough to deal with most
distros on which a domU is based on.

Change-Id: I738116c5f330c2493c62d8f1f3da39abb3c3ad11

13 years agoReturn instancesSet in TerminateInstances ec2 api
Hengqing Hu [Tue, 31 Jan 2012 13:20:04 +0000 (21:20 +0800)]
Return instancesSet in TerminateInstances ec2 api

Fixe bug #862680

Return instancesSet to follow ec2 TerminateInstances api specification:
    'http://docs.amazonwebservices.com/AmazonEC2/dg/2007-01-03/ApiReference-SOAP-TerminateInstances.html'

Remove dead test_terminate_instances code in test_cloud.py

Change-Id: Iabc0ccdbd80946b60af63bdc49bc7820c65ca006

13 years agoFix multinode libvirt volume attachment lp #922232
Adam Gandelman [Thu, 26 Jan 2012 20:36:55 +0000 (12:36 -0800)]
Fix multinode libvirt volume attachment lp #922232

iscsiadm returns 0 if local db contains no target records.  As a result,
no exception is caught and no entry gets created (--op new) before continuing
to login.  Devstack/single-node users avoided this because, apparently, records
are created in initiator db on target creations.

Update: Address smokestack failures if err == None

fixes bug #922232

Change-Id: I39c3574b8d75ca32eba3716efc3b488e596fbaf6

13 years agoBug #923865: (xenapi driver)instance creation fails if no guest agent is avaiable...
Armando Migliaccio [Mon, 30 Jan 2012 18:21:30 +0000 (18:21 +0000)]
Bug #923865: (xenapi driver)instance creation fails if no guest agent is avaiable for admin password configuration

Ensure that if the guest agent is not installed, the admin password configuration is
skipped. The fact that either one of 'version' or 'agent_build' is None (or both)
should be an accurate indication of such a condition.

Change-Id: I90213ce28a900a05d7357b8fa647ffbb0928571a

13 years agoImplementation of new Nova Volume driver for SolidFire ISCSI SAN
john-griffith [Mon, 30 Jan 2012 18:16:42 +0000 (11:16 -0700)]
Implementation of new Nova Volume driver for SolidFire ISCSI SAN

* Adds new SolidFire driver that subclasses nova.volume.san.SanISCSIDriver
* Adds unit tests for new driver
* Adds new exception subclasses in nova.exception
* Adds John Griffith to Authors
Implements solidfire-san-iscsidriver
Change-Id: I4dc7508ba08f5333cde74d4cfeaae3939c5d2b02

13 years agoMerge "Handle kepair delete when not found"
Jenkins [Mon, 30 Jan 2012 17:14:56 +0000 (17:14 +0000)]
Merge "Handle kepair delete when not found"

13 years agoMerge "Remove fetching of networks that weren't created via nova-manage"
Jenkins [Mon, 30 Jan 2012 17:03:44 +0000 (17:03 +0000)]
Merge "Remove fetching of networks that weren't created via nova-manage"