Commit Graph

14068 Commits

Author SHA1 Message Date
Joe Gordon 6cb7801ac7 Alphabetize imports
Except for nova/api/, nova/tests/, nova/virt/
In preparation for automated checking being enabled (N306)

Change-Id: I5af70ea13b470ce58695ef0a5e0ff9da3ac1b135
2012-05-14 15:52:21 -07:00
Craig Vyvial fbae8d09fd Adding notifications for volumes
Added notifications for volumes have been added with tests.
This includes create/delete/exists events for volumes.

blueprint nova-notifications

Change-Id: I21b74974fac22c3621ccf7564dc5c0d339f8751a
2012-05-14 16:34:08 -05:00
Jenkins b3e2bae381 Merge "Avoid setting up DHCP firewall rules with FlatManager" 2012-05-14 18:58:07 +00:00
Jenkins 0e09b3357b Merge "Make allocation failure a bit more friendly" 2012-05-14 18:39:18 +00:00
Jenkins 5ada1043a1 Merge "Report memory correctly on Xen. Fixes bug 997014" 2012-05-14 18:29:55 +00:00
Chuck Short 8b597f76f9 Make allocation failure a bit more friendly
If the user allocates the wrong address display
a message about incorrect address rather than a traceback.

Fixes LP: #957707

Change-Id: I8ccd3056f755afb9f873a25fd494428e481ff3a2
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2012-05-14 08:56:10 -04:00
hua zhang 763a367840 Avoid setting up DHCP firewall rules with FlatManager
Fixes bug #704737

With FlatManager, ensure that the network info's dhcp_server value is not set
and use that key to decide in the compute service whether DHCP firewall rules should be added.

Change-Id: I8183a6fa3881adea1a09f3f1a29442e6b7a919ce
2012-05-14 17:12:29 +08:00
Zhongyue Luo 4ec81d6d5b Migrate missing license info
Fixes bug #998965

Some modules in nova/db/sqlalchemy/migrate_repo
are missing license information

Change-Id: I40efeb2f72b08e117b3a1b1fe25e51d8b4fa9700
2012-05-14 04:00:42 +00:00
Jenkins 2c7e0d1e63 Merge "Fix libvirt Connection.get_disks method" 2012-05-13 21:29:57 +00:00
Jenkins 8a2d65713d Merge "Create a utf8 version of the dns_domains table." 2012-05-11 22:29:47 +00:00
Jenkins cd04e9e284 Merge "fix bug 992008, we should config public interface on compute" 2012-05-11 22:04:13 +00:00
Jenkins 0768a6adb7 Merge "Added img metadata validation. Fixes bug 962117." 2012-05-11 21:56:39 +00:00
Jenkins a07fddf525 Merge "Use default qemu-img cluster size in libvirt connection driver" 2012-05-11 21:49:00 +00:00
Jenkins b7e9b4b604 Merge "Setup logging, particularly for keystone middleware" 2012-05-11 21:23:33 +00:00
Jenkins 8c2e0737ff Merge "Destroy system metadata when destroying instance" 2012-05-11 18:20:59 +00:00
Jenkins 96685450ae Merge "Store image properties with instance system_metadata" 2012-05-11 16:40:57 +00:00
Jenkins 15e774deb8 Merge "Provide a transition to new .info files." 2012-05-11 16:28:31 +00:00
Jenkins 8374ba0f03 Merge changes I144e5331,I96a7222a
* changes:
  Remove unnecessary stubout_loopingcall_start
  Actually use xenapi fake setter
2012-05-11 16:18:05 +00:00
Julien Danjou a345ee5aff Fix libvirt Connection.get_disks method
The get_disks() method is not used anywhere yet, and is not tested properly,
but it does not work as reported in bug #998089.

This patch add unit test for it and fixes it so it's now possible to
retrieve the list of device name associated with a libvirt domain.

Change-Id: If09fb683364174fe02cbcbec4c6bbcda991287d6
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2012-05-11 18:06:22 +02:00
Dan Prince 7b5fdac84b Create a utf8 version of the dns_domains table.
The old dns_domains table was encoded in the 'latin1'
charset and has its primary key length set to 512.
This is too long to be a valid pkey in a proper 'utf8' encoded
table and seems to cause a slew of errors like:

1) Dumping a database with mysqldump and trying to import it fails
because this table is latin1 but fkeys to utf8 tables (projects).

2) Trying to alter the old dns_domains table fails with errors
like:
 mysql> ALTER TABLE dns_domains DROP PRIMARY KEY;
 ERROR 1025 (HY000): Error on rename of './nova/#sql-6cf_855'....

This patch creates a new migration that re-creates the dns_domains
table with a shorter 'domain' column which works with the utf8
charset.

Fixes LP Bug #993663.

Change-Id: I2060d39cbdabd20f410ebd501160a04c51641755
2012-05-11 11:56:36 -04:00
Jenkins 0598ec2d36 Merge "Docs for vm/task state transitions." 2012-05-11 15:46:44 +00:00
Alessio Ababilov f6088545d2 Setup logging, particularly for keystone middleware
Fixes bug 979282 and bug 988951

Change-Id: I895d00ac9648e8b3cb3ad1bf141c9bfe02ef3680
2012-05-11 17:44:57 +03:00
Jenkins 388e4098e3 Merge "Remove instance Foreign Key in volumes table, replace with instance_uuid" 2012-05-11 14:41:50 +00:00
Jim Fehlig de5cb27e64 Use default qemu-img cluster size in libvirt connection driver
The recommended cluster size [1] for qcow2 is 64k, which is the default
when invoking 'qemu-img create ...'.  Remove the cluster_size option
from qemu-img invocation.

[1] http://www.mail-archive.com/openstack@lists.launchpad.net/msg11371.html

V2: Fix test.

Change-Id: Iafc290720a820cb5f57ded10a2f584fdc5cd5b49
2012-05-11 07:30:56 -07:00
Unmesh Gurjar e064a4ea75 Added img metadata validation. Fixes bug 962117.
1. Added validation for image metadata.
2. Renamed the method 'check_img_metadata_quota_limit' to
'check_img_metadata_quota_limit' since it also validates the image metadata.
3. Added unit test cases.

Change-Id: I0e9dad97c03070363d14977897701e146870e41a
2012-05-11 16:23:15 +05:30
Johannes Erdfelt 991953d79c Remove unnecessary stubout_loopingcall_start
The xenapi driver no longer uses utils.LoopingCall

Change-Id: I144e5331e871570d8d22b87844ecebb63ed02697
2012-05-11 05:04:57 +00:00
Johannes Erdfelt 9ca55d8e50 Actually use xenapi fake setter
It was implemented (with a small bug), but never used. Also, lean on
the xenapi fake over using stubs in the migration tests to ensure we
test more code.

Change-Id: I96a7222a017302332bd6a3600fa645a74c502944
2012-05-11 04:56:15 +00:00
Michael Still 2549018c81 Provide a transition to new .info files.
Change-Id: I2fb6ef93c0652a797dba72cf75fb78baaa9c9c5a
2012-05-11 14:54:54 +10:00
Chris Behrens 7d390243c4 Store image properties with instance system_metadata
In implementing adding 'image_meta' to instance notifications,
this was committed:

https://review.openstack.org/#/c/7309
commit 53adfd289b

However, it's buggy because an instance could have been deleted after we
built from it... and bin/instance-usage-audit uses an admin context with
which we cannot query glance.

This stores image properties with instances in nova as system_metadata
and notifications will use that data.

Fixes bug 997833

Change-Id: I50575969b5cb28adaae9a713e749dc486772c417
2012-05-11 03:00:53 +00:00
Jenkins bf6673a595 Merge "Use ConfigOpts.find_file() to find paste config" 2012-05-11 01:42:15 +00:00
Jenkins 8aef8b8397 Merge "Generate a Changelog for Nova" 2012-05-11 01:32:02 +00:00
Chris Behrens 95693cb2a1 Destroy system metadata when destroying instance
instance system_metadata was not being marked as deleted when an
instance is marked as deleted.

Fixes bug 997849

Change-Id: I876b402ca33f4574bb426615f6c467ded6908fc2
2012-05-11 00:21:00 +00:00
Chris Behrens 584917cce5 Fix XenServer windows agent issue
Windows agent requires an argument of either 'agent' or 'xentools' to
the 'version' command.  All we care about is 'agent', so add it.  The
unix agent happily ignores the arg.

Fixes bug 997805

Change-Id: Ic369c8a2850173057da9d3175a02b5864d7a6514
2012-05-10 21:17:16 +00:00
Mark McLoughlin 16c5dbf156 Use ConfigOpts.find_file() to find paste config
Use cfg's new helper method to find the paste deploy config file. The
basic behavior is "look alongside the config file" with a fall back to
the standard default config paths.

Change-Id: If7a9ac1d456f372e3f5f6c78e237a7b099d1a30e
2012-05-10 22:10:46 +01:00
Jenkins e00e45be42 Merge "Use ConfigOpts.find_file() to locate policy.json" 2012-05-10 20:24:51 +00:00
John Griffith dcad314fb9 Remove instance Foreign Key in volumes table, replace with instance_uuid
* Remove the instance relationship and instance_id FK
* Add instance_uuuid column to volumes table
* Passed unit tests and devstack tests

Change-Id: Id598f1f1d7915d1af6bf3dd75e5819dce08aaa0f
2012-05-10 13:36:32 -06:00
Brian Elliott d9ed812220 Removed unused snapshot_instance method
Removed snapshot_instance method on base virt driver.  It is
essentially an unused duplicate of the snapshot method.

Change-Id: I082075d8d6797bd60072d375f3ce16704ff6351e
2012-05-10 16:51:18 +00:00
Jenkins 955bfa2c7f Merge "Added image metadata to compute.instance.exists" 2012-05-10 16:23:50 +00:00
Jenkins 31efac3a6e Merge "Minor help text related changes" 2012-05-10 16:12:51 +00:00
Alvaro Lopez Garcia 5b93a57658 Report memory correctly on Xen. Fixes bug 997014
/proc/meminfo may show wrong values for the memory when using Xen, so
this fix computes the memory quering libivrt.

Change-Id: I188e2d34bcee13954653b93b9b816cf4530b8859
2012-05-10 18:00:31 +02:00
Brian Elliott 53adfd289b Added image metadata to compute.instance.exists
Added image metadata to compute.instance.exists notification.
This information is a convenience to assist billing/usage systems
by providing information about the image the instance was built
from.

Change-Id: I27e8c048ed419858ba2eb3e20c25ac454b0419b6
2012-05-10 15:34:05 +00:00
Jenkins 1d53273d67 Merge "API does need new image_ref on rebuild immediately." 2012-05-10 15:01:26 +00:00
Dan Prince 190775d5ea Update PostgreSQL sequence names for zones/quotas.
Fixes LP Bug #993667.
Fixes LP Bug #993669.

Change-Id: Ifcc33929ced617916bd6613fc941257494f4a99b
2012-05-10 09:14:44 -04:00
Mandar Vaze e625300b92 Minor help text related changes
based on comments from https://review.openstack.org/#/c/7269
Removed duplicate declaration from test cases.

Change-Id: I090cd3ba0aa2ed3720223deea5e44cfe71682fe0
2012-05-10 03:06:02 -07:00
Jenkins c45595cc33 Merge "fix bug 977007,make nova create correct size of qcow2 disk file." 2012-05-09 23:23:41 +00:00
Chris Behrens b5db5a346f API does need new image_ref on rebuild immediately.
This restores the DB update for image_ref immediately on rebuild, but
passes the old image_ref to the manager for use with instance.exists
notification.

Fixes the fix for bug 997245

Change-Id: I8cf6a8759e8fe605bb023048a320b15eee3bcd80
2012-05-09 21:11:30 +00:00
Dan Prince d879dc9e0d Avoid unnecessary inst lookup in vmops _shutdown.
Updates the XenServer vmops.py _shutdown function so that it
avoids calling get_info/_get_vm_opaque_ref with the instance name.
Since _shutdown already has the vm_ref there is no need to make
this call.

This fixes an issue where 'RESIZE' was broken when resizing to
the same host.

Fixes LP Bug #997313.

Change-Id: Ic5a1a0f92df9a2b809aef20a250843bf48402d75
2012-05-09 16:37:37 -04:00
Jenkins 27873b4196 Merge "implement blueprint floating-ip-notification." 2012-05-09 20:32:56 +00:00
Jenkins 51dc42ff41 Merge "Defer image_ref update to manager on rebuild" 2012-05-09 20:11:16 +00:00
Jenkins c9b32939c7 Merge "Sync to newer openstack.common.cfg" 2012-05-09 20:01:53 +00:00