Updated instance state on resize error.

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

Change-Id: I2e2f7a98be4b2edfc7d51a4d8d9e31b7b418f2ba
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
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>
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>
Merge "Fix libvirt Connection.get_disks method"
Migrate missing license info

Fixes bug #998965

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

Change-Id: I40efeb2f72b08e117b3a1b1fe25e51d8b4fa9700
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
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>
Create an internal key pair API.

Creates an internal key pair API and update the EC2 and OS API's to
use it. This de-duplicates some of the code used to manage keypairs
across the APIs.

Fixes LP Bug #998059.

Change-Id: I10d58d7ce68cc2b993c72b6639f66c72def3bfbc
Merge "Report memory correctly on Xen. Fixes bug 997014"
Merge "Make allocation failure a bit more friendly"
Merge "Avoid setting up DHCP firewall rules with FlatManager"
Pass 'nova' project into ConfigOpts.

Fixes bug 999305

The problem was that, post refactoring, `ConfigOpts.find_file` was no
longer searching `/etc/nova` for config files.

Change-Id: I3dee8d8f24ae3912e07dcb9d19086d55eb98ccaa
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
Alphabetize imports in nova/virt/

Change-Id: Ifca489da67cc834284ee2f2beeaafb28f0638f7e
Alphabetize imports

Except for nova/api/, nova/tests/, nova/virt/
In preparation for automated checking being enabled (N306)

Change-Id: I5af70ea13b470ce58695ef0a5e0ff9da3ac1b135
Merge "Create an internal key pair API."
Merge "Pass 'nova' project into ConfigOpts."
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
Merge "Alphabetize imports"