Nova should depend on a version of quantum client that includes
API v2.0 support. That means the client version should be 2.0+ .
This was just pushed to PyPi today:
http://pypi.python.org/pypi/python-quantumclient/2.0
Change-Id: Ib9d997ceff92f2da6986d184b7b0da9e564800aa
This patch rewrites the Glance-specific code within Nova to use
the new python-glanceclient library. The old client is deprecated
in Folsom and should not be used in conjunction with
python-glanceclient.
This removes the dependency on installing 'glance' through pip.
Implements bp integrate-python-glanceclient
Fixes bug 880964
Change-Id: Ifb9e75593abd36a2d1c08773d02f192e5e5627fc
The topic argument to live_migration was removed on the manager side in
rpc API version 1.3, but was not removed from scheduler/rpcapi.py.
Remove it now.
Change-Id: I0b1c68848f7bd55f6f10c63b9433746f0a343a63
Dict and list objects are mutable and are usually the sources of
subtle bugs when used as default arguments. Avoid them.
Change-Id: I5340c7051455a80c4adfab885d89acb46570fa52
Fixes bug 1036084
bw_usage_update() most commonly updates rows vs creates rows. New rows
are only created on the 1st bandwidth update for an instance or when
the audit period rolls over. This cuts down DB queries to 1 for the
'update' case.
Added bonus:
Remove unused 'import inspect' in compute manager.
Change-Id: Ie5f6c919676046d817b842138dc9d17d1115d3c0
The RPC API passes admin_pass and injected_files as arguments, but when
calling the driver API, those values get stuffed into the instance dict
which is otherwise all data that is stored in the database. This has
led to some bugs (such as 1034948) which could have been avoided if
the code was consistent.
Change-Id: I09a7de8eca3791a5ab27e93b22e5ccccee31cf09
vm_states.RESIZED is not a list/tuple, use == to compare instead
of in (although it did work by accident in Python).
Change-Id: Ib739e729ae79a3f68ca0eac10167982bd3a6656c
Implements part of blueprint disable-server-extensions
Makes sure that auto_disk_config is only accepted in the create
server request if the extension is enabled. Note that the extension
alias is OS-DCF because it also adds output to the server
request.
Change-Id: I59fafe769e1e562e6bf9f6db768acc9b0f8d2b93
Fix conversion of TypeError to Fault in ResourceExceptionHandler.
TypeError can result when the list of extensions is inovked if the
parameters don't match the extension method's signature.
Specifically, if an empty body was sent with an HTTP POST to create a
server, a 500 error was returned. This change is a fix to properly
return a 400 instead.
(In Python2.6, the ex_value argument of __exit__ is type string when
ex_type is a TypeError, which caused the conversion logic to get
skipped.)
bug 1035120
Change-Id: I96ad335a6338523345d28b7e744dbc7449b4753d
In compute API, _delete() could reference reservations before it was
ever assigned, if the call to _update() or to QUOTAS.reserve() raised
an exception--the exception handlers test to see if reservations is
set, and if so, rolls the reservations back. This patch makes sure
the reservations variable is initialized to None before entering the
try: block.
Change-Id: I7e344074d8fd75b371d78abf8fd15b6f84023cef
This patch fixes a little HACKING issue. Import the collections module
instead of the defaultdict type from collections.
Change-Id: I59c6fe947b6ed03f13c3481b0484896e8daaa963
This is the first cut of config drive v2. Some points to note:
- implements a helper to create new-style config drives. These
config drives can be VFAT or ISO9660, this is controlled by
a flag. The current default is ISO9660.
- the config drives contain all the injected files, as well as
everything returned from the ec2 style metadata service. Only
the most recent version of the ec2 metadata is used, but future
versions will appear as well.
- the v1 functionality of specifying an image from glance to have
the files injected into is dropped.
- the location for file injection is now a directory named
openstack/files, not the root level of the filesystem. Filename
mapping is in the openstack metadata files.
- the default format for the config drive is iso9660, although
the previous vfat is available with a flag change.
- includes the first version of an openstack metadata format.
- there are some simple unit tests which probably need more done
to them.
Partially implements bp config-drive-v2.
Change-Id: I210fa4dd7d8d6be398a46b30a0d46b960e22d6b0
partially implements blueprint disable-server-extensions
moves filling out key_name variable behind conditional only
used when os-keypairs is enabled.
Adds unit tests to ensure this behaves as expected
(Remove debugging that was left in)
Change-Id: I87ce041c2093c93a1a2456ef51357593e9de0681
* NOTE: This is a port from cinder to nova volumes
* Now to view all volumes or volume snapshots across
all tenants you need to include the all_tenants=1
GET param in your api request.
* Fixes remaining issues blocking bug #967882
Change-Id: I7fe15e792b62e59973c7faa2cf1c52929ae5864f
bug 1034692
Quantum team is removing all v1 support in Folsom, so this code
will not be used or supported with Quantum Folsom release.
Change-Id: I4c397d5238fcc3a15320e052bdc4735dfec1f176