Updated instance state on resize error.

Fixes bug 980685.
Set instance vm_state to ERROR if network node down during resize.

Change-Id: I2e2f7a98be4b2edfc7d51a4d8d9e31b7b418f2ba
Remove old flagfile support.

Implements blueprint remove-old-flagfile

nova-manage can still be used to convert old flagfiles style files
to new .ini files:

$ ./bin/nova-manage  config  convert --help
Usage: nova-manage config convert <args> [options]

Options:
  -h, --help        show this help message and exit
  --infile=<path>   old-style flagfile to convert to config
  --outfile=<path>  path for output file. Writes configto stdout if not
                    specified.

Change-Id: Ib8fbbd858b1db7faef70d7d97955e5042bf378f2
Signed-off-by: Ghe Rivero <ghe@debian.org>
Imported Translations from Launchpad

Change-Id: Ie1c613e5690d3c2956f5d10f55985d9b4f3a86cc
fixes bug 999206

override the __unicode__() method too for python 2.6

Change-Id: Iec76c49585e29071415d937861e94d14ff22cc04
Implement get_hypervisor_hostname for libvirt.

Implements get_hypervisor_hostname so that the
OS-EXT-SRV-ATTR:hypervisor_hostname extension can properly
display this information when using libvirt.

Fixes LP Bug #999729.

Change-Id: I124d48ca352dc225f88999046f9d212ffb9e4c6e
Remove unused _get_target code from xenapi

 * Removes _get_target code from volume_utils
 * Code was changed to pull iscsi from connection_info
   in eb03d47fecd3bfc24243da29ee01679b334a08fe
 * Removes associated stubs

Change-Id: I50b4b40ac53c5bc76f32a953b94eaa024dc464b3
Make use of openstack.common.jsonutils.

This patch imports jsonutils from openstack-common.  It removes the
equivalent code from nova.utils and then converts the code base to use
jsonutils.  The primary motivator for this change was to remove the rest
of the dependencies from nova.rpc on nova.utils.

Change-Id: If43658b9b098ed56cba018c81be268b8c3e2916a
Stop using nova.exception from nova.rpc.

This patch is a part of continuing to remove dependencies from nova.rpc
on the rest of nova.  One RPC related exception was defined in
nova.exception, so that was moved to nova.rpc.common where the rest of
them live.  These exceptions were changed to no longer use NovaException
as their base.  Instead, there is a new RPCException base.

One other change that should be reviewed closely is the removal of using
nova.exception.wrap_exception() in nova.rpc.amqp.  As far as I can tell,
this didn't actually do anything since nothing was being passed in to
wrap_exception().

Change-Id: I36ff7c05ab0467ad8506b56d561c532eadf8dff8
get instance details results in volumes key error

* fixes bug 999043
* this code was still looking for instance FK in volumes
* changed contrib/compute volume.api:attach to use bdm
* added minimal tests for changes in Attach class

Change-Id: I19c7aff25182aa55741ec4d80b7e30f7e66ca998
Remove XenAPI use of eventlet tpool

XenAPI implementation does not block, even with it using SSL, therefore
there's no need to use eventlet's tpool.

Change-Id: I33ef4140068c8af06d27a075f52379581790c647
Merge changes I36ff7c05,If43658b9

* changes:
  Stop using nova.exception from nova.rpc.
  Make use of openstack.common.jsonutils.
Misused and not used config options

Fixes bug #1000071

[nova.flag.py]
stub_network: StrOpt -> BoolOpt

[nova.api.sizelimit.py]
osapi_max_request_body_size: BoolOpt -> IntOpt

[nova.compute.api.py]
find_host_timeout: not used

[nova.rpc.__init__.py]
allowed_rpc_exception_modules: IntOpt -> ListOpt

[nova.virt.vmwareapi_conn.py]
vmwareapi_api_retry_count: FloatOpt -> IntOpt

[nova.volume.driver.py]
num_shell_tries: StrOpt -> IntOpt
num_iscsi_scan_tries: StrOpt -> IntOpt

[nova.volume.driver.py]
san_thin_provision: 'true' -> True
san_is_local: 'false' -> False

Change-Id: I07ab60b1d881c9475f4f2517a432f1e934d8ae52
Add s3_listen and s3_listen_port options.

Adds s3_listen and s3_listen_port options to the Nova Objectstore
service so that it matches config options from other Nova API services.

Fixes LP Bug #1000220.

Change-Id: Ie6d89af7fc8de0c5cef846315171d0f9c9e3db35
Rearchitect quota checking to partially fix bug 938317.

This is a rearchitecting/rewriting of quota handling to correct the
quota atomicity issues highlighted by bug 938317.  Partially implements
blueprint quota-refactor as well.

This change is fairly substantial.  To make it easier to review, it has been
broken up into 3 parts.  This is the first part.

Change-Id: I805f5750c08de17487e59fe33fad0bed203188a6
handle updated qemu-img info output

Originally `qemu-img info` always output an (actual path: ...)
even if it was duplicated with that already on the line.

 $ instances=/var/lib/nova/instances/
 $ qemu-img info $instances/instance-00000017/disk | grep 'backing'
 backing file: $instances/_base/24083... (actual path: $the_same)

Whereas after the change referenced at:
https://lists.gnu.org/archive/html/qemu-devel/2012-05/msg01468.html
It suppresses a duplicate (actual path:)

 $ instances=/var/lib/nova/instances/
 $ qemu-img info $instances/instance-00000017/disk | grep 'backing'
 backing file: $instances/_base/24083...

* nova/virt/libvirt/utils.py (get_disk_backing_file):
Avoid an indexError exception when parsing the newer format.
Fixes bug 1000261

Change-Id: Ie2889b6da8a5c93e0e874e7a330529f6e6e71b0b
Merge "Rearchitect quota checking to partially fix bug 938317."
Bump XenServer plugin version

Change-Id: I7a9389a8b07b78dec083f2a39c0ca6d9f3705ad3
Add __repr__ to least_cost scheduler.

Change-Id: I883dd5a734ef71cef915abf95a7125926e07f3d0
Modify vm_vdi_cleaner to handle `-orig`.

Also modifies the code to better handle various race conditions.

Fixes bug 1000359

Change-Id: I421b5827330da550810598cfbacc5bb679b477c7
Add configurable timeout to Quantum HTTP connections.

Fixes bug 1000371

Change-Id: I02805d5607feb0b2443e71c30fe7e9042d9b062a