3541 Commits

Author SHA1 Message Date
David Subiros
2fc769e1d8 Improve the liveness checking for services
With this modification both nova-manage and scheduler use the flag
service_down_time and check positive and negative values in a
correct way.
Fixes bug: 867674.

Change-Id: I15c48d80cafa2089cd228c09c61b0a1e513730e8
2011-10-21 13:32:01 +01:00
Jenkins
ecff45d629 Merge "Repartition and resize disk when marked as managed." 2011-10-19 18:08:04 +00:00
Jenkins
8c32fc3eb5 Merge "Remove dead DB API call." 2011-10-19 16:58:32 +00:00
Rick Harris
7c83b754dc Repartition and resize disk when marked as managed.
Implements part of the instance-disk-management blueprint.

Change-Id: I16d0f816cdf82ee1e19a323cb9976477924e4c5c
2011-10-19 11:45:42 -05:00
Chris Behrens
2e52ffc76b Remove dead DB API call.
Removes instance_set_state() from db/api.py.  The sqlalchemy version was
removed a while ago so this call is dead.

Change-Id: Icf6f55481bc0c6a9394ca9b7a15fcdab2c1ad483
2011-10-19 09:43:02 -07:00
Jenkins
b0119996c1 Merge "Remove unused flag_overrides from TestCase" 2011-10-17 18:38:39 +00:00
Mark McLoughlin
7bb73a620a Remove unused flag_overrides from TestCase
This was replaced by _original_flags in e0ae19c7a, but it wasn't
actually removed.

Change-Id: I89ed7de263ff040d86dea970aa8fcda640d19f79
2011-10-15 16:44:56 +01:00
Jenkins
49eff2ef0d Merge "Adds the ability to automatically issue a hard reboot to instances that have been stuck in a 'rebooting' state for longer than a specified window." 2011-10-14 19:04:13 +00:00
Jenkins
f127d7d63c Merge "Xenapi driver can now generate swap from instance_type" 2011-10-14 18:54:09 +00:00
Rick Harris
acc5488acf Xenapi driver can now generate swap from instance_type
Change-Id: I50268a85ccd62b019436a207c2b52b1901597564
2011-10-13 18:46:38 -05:00
Josh Kearney
f60d3eff5c Adds the ability to automatically issue a hard reboot to instances that have been stuck in a 'rebooting' state for longer than a specified window.
Fixes bug 873099.

Change-Id: Ife2c64326fdb3ec849242583d1bd1d96f9f4be0f
2011-10-13 16:12:42 -05:00
Jenkins
7106eb8f5c Merge "Adds more usage data to Nova's usage notifications." 2011-10-13 20:56:29 +00:00
Monsyne Dragon
697cfecb59 Adds more usage data to Nova's usage notifications.
Adds in bandwidth, state and IP data on standard notifications,
and new notifications on add/remove IP.

These were missing before, and are needed to meet spec.
This fixes bug 849117

Change-Id: Ie586ff3a91a56e5f5eff8abc6905ba6a0b624451
2011-10-12 19:11:14 +00:00
Jenkins
d0f4a18e99 Merge "Fix the grantee group loading for source groups" 2011-10-12 00:21:42 +00:00
Vishvananda Ishaya
427ce26919 Remove AoE, Clean up volume code
* Removes Ata Over Ethernet
 * Adds drivers to libvirt for volumes
 * Adds initialize_connection and terminate_connection to volume api
 * Passes connection info back through volume api

Change-Id: I1b1626f40bebe8466ab410fb174683293c7c474f
2011-10-11 14:25:04 -07:00
Jenkins
ab0ef769e2 Merge "moved floating ip db access and sanity checking from network api into network manager added floating ip get by fixed address added fixed_ip_get moved floating ip testing from osapi into the network tests where they belong" 2011-10-10 17:01:35 +00:00
Julien Danjou
db69ed2017 Include original exception in ClassNotFound exception
By doing this, we allow the error messages to be more useful. When an import
of a class fails because of a missing module dependency, it would have fail
that way for example:

$ nova-manage
Traceback (most recent call last):
  File "./bin/nova-manage", line 84, in <module>
    from nova import image
  File "/home/jd/Work/src/nova/nova/image/__init__.py", line 22, in <module>
    from nova.image import glance
  File "/home/jd/Work/src/nova/nova/image/glance.py", line 42, in <module>
    GlanceClient = utils.import_class('glance.client.Client')
  File "/home/jd/Work/src/nova/nova/utils.py", line 66, in import_class
    raise exception.ClassNotFound(class_name=class_str)
nova.exception.ClassNotFound: Class Client could not be found

This does not help the user, since it indicates the class Client cannot be
found, even if it is actually found but fail to import.

With this commit, the error message is better:
nova-manage
Traceback (most recent call last):
  File "./bin/nova-manage", line 84, in <module>
    from nova import image
  File "/home/jd/Work/src/nova/nova/image/__init__.py", line 22, in <module>
    from nova.image import glance
  File "/home/jd/Work/src/nova/nova/image/glance.py", line 42, in <module>
    GlanceClient = utils.import_class('glance.client.Client')
  File "/home/jd/Work/src/nova/nova/utils.py", line 66, in import_class
    raise exception.ClassNotFound(class_name=class_str, exception=exc)
nova.exception.ClassNotFound: Class Client could not be found: No module named kombu.connection

This helps to know that in this kombu is missing.

It would probably even better to rename ClassNotFound to
ClassCannotBeImported or something like that too.

Change-Id: I4100d931a0a825fa0729d5467d2f9268fdd2a261
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2011-10-10 09:55:37 +02:00
Jenkins
cfaaa18580 Merge "Allow db schema downgrades" 2011-10-07 20:27:30 +00:00
Stanislaw Pitucha
6915d1e912 Allow db schema downgrades
When a destination version is specified, check the current version and allow
downgrading the schema. Fixes bug 865357.

Change-Id: I47104158884421de92f50322a72243c170a4f1ad
2011-10-03 17:12:14 +01:00
Trey Morris
9f6acdf1e8 moved floating ip db access and sanity checking from network api into network manager
added floating ip get by fixed address
added fixed_ip_get
moved floating ip testing from osapi into the network tests where they
belong

Change-Id: I3ee53971206e37405a2adc2491412f7896e1af87
2011-09-30 15:39:02 -05:00
Aaron Lee
8573160d11 Adding run_test.sh artifacts to .gitignore
Adding myself to the Authors file.

Change-Id: Ifcedc2b7925f293cc47fb1eda9fbc14fa045918a
2011-09-27 10:31:44 -05:00
Jenkins
f8d9ef3cff Merge "Fix some minor issues due to premature merge of original code." 2011-09-27 04:40:23 +00:00
Vishvananda Ishaya
bec64033f8 Fix the grantee group loading for source groups
Fixes bug 859679.

Change-Id: Ia0b90b8373a02955f23b6dda0495f01511762822
2011-09-26 08:34:48 -07:00
Johannes Erdfelt
1a0c983020 Fix some minor issues due to premature merge of original code.
Consolidate duplicated code between delete() and force_delete(). Treat soft
deleted instances like hard deleted instances in queries. Fix running unit
tests individually do to using flags from a non-imported module.

blueprint deferred-delete-instance

Change-Id: Id58b607320536364867ee5c8d347b250406d9a2d
2011-09-26 02:56:08 +00:00
Jason Koelker
6248bd3be8 * Rework osapi to use network API not FK backref
* Fixes lp854585

Change-Id: I270794a08a1bfafe7af427cd31f1f60df1faa4ba
2011-09-25 12:24:52 -05:00
Rick Harris
405ced43f8 This patch adds flavor filtering, specifically the ability to flavor on minRam, minDisk, or both, per the 1.1 OSAPI spec.
In addition, this patch refactors instance_type_get_all to return a *list* of instance_types instead of a *dict*. This makes it more consistent with the rest of the DB API.
2011-09-22 16:42:20 +00:00
William Wolf
55205499fd Add next links for server lists in OSAPI 1.1. This adds servers_links to the json responses, and an extra atom:link element to the servers node in the xml response. 2011-09-22 15:41:34 +00:00
Rick Harris
77bf4e00f1 Merging trunk 2011-09-21 17:50:02 -05:00
Rick Harris
387594ced6 Adding OSAPI tests for flavor filtering 2011-09-21 17:49:35 -05:00
Rick Harris
66416b088c This patch adds instance progress which is used by the OpenStack API to indicate how far along the current executing action is (BUILD/REBUILD, MIGRATION/RESIZE).
For the first cut, we decided to keep it simple and compute progress by counting discrete steps. This is not ideal since some steps, in particular, steps which involve transferring large amounts of data over the network, take *much* longer than others. A better approximation would account for the data-transferred to the destination host, since in most cases, this dominates the time spent.

In addition to adding progress, this patch:

- Allows resizes to use same host for source and destination which is useful for dev environments without a second host. This is enabled by the --allow_resize_to_same_host flag.

- Fixes a bug in the glance and migration XenAPI plugins where the VHDs were being copied into the SR in the wrong order. Before the base-copy was copied first meaning it was possible for snapwatchd to see the base-copy before the dependent cow was present. It was treat the base_copy as an unreferenced parent, and GC it.

- Additional refactoring and cleanups.
2011-09-21 22:14:15 +00:00
Rick Harris
a89584f61d Merging trunk 2011-09-21 17:07:56 -05:00
Chris Behrens
7da4c3e26b Fixes lp:855115 -- issue with disassociating floating ips. 2011-09-21 21:31:32 +00:00
Rick Harris
b8201a0b9f Renumbering instance progress migration 2011-09-21 16:00:53 -05:00
Rick Harris
55ac7c9a32 Fixing tests 2011-09-21 15:59:40 -05:00
Sandy Walsh
cec08929d9 Keystone support in Nova across Zones. 2011-09-21 20:52:18 +00:00
Sandy Walsh
fe74ca3674 trunk merge fixup 2011-09-21 13:17:05 -07:00
Josh Kearney
ece99596a9 Adds an 'alternate' link to image views per 3.10 and 3.11 of http://docs.openstack.org/cactus/openstack-compute/developer/openstack-compute-api-1.1/content/LinksReferences.html 2011-09-21 18:27:23 +00:00
Rick Harris
eb190a64c0 Merging trunk 2011-09-21 16:30:30 +00:00
Rick Harris
10baa29ecc Adding flavor filtering 2011-09-21 16:29:36 +00:00
Johannes Erdfelt
ad885d1c0b Instance deletions in Openstack are immediate. This can cause data to be lost accidentally.
This branch adds a new configuration flag, reclaim_instance_interval. The default of 0 results in the same behavior before this patch, immediate deletion of the instance. Any value greater than 0 will result in the instance being powered off immediately and then later the instance will be reclaimed.

New actions, restore and forceDelete allow a previously deleted instance to be restored, or reclaimed immediately.
2011-09-21 15:54:30 +00:00
Vishvananda Ishaya
cf1f44c213 Makes sure ips are moved on the bridge for nodes running dnsmasq so that the gateway ip is always first. 2011-09-21 13:31:54 +00:00
Sandy Walsh
dcdddfa68b clean up based on cerberus review 2011-09-21 05:04:37 -07:00
Vishvananda Ishaya
5f86e74bad Remove keystone middlewares. 2011-09-21 10:47:07 +00:00
Chris Behrens
fcae82a644 Merged trunk 2011-09-21 09:00:18 +00:00
Vishvananda Ishaya
af21c968c0 merged trunk 2011-09-21 02:00:07 -07:00
Chris Behrens
425ee80d43 floating ip could have no project and we should allow access 2011-09-21 08:37:54 +00:00
Chris Behrens
68b79db44a actions on floating IPs in other projects for non-admins should not be allowed. 2011-09-21 08:27:48 +00:00
Chris Behrens
3d8502c36a floating_ip_get_by_address should check user's project_id 2011-09-21 06:40:52 +00:00
Rick Harris
49ac70f78b Pep8 fixes 2011-09-21 03:55:28 +00:00
Rick Harris
92238a3ff3 Merging trunk 2011-09-21 03:33:55 +00:00