Commit Graph

19373 Commits

Author SHA1 Message Date
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
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
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
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
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
Jenkins 7a1707adb6 Merge "Make LibvirtDriver.uri() a staticmethod." 2013-02-23 03:34:40 +00:00
Jenkins 84f2c622b9 Merge "Add missing import_opt for flat_injected" 2013-02-23 03:32:19 +00:00
OpenStack Jenkins ad3a110299 Merge "Imported Translations from Transifex" 2013-02-23 03:24:29 +00:00
Jenkins 5f73929e59 Merge "Don't set filter name if we use Noop driver" 2013-02-23 01:54:36 +00:00
OpenStack Jenkins 5997c4e217 Imported Translations from Transifex
Change-Id: I20f746956c6bd829973478fa3ef5174df2a8596a
2013-02-23 00:04:06 +00:00
Jenkins 61564d8301 Merge "Add module prefix to exception types" 2013-02-22 23:05:19 +00:00
Jenkins 5cb6f500d8 Merge "Remove compat cfg wrapper" 2013-02-22 23:04:58 +00:00
Jenkins 7a7782862f Merge "Fix exception handling in baremetal API." 2013-02-22 22:56:55 +00:00
Russell Bryant f4f6464f58 Ensure macs can be serialized.
This patch uses to_primitive() to ensure that the macs argument to the
rpcapi method allocate_for_instance() can be serialized by rpc drivers.
Specifically, the powervm driver uses a set() here, and that will cause
breakage in non-kombu drivers.

Fix bug 1131035.

Change-Id: I5729c5854799e49c6598e4dd2a4da487598307f1
2013-02-22 16:59:13 -05:00
John Herndon cb6667b22d Remove Print Statement
Removing a rogue print statement that I missed
in a previous commit

Change-Id: I472944d90937d8b6484f3ec419cdd5083db533c5
2013-02-22 21:00:47 +00:00
Brent Eagles b01923cb8d Prevent default security group deletion.
This patch adds a check to confirm that a security group name
is not among a list of 'special' group names before proceeding
with security group deletion.

Fixes: bug 1131830

Change-Id: I5656e01b4ed3fd9c22abe6a731edaef7203d97c4
2013-02-22 16:19:17 -03:30
Rick Harris 2763749dec libvirt: lxml behavior breaks version check.
lxml doesn't roundtrip empty strings, meaning if you serialize
and element with value '', when you derserialize it, the value will be
`None`.

This broke the version_string_with_package check because None and ''
will not compare as equivalent.

The solution is to coerce the None value back to an empty string before
running the check.

Change-Id: Ia3a8ae68f12a4645057d243fdee59197df40e8d3
2013-02-22 19:29:12 +00:00
Aaron Rosen 9553d5eb82 Add missing import_opt for flat_injected
Fixes bug 1131891

Change-Id: I993798abea27b8d37efe5d3c122a490d85e192a8
2013-02-22 10:59:55 -08:00
Jenkins 95b7d2c06e Merge "Migration 146: Execute delete call." 2013-02-22 18:50:03 +00:00
Jenkins 6e2bde838d Merge "Add post_downgrade hook for migration tests." 2013-02-22 18:48:49 +00:00
Jenkins 9dfd9a2ba7 Merge "Fix migration snake-walk." 2013-02-22 18:45:50 +00:00
Jenkins 6a9da777e9 Merge "BM Migrations 2 & 3: Fix drop_column statements" 2013-02-22 18:44:28 +00:00
Jenkins 3561cd66e2 Merge "Migration 144: Fix drop index statement" 2013-02-22 18:35:33 +00:00
Eric Windisch 9e6ba904cf Add processutils from oslo.
RPC now depends on processutils.
Fixes bug 1131872.

Change-Id: I2c24f70aa37e56c2d12df370386629c76d89e4be
2013-02-22 13:13:03 -05:00
Dan Prince 20fb97df97 Updates to OSAPI sizelimit middleware.
Updates the OSAPI sizelimit middleware so that we use avoid calling
len on a request body which could cause a really large request
to get buffered into memory.

Also updates the middleware to return HTTP 413 which is a more
correct error code in this case (previously it returned just 400).

Fixes LP Bug #1131857.

Change-Id: Id8bc5eeb0fba9482809edd12543a75163e1227e9
2013-02-22 12:21:51 -05:00
Mark McLoughlin 5ee22736ad Remove compat cfg wrapper
This wrapper was there to allow oslo-config changes through the gate
while keystoneclient hadn't been updated.

Change-Id: I3d48673af58ae379e8e4d2c7fb4b4d81f3ed67dd
2013-02-22 16:57:47 +00:00
Devananda van der Veen 3aace2a610 Fix exception handling in baremetal API.
In patch ab9f8667c6, several
baremetal/db/api methods' exceptions were changed from InstanceNotFound
to NodeNotFound. The API extension for baremetal was not updated to
catch these, and this was not caught by unit testing. This resulted in
unhandled exceptions within nova-api if any baremetal node lacked an
associated interface.

While fixing that bug, a few other unit tests for the baremetal API
were added, and a missing exception was added to db/api bm_node_destroy.

Fixes bug 1131430.

Change-Id: I15f7624723754f9d7b217b609663a2d709acb056
2013-02-22 07:20:38 -08:00
Dan Prince 014499acf5 Make guestfs use same libvirt URI as Nova.
Updates our libguestfs vfs implementation so that it makes use of
the same libvirt connection URI as Nova does when using
attach mode 'libvirt'. Previously when libguestfs used attach
mode 'libvirt' (the default on some newer distros like Fedora 18)
you could get permissions issues and ultimately get a libvirt
connection error from libguestfs:

  could not connect to libvirt (URI = NULL)

Docs on guestfs attach method can be found here:

  http://libguestfs.org/guestfs.3.html#attach-method

Having libguestfs use the same connection URL as Nova makes sense
and gets past these permission issues. (avoiding things like forcing
you to create a $HOME dir for the nova user among other things)

Full thread on this is here:

  https://bugzilla.redhat.com/show_bug.cgi?id=913345

Note that on most distros the default libguestfs attach method
is still 'appliance' so this would have no affect unless explicitly
enabled via LIBGUESTFS_ATTACH_METHOD.

Fixes LP Bug #1131768.

Change-Id: I7e9f010022731a43e8d793cf8415ec12b346fdb4
2013-02-22 09:54:38 -05:00
Dan Prince 4f0c2ddcf6 Make LibvirtDriver.uri() a staticmethod.
LibvirtDriver's uri() function seems to be the most logical place
where one can access the libvirt URL used by Nova. I would like
access to this outside the scope of the internal libvirt
driver (for libguestfs) so exposing it as a static
resource seems to make sense.

Partial fix for LP Bug #1131768.

Change-Id: I653296414716b4e799d68f6bfc868e6039d6ea4a
2013-02-22 09:54:21 -05:00
Gary Kotton 81476d70c4 Enable VM DHCP request to reach DHCP agent
When using the firewall driver IptablesFirewallDriver and the
default INPUT and FORWARD rules are DISCARD then the DHCP
request from the VM is discarded prior to getting to the dnsmasq.

A new rule will be added that enables DHCP requests to pass.

This fixes bug 1131223

Change-Id: I50fad5b63c3c4b22a5d828e3e89353c1ed723332
2013-02-22 13:46:03 +00:00
Jenkins a42845e455 Merge "Fix launching libvirt instances with swap" 2013-02-22 13:02:27 +00:00
Jenkins 3aaec13bdb Merge "import base_dir_name config option into vmwareapi" 2013-02-22 07:18:13 +00:00
Chet Burgess 2ca65aecf4 Don't set filter name if we use Noop driver
If we are using the Noop firewall driver we don't set a filter name.

Fixes: bug #1131358
Change-Id: I5e8a92baa6838ed51b55ffd6af1e98da6dd662c2
2013-02-22 05:20:01 +00:00
David Peraza edf15fdd38 Removes unnecessary qemu-img dependency on powervm driver
Fixes bug 1131033

Power VM driver is using qemu-img through the fetch_to_raw call
No need to attempt a conversion since power images can only
be represented with the raw format, removing thus the need for
any conversions by calling fetch instead of fetch_to_raw.

Change-Id: I94b46e184cb87924a4754a0a48d9c2013a3eb756
2013-02-22 01:29:16 +00:00