Commit Graph

14125 Commits

Author SHA1 Message Date
Jenkins 5cee511dbb Merge "make get_all_bw_usage() signature match for fake virt driver." 2012-05-17 23:22:53 +00:00
Jenkins 70f40b8816 Merge "use a RequestContext object instead of context module" 2012-05-17 22:54:41 +00:00
Jenkins 0472976c97 Merge "Add base support for rpc API versioning." 2012-05-17 22:13:35 +00:00
Jenkins b140b34d0f Merge "get instance details results in volumes key error" 2012-05-17 22:02:02 +00:00
Rick Harris adb11a00cc Add additional logging to compute filter
Change-Id: I3cca70ea81be12cc5a47d492f49a30774f902c91
2012-05-17 16:33:11 -05:00
Jenkins 911775ed11 Merge "Add configurable timeout to Quantum HTTP connections." 2012-05-17 21:01:44 +00:00
Jenkins 289a1088f3 Merge "Add eventlet backdoor to facilitate troubleshooting." 2012-05-17 20:51:50 +00:00
Yun Mao 975a2064a1 use a RequestContext object instead of context module
Change-Id: Ib3ef1602838daee8e9453a2ded2fbb4b17d36935
2012-05-17 16:39:21 -04:00
Jenkins 5a9e678cc0 Merge "Modify vm_vdi_cleaner to handle -orig." 2012-05-17 20:36:37 +00:00
Yun Mao 2fd869e9ec make get_all_bw_usage() signature match for fake virt driver.
Change-Id: Ia96349275321f25da55845d73b212bb7c820f3d4
2012-05-17 16:34:37 -04:00
Jenkins 16873e10d0 Merge "Add aliases to .mailmap for comstud and belliott." 2012-05-17 20:26:54 +00:00
Jenkins 12ea7e4ded Merge "Moving network tests into the network folder." 2012-05-17 19:08:03 +00:00
Rick Harris 3e4925b36f Moving network tests into the network folder.
Change-Id: Ic8f20967fb999cc67f74bd5ef751c7bb23129604
2012-05-17 12:05:41 -05:00
Russell Bryant 8ed3059cb4 Add base support for rpc API versioning.
Part of blueprint versioned-rpc-apis.

This commit includes the base support for versioned RPC APIs.  It
introduces the RpcProxy and RpcDispatcher classes that have common code
for handling versioning on the client and server sides, respectively.

RPC APIs will be converted one at a time using this infrastructure.

Change-Id: I07bd82e9ff60c356123950e466caaffdfce79eba
2012-05-17 12:16:11 -04:00
Jenkins f00b4e0600 Merge "Bump XenServer plugin version" 2012-05-17 16:09:38 +00:00
Dan Wendlandt a5d06c2d12 fixes typo that completely broken Quantum/Nova integration
bug 1000887

fixes bug introduced in ba76b954e6 that
prevented the serializer in the Quantum client code from correctly
serializing request body data.  Instead, the serializer always returned
None, meaning that requests would have no body, causing the Quantum
server to return a 400.

Change-Id: I410fb408435da8774f418f0e62ffb59eac2354f3
2012-05-16 20:19:36 -07:00
Dan Prince efc3694a3a Make Iptables FW Driver handle dhcp_server None.
Updates the IptablesFirewallDriver so it doesn't set iptables rules
for the DHCP server if dhcp_server is None in network info.

Fixes LP Bug #1000522.

Change-Id: I08bcae49fb75f685c9eab4e10936fdab5b304e2b
2012-05-16 22:24:07 -04:00
Jenkins 7d1571bae1 Merge "Optional timeout for servers stuck in build" 2012-05-16 23:02:30 +00:00
Jenkins 5d90b39c36 Merge "Remove old flagfile support." 2012-05-16 22:27:36 +00:00
Chris Behrens 389764174e Add aliases to .mailmap for comstud and belliott.
Change-Id: Id12e0347b11784b9739ed9713d3e151a94cf8f10
2012-05-16 22:13:13 +00:00
Jenkins 3f9c617f6e Merge "Update nova's copy of image metadata on rebuild" 2012-05-16 22:01:48 +00:00
Johannes Erdfelt f799f77130 Add eventlet backdoor to facilitate troubleshooting.
This provides a FLAG to turn on Eventlet's builtin backdoor server which
allows you to connect over telnet and receive a Python prompt (which is
immensely helpful for debugging running systems).

Fixes bug 1000366

Change-Id: I779247a0796d34ba2a5478436d85b30ba76c4a01
2012-05-16 21:56:42 +00:00
Jenkins 27f5ec2754 Merge "Updated instance state on resize error." 2012-05-16 21:17:01 +00:00
Jenkins eb96b41a02 Merge "Add __repr__ to least_cost scheduler." 2012-05-16 20:21:40 +00:00
Jenkins 93cb89ebef Merge "Add s3_listen and s3_listen_port options." 2012-05-16 19:36:49 +00:00
Jenkins c5f9d86a3c Merge "handle updated qemu-img info output" 2012-05-16 19:17:01 +00:00
Jenkins 01f968e6c4 Merge "Remove XenAPI use of eventlet tpool" 2012-05-16 18:55:05 +00:00
Chris Behrens b1d5caf80a Update nova's copy of image metadata on rebuild
Fixes bug 999318

Change-Id: Ib2ea908466e5ee4f05e94e68aecd77247e3f4a15
2012-05-16 18:30:09 +00:00
Philip Knouff 7b75fe7f57 Optional timeout for servers stuck in build
Fixes bug 994786

Change-Id: Iae86c002073f45b48acde8eae07f9b0f62488f90
2012-05-16 13:53:14 -04:00
Johannes Erdfelt ed3bf4692f Add configurable timeout to Quantum HTTP connections.
Fixes bug 1000371

Change-Id: I02805d5607feb0b2443e71c30fe7e9042d9b062a
2012-05-16 12:49:49 -05:00
Chris Behrens ad5cf3e86b Modify vm_vdi_cleaner to handle -orig.
Also modifies the code to better handle various race conditions.

Fixes bug 1000359

Change-Id: I421b5827330da550810598cfbacc5bb679b477c7
2012-05-16 12:23:33 -05:00
Chris Behrens f50a5ec1fc Add __repr__ to least_cost scheduler.
Change-Id: I883dd5a734ef71cef915abf95a7125926e07f3d0
2012-05-16 12:10:47 -05:00
Antony Messerli bbdbd1b87b Bump XenServer plugin version
Change-Id: I7a9389a8b07b78dec083f2a39c0ca6d9f3705ad3
2012-05-16 12:06:24 -05:00
Jenkins e4d8b4824d Merge "Rearchitect quota checking to partially fix bug 938317." 2012-05-16 15:34:39 +00:00
Pádraig Brady 0624b7aab0 handle updated qemu-img info output
Originally `qemu-img info` always output an (actual path: ...)
even if it was duplicated with that already on the line.

 $ instances=/var/lib/nova/instances/
 $ qemu-img info $instances/instance-00000017/disk | grep 'backing'
 backing file: $instances/_base/24083... (actual path: $the_same)

Whereas after the change referenced at:
https://lists.gnu.org/archive/html/qemu-devel/2012-05/msg01468.html
It suppresses a duplicate (actual path:)

 $ instances=/var/lib/nova/instances/
 $ qemu-img info $instances/instance-00000017/disk | grep 'backing'
 backing file: $instances/_base/24083...

* nova/virt/libvirt/utils.py (get_disk_backing_file):
Avoid an indexError exception when parsing the newer format.
Fixes bug 1000261

Change-Id: Ie2889b6da8a5c93e0e874e7a330529f6e6e71b0b
2012-05-16 15:53:24 +01:00
Kevin L. Mitchell 406ff304bb Rearchitect quota checking to partially fix bug 938317.
This is a rearchitecting/rewriting of quota handling to correct the
quota atomicity issues highlighted by bug 938317.  Partially implements
blueprint quota-refactor as well.

This change is fairly substantial.  To make it easier to review, it has been
broken up into 3 parts.  This is the first part.

Change-Id: I805f5750c08de17487e59fe33fad0bed203188a6
2012-05-16 08:58:53 -05:00
Dan Prince c7eae70e1f Add s3_listen and s3_listen_port options.
Adds s3_listen and s3_listen_port options to the Nova Objectstore
service so that it matches config options from other Nova API services.

Fixes LP Bug #1000220.

Change-Id: Ie6d89af7fc8de0c5cef846315171d0f9c9e3db35
2012-05-16 09:26:49 -04:00
Zhongyue Luo dc9c3cb3e3 Misused and not used config options
Fixes bug #1000071

[nova.flag.py]
stub_network: StrOpt -> BoolOpt

[nova.api.sizelimit.py]
osapi_max_request_body_size: BoolOpt -> IntOpt

[nova.compute.api.py]
find_host_timeout: not used

[nova.rpc.__init__.py]
allowed_rpc_exception_modules: IntOpt -> ListOpt

[nova.virt.vmwareapi_conn.py]
vmwareapi_api_retry_count: FloatOpt -> IntOpt

[nova.volume.driver.py]
num_shell_tries: StrOpt -> IntOpt
num_iscsi_scan_tries: StrOpt -> IntOpt

[nova.volume.driver.py]
san_thin_provision: 'true' -> True
san_is_local: 'false' -> False

Change-Id: I07ab60b1d881c9475f4f2517a432f1e934d8ae52
2012-05-16 08:19:21 +00:00
Jenkins 823a114727 Merge changes I36ff7c05,If43658b9
* changes:
  Stop using nova.exception from nova.rpc.
  Make use of openstack.common.jsonutils.
2012-05-16 06:58:56 +00:00
Chris Behrens a3a5f23487 Remove XenAPI use of eventlet tpool
XenAPI implementation does not block, even with it using SSL, therefore
there's no need to use eventlet's tpool.

Change-Id: I33ef4140068c8af06d27a075f52379581790c647
2012-05-16 06:37:28 +00:00
Unmesh Gurjar 9c71fd6aef Fixed compute periodic task. Fixes bug 973331.
1. Moved the poll_unconfirmed_resizes implementation to compute manager (as
it is not hypervisor specific).
2. Added unit test case coverage.

Change-Id: Ic58502f44326c5d59439087b4fa9ae7aa79c1e17
2012-05-16 10:19:08 +05:30
John Griffith f0dd8b0af8 get instance details results in volumes key error
* fixes bug 999043
* this code was still looking for instance FK in volumes
* changed contrib/compute volume.api:attach to use bdm
* added minimal tests for changes in Attach class

Change-Id: I19c7aff25182aa55741ec4d80b7e30f7e66ca998
2012-05-15 17:34:19 -06:00
Jenkins caf7461aff Merge "Fix bug 988034 - Quantum Network Manager - not clearing ips" 2012-05-15 22:41:11 +00:00
Jenkins 94108a8a09 Merge "Alphabetize imports in nova/api/" 2012-05-15 21:10:04 +00:00
Somik Behera 627522525e Fix bug 988034 - Quantum Network Manager - not clearing ips
Added a line in nova_ipam_lib.QuantumNovaIPAMLib init
method to ensure we clean up IPs and explanation of whats
going on.

Also, nuked release_fixed_ip as that is not
needed in QuantumManager anymore.

Change-Id: Ic2ad1e87441c448c10ff097b28d2b6347eef5401
2012-05-15 13:42:27 -07:00
Jenkins ae8437ae92 Merge "Alphabetize imports in nova/virt/" 2012-05-15 19:46:32 +00:00
Russell Bryant 5de77cad71 Stop using nova.exception from nova.rpc.
This patch is a part of continuing to remove dependencies from nova.rpc
on the rest of nova.  One RPC related exception was defined in
nova.exception, so that was moved to nova.rpc.common where the rest of
them live.  These exceptions were changed to no longer use NovaException
as their base.  Instead, there is a new RPCException base.

One other change that should be reviewed closely is the removal of using
nova.exception.wrap_exception() in nova.rpc.amqp.  As far as I can tell,
this didn't actually do anything since nothing was being passed in to
wrap_exception().

Change-Id: I36ff7c05ab0467ad8506b56d561c532eadf8dff8
2012-05-15 15:44:14 -04:00
Russell Bryant ba76b954e6 Make use of openstack.common.jsonutils.
This patch imports jsonutils from openstack-common.  It removes the
equivalent code from nova.utils and then converts the code base to use
jsonutils.  The primary motivator for this change was to remove the rest
of the dependencies from nova.rpc on nova.utils.

Change-Id: If43658b9b098ed56cba018c81be268b8c3e2916a
2012-05-15 15:44:14 -04:00
Joe Gordon 35a472d13e Alphabetize imports in nova/api/
Change-Id: I2a265ffded604265bdb9c75db36112aebf1e5270
2012-05-15 12:31:17 -07:00
Jenkins c8cafc6e9d Merge "Alphabetize imports" 2012-05-15 18:42:17 +00:00