Commit Graph

19403 Commits

Author SHA1 Message Date
Jenkins e7ff1c1dc1 Merge "Bump python-quantumclient version to 2.1.2" 2013-02-27 22:10:12 +00:00
Matthew Sherborne e6b49c8716 Remove un-needed methods.
These methods are un-needed. Their functionality is now provided by the
HostAPI and ComputeRPCProxyAPI.

Change-Id: I771f1e4669f8b7fb779a0fec0209c3e2a899a469
2013-02-27 20:27:29 +00:00
Jenkins 7be9e64fe2 Merge "Revert IP Address column length to 39" 2013-02-27 19:07:52 +00:00
Jenkins 45f2fc431f Merge "Update OpenStack LLC to Foundation" 2013-02-27 17:44:08 +00:00
Aaron Rosen 08a2c682e4 Bump python-quantumclient version to 2.1.2
Fixes bug 1133381

Change-Id: I0592032e9df1fc165631e7e85f1cdc9ead4beb30
2013-02-27 09:29:47 -08:00
Jenkins 907594ec28 Merge "Retry floating_ip_fixed_ip_associate on deadlock." 2013-02-27 00:40:26 +00:00
Jenkins 7414e5137f Merge "Use a fake coverage module instead of real one." 2013-02-27 00:40:07 +00:00
Jenkins 48943ae824 Merge "Fix redefinition of function test_get_host_uptime" 2013-02-27 00:39:51 +00:00
Jenkins 40be4c6ba0 Merge "Fix hacking.py to handle parenthesise in from import as" 2013-02-27 00:39:28 +00:00
Jenkins 0f3e9f475d Merge "Unpin suds dependency version" 2013-02-27 00:22:15 +00:00
Jenkins e13bf98c1d Merge "Unpin Cheetah dependency version" 2013-02-27 00:21:58 +00:00
Jenkins a39dedfb0e Merge "Add missing import to fakelibvirt." 2013-02-27 00:18:45 +00:00
Kurt Taylor d17f9ab13d Update OpenStack LLC to Foundation
Update all references of "LLC" to "Foundation".

Change-Id: I009e86784ef4dcf38882d64b0eff484576e04efe
2013-02-26 19:15:29 -05:00
Jenkins f5fec8aa01 Merge "Sync nova with oslo DB exception cleanup." 2013-02-27 00:14:48 +00:00
Mauro S. M. Rodrigues e2eeb1d56c Revert IP Address column length to 39
In change I35d4565389d03fce86103289cf6447f824efeba0 we changed the cidr/ip
address column size to 43 to be able to support ipv6 cidr values, although ips
doesn't need that much space so we're reverting it to keep it consistent.

Change-Id: Icd2d727fd0733ee0db23c1fa431df4b982cae7b4
2013-02-26 11:22:03 -05:00
Davanum Srinivas 14df42b15f Additional tests for safe parsing with minidom
For nova, forbid_dtd is going to be true always, however
if someone picks up this code and tries forbid_dtd = False
then the existing code is not good enough. we need to protect
against external entities/dtd and not allow notations as well.
Added a few more handlers and test cases to cover that use
case.

Change-Id: If50f690e015f2bf837b403edf552e35d7af8c907
2013-02-26 16:08:15 +00:00
Jenkins 2e771b1032 Merge "Allow zk driver be imported without zookeeper" 2013-02-26 16:04:03 +00:00
Jenkins a8fef8e510 Merge "Minor code optimization in _compute_topic" 2013-02-26 14:19:45 +00:00
Mark McLoughlin 30197d76fe Unpin suds dependency version
Fixes bug #1133247

suds is used by the vmware driver and the dependency has always been
pinned to 0.4:

  67e63ba8 (Sateesh Chodapuneedi 2011-03-07 18:10:48 +0530 17) suds==0.4

0.4 was released in September 2010 and there hasn't been a release
since. In fact, there has only been 16 commits since then and none of
them look to break the existing API.

If there's no reason to expect the next version to break us, we should
unpin. Indeed, we want to know early if upstream does break its API.

Change-Id: Icd2bdd021093293b2e4261a00d063239a3c42ce6
2013-02-26 11:38:43 +00:00
Mark McLoughlin 341b59531f Unpin Cheetah dependency version
Fixes bug #1133216

We've been pinned to the same version of Cheetah since May 2011:

  Cheetah==2.4.4

this was released in December 2010 and there hasn't been a release since:

  https://pypi.python.org/pypi/Cheetah/2.4.4

There's no particular reason to believe a future release of Cheetah will break
us (only 6 commits since 2.4.4 and they all look like bugfixes), so we should
change to:

  Cheetah>=2.4.4

Change-Id: Id3b22b84d2d693776f89ccb1d0c99d4e42fcab62
2013-02-26 11:10:01 +00:00
Jenkins 7170eb3966 Merge "if reset fails, display the command that failed" 2013-02-26 08:47:53 +00:00
Mark McLoughlin 82858a1eed Allow zk driver be imported without zookeeper
The zookeeper python module isn't widely available (e.g. not available
on Fedora), so allow the zk servicegroup driver be imported even if the
module isn't found.

This helps allow the generate_sample.sh script generate a sample config
file even without zookeeper installed.

Change-Id: Ic3b3bb75bcd2003150909ebd2c5724fa5093c346
2013-02-26 07:36:05 +00:00
Russell Bryant 6e9a2f4261 Retry floating_ip_fixed_ip_associate on deadlock.
Update the floating_ip_fixed_ip_associate method of the sqlalchemy db
API to retry if it fails because of a deadlock.  The decorator that
handles this was introduced in e53e22271e.
The related bug report shows that this method could benefit from the use
of this decorator.

Fix bug 1090016.

Change-Id: I0159470e6eb2f8017bcb3e659e7b119194dda920
2013-02-26 01:47:42 -05:00
Jenkins 032ee13648 Merge "Fix hacking.py to handle 'cannot import x'" 2013-02-26 06:07:05 +00:00
Joe Gordon 99308d4dd3 Fix hacking.py to handle 'cannot import x'
Fix missingImport logic to handle a module that cannot be imported, due
to a missing dependant module.

Due to the nature of this bug doctests cannot cover it.

Fix bug 1133103

Change-Id: Ia067bacc125b67e2d9e0cfc72495e4f13a8648ad
2013-02-25 19:47:29 -08:00
Russell Bryant 6cbbec3ee9 Add missing import to fakelibvirt.
This module calls time.sleep(1), but was not importing the time module.
This fixes it.

Fix bug 1133056.

Change-Id: Ifbba2a98ccdd8d5e26ce466831618ccab9e0b462
2013-02-25 21:08:19 -05:00
Jenkins f52c1c55d5 Merge "Enable VM DHCP request to reach DHCP agent" 2013-02-26 01:26:42 +00:00
Jenkins 40031770c1 Merge "Change nova-dhcpbridge FLAGFILE to a list of files" 2013-02-26 01:26:25 +00:00
Giampaolo Lauria 785861e30e Minor code optimization in _compute_topic
In cases where a valid host is passed, the if
statement is always executed twice, not once like it should

Change-Id: I6a24bb4f85bfb94d2fdc5d1652ee371f296a10ef
2013-02-26 01:09:28 +00:00
Joe Gordon 2f778241a3 Fix hacking.py to handle parenthesise in from import as
Fix bug 1133070

Support 'from os import (path as p)'

Change-Id: Ie2e5b3150efb6f47b16978f3de64fca37e1717a6
2013-02-25 17:06:44 -08:00
Joe Gordon 9f9e95e50e Fix redefinition of function test_get_host_uptime
First test_get_host_uptime was missing a parameter that the
second test contains.  So remove first test.

Fixes bug 1133062

Change-Id: Id886f4e52f45505117fd8e7bf30bc4d77cacd47b
2013-02-26 01:05:14 +00:00
Mark McLoughlin ee1e63281e Fix incorrect zookeeper group name
The zookeeper driver group name is 'zookeeper' not 'zk'.

Change-Id: I346cb2740ea835d17918f46be7ca142957537626
2013-02-25 23:22:18 +00:00
Chris Behrens 625ecb610c Sync nova with oslo DB exception cleanup.
DB exceptions have moved to openstack/common/db/exception module so that
they can be shared with multiple DB implementations.

Deadlock checking was also added to oslo to consolidate with
DuplicateKey checking.  This allows us to clean up our
_retry_on_deadlock decorator in sqlalchemy/api.py

Fixes unrelated pep8 issue with duplicate test in test_compute also.

Change-Id: I7e985b384d1ef345e0d67c919b84b4faff869699
2013-02-25 21:32:59 +00:00
Devananda van der Veen d9bbcfb766 Fix broken baremetal migration tests
Change 1c5518ba introduced different user/passwd for the baremetal CI
tests, which did not match the CI systems. Since then, all the baremetal
migration tests have been skipped or failing.

This patch sets the user/passwd back to 'openstack_citest'.

Change-Id: I88508d83d6e9e63f20c26704ec6b455c48a33e8f
2013-02-25 13:06:10 -08:00
Sean Dague 951aa03399 if reset fails, display the command that failed
we get failures in _reset_databases from time to time, and it's
hard to debug without understanding what command failed. Make
this show up in the assert message.

Now with even more output!

Change-Id: Ie82109cfb1745e7218e0906764db1fad0c8fc5f5
2013-02-25 16:02:41 -05:00
Jenkins 73a58f9cc8 Merge "Readd run_tests.sh --debug option." 2013-02-25 18:30:26 +00:00
OpenStack Jenkins 2f90562818 Merge "Imported Translations from Transifex" 2013-02-25 17:47:31 +00:00
Jenkins 6053ca12d7 Merge "Clean unused kernels and ramdisks from image cache" 2013-02-25 16:09:31 +00:00
Brent Eagles 62b18ebb68 Change nova-dhcpbridge FLAGFILE to a list of files
This patch adds support to linux_net and nova-dhcpbridge for
specifying and conveying multiple dhcpbridge_flagfile values.
The support is implemented as follows:

dhcpbridge_flagfile is now a "MultiStr" configuration file option
allowing the flag files to be defined over multiple configuration files.
The configured files are concatenated into a comma separated string and
assigned to the FLAGFILE environment variable when invoking
nova-dhcpbridge. nova-dhcpbridge splits the value of the environment
variable on the comma an initializes its configuration with the provided
files (the configuration system already supports loading configuration
from multiple files)

Fixes bug 1131932

Change-Id: Ic9cc57b8f7d9356606b9134ef5b63ab07b6099d9
2013-02-24 23:41:56 -03:30
OpenStack Jenkins 4fbb245d35 Imported Translations from Transifex
Change-Id: I797e5f89c636b9619d5cb1862316f3c33d04b606
2013-02-25 00:04:18 +00:00
Jenkins 42d058b2a1 Merge "Add processutils from oslo." 2013-02-24 19:17:10 +00:00
Clark Boylan d923921d12 Readd run_tests.sh --debug option.
Testr doesn't directly support running tests with pdb so the --debug
option was pulled from run_tests.sh during the testr switch. Add the
flag back into run_tests.sh and have it run tests with testtools.run
which allows users to import pdb in tests then run them without
interference from testr.

Example usage:
  # First edit test file to import pdb.
  run_tests.sh -d path.to.test

If the test is not given on the command line all tests will be run.

Change-Id: I4afca9ca997ccb6c575b714b778a9db8306c7891
2013-02-23 15:02:26 -08:00
Mark McLoughlin 38997fc916 Clean unused kernels and ramdisks from image cache
Fixes bug #1132138

Only unused disk images are currently cleaned up by the image cache
manager but it seems logical to clean up unused kernels and ramdisks
too.

Achieve that by writing kernels and ramdisks to disk using the sha1
sum of their ID as the filename. This is the same scheme as used for
disk image filenames and causes the image cache manager to consider
them for cleanup. We also make the cache manager take note of in use
kernels and ramdisks when iterating over the list of instances.

A nasty upgrade concern is that if we immediately switch to writing
kernels to disk using this scheme then, where shared storage is used,
we can have older image cache managers on remote compute nodes cleaning
up kernels because they appear unused. To mitigate that, turn off this
behaviour by default and allow it to be enabled using a new config
option. This option will be removed in future and the behaviour enabled
by default.

DocImpact: new remove_unused_kernels option

Change-Id: I56bba9fa6596601104498e262c2e657f0eae2fa0
2013-02-23 16:18:47 +00:00
Jenkins d2123eebf9 Merge "Adding ability to specify the libvirt cache mode for disk devices" 2013-02-23 16:18:38 +00:00
Jenkins a7078ae7b3 Merge "Updates to OSAPI sizelimit middleware." 2013-02-23 16:03:13 +00:00
Jenkins 9f6dddb35e Merge "libvirt: lxml behavior breaks version check." 2013-02-23 16:02:51 +00:00
Jenkins c389f39598 Merge "Ensure macs can be serialized." 2013-02-23 16:01:01 +00:00
Jenkins faa7a8fd83 Merge "Prevent default security group deletion." 2013-02-23 16:00:40 +00:00
Jenkins 4a88dee0f6 Merge "Removes unnecessary qemu-img dependency on powervm driver" 2013-02-23 03:35:20 +00:00
Jenkins 6c5cc62a8a Merge "Make guestfs use same libvirt URI as Nova." 2013-02-23 03:34:57 +00:00