Commit Graph

19652 Commits

Author SHA1 Message Date
Dirk Mueller f7c7fb0808 Pin SQLAlchemy to 0.7.x
0.7.10 has been released and is compatible with 0.7.x. Instead
of pinning to 0.7.9, simply pin to 0.7.x to avoid SQLAlchemy 0.8

Change-Id: Iea57598698b4faf906e82a2974497221d07f4d16
2013-03-12 10:28:20 +01:00
Jenkins f543f347c8 Merge "Correct exception args in vfs/guestfs." 2013-03-11 14:02:18 +00:00
Michael Still e78528e113 Rewrap two lines.
No functional changes. This just makes grepping for qemu-img calls a bit easier.

Change-Id: Ifa91a981975bc3766a0f701ee72e5718ff4bec68
2013-03-11 23:51:29 +11:00
Dan Prince 3d7d819f64 Correct exception args in vfs/guestfs.
Updates the exception formatting in vfs/guestfs so that we
properly raise in cases where there is no root or multiple
roots.

Fixes a TypeError that would occur with the previous code.

Fixes LP Bug #1153414.

Change-Id: I28f9cde5a2da466ebb7397176baaf051ccd4192b
2013-03-10 21:51:39 -04:00
OpenStack Jenkins 8c96d09ba3 Imported Translations from Transifex
Change-Id: I3b7b3839e12371e998003c36a6ce2f50e13c23f8
2013-03-11 00:03:17 +00:00
OpenStack Jenkins 9248245996 Merge "Imported Translations from Transifex" 2013-03-10 01:24:14 +00:00
Jenkins 27dc7d4625 Merge "Check CONF values *after* command line args are parsed" 2013-03-10 00:21:02 +00:00
OpenStack Jenkins 83989d87d0 Imported Translations from Transifex
Change-Id: I6d487d4ac833ecf0dd08669524826e2219aac7d2
2013-03-10 00:03:01 +00:00
Jenkins b08df770c1 Merge "Make bm model's deleted column match database" 2013-03-09 20:20:14 +00:00
Dan Smith bd5a9b87a7 Remove uses of instance['instance_type'] from nova/notifications
This is one change in a series aimed at removing the use of instance-linked
instance_type objects, in favor of the decoupled type data in
system_metadata. See bug 1140119 for more details.

Change-Id: Iebbb0fa0bf306d6a7c8b83594e13a4b99f27c404
2013-03-09 17:17:07 +00:00
OpenStack Jenkins 666ffe34ac Merge "Imported Translations from Transifex" 2013-03-09 17:03:12 +00:00
Jenkins d4909874ad Merge "Add MultipleCreate template and fix conflict with other templates" 2013-03-09 16:18:10 +00:00
Jenkins 6b5ad56bdc Merge "add .idea folder to .gitignore pycharm creates this folder" 2013-03-09 16:14:11 +00:00
Jenkins 85647a36d4 Merge "Fix Wrong syntax for set:tag in dnsmasq startup option" 2013-03-09 15:30:53 +00:00
Jenkins a28bce3453 Merge "Fix instance evacuate with shared storage" 2013-03-09 15:30:35 +00:00
Jenkins 5970a553e7 Merge "Nova network needs to take care of existing alias" 2013-03-09 15:27:05 +00:00
Jenkins 5a6defd6ec Merge "Correct substring matching of baremetal VPD node names" 2013-03-09 15:26:41 +00:00
Nikola Dipanov cbc0df7301 Prevent rescue for volume-backed instances
This patch prevents rescuing of volume_backed instances, by checking
for it in the API layer and raising an exception if instance on which a
rescue was attempted is volume backed.

Rescue is supposed to just be a way to log into a wayward instance
if something goes wrong with the base image that may have had some data
(logfiles etc.) and make it possible to grab that - block devices are
assumed to be accessible by re-attaching them, and are considered
persistant so no need for rescue there.

Fixes bug: #1067744
blueprint: improve-boot-from-volume

Change-Id: I8a4b1ccff7406837de3086aa413034e8e647b8fa
2013-03-09 11:24:08 +01:00
Jenkins 7477bbfdad Merge "Fix ephemeral devices on LVM don't get mkfs'd" 2013-03-09 02:28:33 +00:00
Jenkins 203e261d0b Merge "Fix Network object encoding issue when using qpid" 2013-03-09 01:42:48 +00:00
Jenkins 55b248b6d5 Merge "Make 'os-hosts/node1' case sensitivity defer to DB" 2013-03-09 01:42:28 +00:00
OpenStack Jenkins cd68b5c6a7 Imported Translations from Transifex
Change-Id: I6dd6d0512fa91ac1ccf7567e44d382a570e0b4e6
2013-03-09 00:03:14 +00:00
Jenkins 7e96d76d76 Merge "Fix for delete error in Hyper-V - missing CONF imports" 2013-03-08 23:13:08 +00:00
Jenkins 24604a9a36 Merge "Remove uses of instance['instance_type'] from nova/scheduler" 2013-03-08 22:40:28 +00:00
Jenkins 0f47d39f0c Merge "Remove uses of instance['instance_type'] from nova/api" 2013-03-08 22:40:11 +00:00
Jenkins 1f45843bc7 Merge "Remove uses of instance['instance_type'] from nova/network" 2013-03-08 22:39:55 +00:00
Jenkins db5721d3e9 Merge "Remove uses of instance['instance_type'] from nova/compute" 2013-03-08 22:38:50 +00:00
Jenkins 3152a9dfeb Merge "Remove uses of instance['instance_type'] from libvirt driver." 2013-03-08 22:38:34 +00:00
Jenkins 8b6834f54a Merge "Remove uses of instance['instance_type'] from powervm driver." 2013-03-08 21:44:18 +00:00
Jenkins f9b0b9f2d3 Merge "Fix instance type cleanup when doing a same-id migration" 2013-03-08 21:44:01 +00:00
Jenkins 63cf127766 Merge "Add conductor to nova-all." 2013-03-08 21:38:26 +00:00
Jenkins cf9ab8413e Merge "Rework instance actions to work with cells" 2013-03-08 20:55:39 +00:00
Jenkins 9d836d828f Merge "Make nova-manage db archive_deleted_rows more explicit" 2013-03-08 20:55:22 +00:00
Rick Harris e403a23ba8 Add conductor to nova-all.
The conductor service was missing so running nova-all no longer results
in a complete environment.

This patch adds conductor to the binary list and updates the code to
handle the different way in which conductor specifies the topic and
manager.

Fixes bug 1152371

Change-Id: I4862ad66216ab980e8636e9f3cdbabbace6ee73c
2013-03-08 19:47:55 +00:00
Boris Pavlovic 47c7454d1b Make bm model's deleted column match database
In Models by default type of deleted column is Integer, but bm tabels
use Boolean type for deleted columns.This produce bug in postgresql
(type mismatch).

At this moment we are not able to do any db migrations, so there is
only one way to fix this bug. Change type of deleted columns in Models
from Integer to Boolean.

In Havana we will be able to change deleted columns types to type of id
for bm tables and use soft_delete and UC as in rest of nova.

Fixes bug 1140294

Change-Id: Id56c4bbff7048ed5c746dc995380be9ba0a12c39
2013-03-08 23:36:03 +04:00
Dan Smith cc8ec3d406 Remove uses of instance['instance_type'] from nova/scheduler
This is a tiny change in the actual code, but requires a bunch of
silly changes in the tests because we're so inconsistent with our
(ab)use of instance types there. This attempts to help clean that
up locally a bit.

This is one change in a series aimed at removing the use of instance-linked
instance_type objects, in favor of the decoupled type data in
system_metadata. See bug 1140119 for more details.

Change-Id: Ied1a944a7c762129597d18ded61ce1632657f070
2013-03-08 13:09:56 -05:00
Dan Smith d64f61f976 Remove uses of instance['instance_type'] from nova/api
This removes a test that attempted to delete the data from the
instance['instance_type'] structure and confirm that the flavor can
still be fetched. Since this data is no longer consulted in that
action (and will be removed altogether soon), this test is removed.

This is one change in a series aimed at removing the use of instance-linked
instance_type objects, in favor of the decoupled type data in
system_metadata. See bug 1140119 for more details.

Change-Id: I3ba56f9419aece5b9269a181264d09b117ecdb81
2013-03-08 13:09:56 -05:00
Dan Smith fcdd30a5fb Remove uses of instance['instance_type'] from nova/network
This is one change in a series aimed at removing the use of instance-linked
instance_type objects, in favor of the decoupled type data in
system_metadata. See bug 1140119 for more details.

Change-Id: I43c9e9b7d560d8803899360bd7142e393b793f3d
2013-03-08 13:09:52 -05:00
Dan Smith 86e4587fb3 Remove uses of instance['instance_type'] from nova/compute
Note that some tests were verifying things that can no longer fail, namely
rebuilding instances who use flavors that have since been disabled. These
tests are removed here.

Also, this changes the order of a piece of logic in the resize/migrate
path where before we would have ended up checking the instance type that
we fetched from sys_meta to see if it was disabled (which makes no sense
now). Reversing the check (to see if we're doing a resize or a migrate
before checking the new flavor) eliminates the problem of the stashed
type not having the 'disabled' attribute.

This is one change in a series aimed at removing the use of instance-linked
instance_type objects, in favor of the decoupled type data in
system_metadata. See bug 1140119 for more details.

Change-Id: I214a693e3bb16c0a365eb9b3afe73601beba4a22
2013-03-08 12:57:37 -05:00
Chris Krelle 79c55682dd Correct substring matching of baremetal VPD node names
This path corrects a issue where is_power_on function can incorrectly match a
node if its name is a substring of another node.

I have also added a test for this.

fixes bug 1152676
Change-Id: Ic3b0b952d53dcd4464098f98879a84684efe22b2
Authored-by: Chris Krelle <nobodycam@gmail.com>
2013-03-08 09:40:30 -08:00
Davanum Srinivas d8188ef322 Fix Wrong syntax for set:tag in dnsmasq startup option
Looks like the introduction of quotes in fix for previous
bug 1012443 was erroneous.

Fixes LP# 1152504

Change-Id: Ic84739e38e3b3567f1617302a33623de03196f85
2013-03-08 11:29:13 -05:00
Kravchenko Pavel 21b7149c5a Fix instance evacuate with shared storage
Fixes instance evacuation problem when --on-shared-storage flag
specified. The problem occurs as the password variable ends up being
accessed before it is assigned. Also adds missing test case.

Fixes bug 1152492

Change-Id: I461c0f7fcf8835028f7529a7860fb330d1759d68
2013-03-08 16:16:16 +02:00
Jenkins b099879222 Merge "Fixed image filter support for vmware" 2013-03-08 12:35:12 +00:00
Davanum Srinivas 5f5f8f616b Check CONF values *after* command line args are parsed
CONF.ssl_only will contain the default value till
parse_args is called.

Fix for LP# 1123540

Change-Id: Ib80d39b883c8ce2d6b813ca2b76051dd95ffb2b6
2013-03-07 21:07:20 -05:00
Joe Gordon abc0c94791 Make nova-manage db archive_deleted_rows more explicit
* max_rows must be positive
    Provide a better error message of 'nova-manage db archive_deleted_rows
    --max_rows=' is negative.
* Requires a max_rows
* No hidden default of 5000

Fix bug 1145609
Fix bug 1151064

Change-Id: I9078ff2700a0329ac4aff68bb434be5f16a5a3f1
2013-03-08 01:32:30 +00:00
Davanum Srinivas 175dfc1100 Fix for delete error in Hyper-V - missing CONF imports
Looks like we need to import the options explicitly

Fix for LP# 1140759

Change-Id: I21c09330c209f4e2178b6c0a6300944cd58d4423
2013-03-07 18:17:55 -05:00
kashivreddy a577fc5f77 add .idea folder to .gitignore pycharm creates this folder
Change-Id: Icbeabe1d3e102d9e447f46be96280e61aa364b74
2013-03-07 17:00:22 -06:00
Joe Gordon 0ef60856fb Make 'os-hosts/node1' case sensitivity defer to DB
RPC is case sensitive, but URL is not, and DB can be. So pull host_name from DB
in HostAPI RPC layer instead of from passed in from URL.  This means RPC will
always get the proper capitalization, and case sensitivity is defined in DB layer.

Fix bug 996879

Change-Id: I448dd4ec3aec4af1adf4487f26ea996db572fa3d
2013-03-07 22:30:00 +00:00
Chris Behrens 6a080df6bd Fix access_ip_* race
The code currently sets access_ip_* in a 2nd DB call after an instance
goes ACTIVE, which means there's a slight race when someone is querying
the API for their instance.  It's possible to see the instance ACTIVE but
access_ip_* will be blank.

To fix this, we should set access_ip_* at the same time the instance goes
ACTIVE.  This also removes an unnecessary extra DB call.

Fixes bug 1152328

Change-Id: I0fe542d49fbc95f27a24f57f674264f8789bc527
2013-03-07 21:48:22 +00:00
Jenkins e23769827d Merge "Add missing action_start if deleting resized inst." 2013-03-07 19:57:19 +00:00