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>
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
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."
Add __repr__ to least_cost scheduler.

Change-Id: I883dd5a734ef71cef915abf95a7125926e07f3d0
Optional timeout for servers stuck in build

Fixes bug 994786

Change-Id: Iae86c002073f45b48acde8eae07f9b0f62488f90
Update nova's copy of image metadata on rebuild

Fixes bug 999318

Change-Id: Ib2ea908466e5ee4f05e94e68aecd77247e3f4a15
Merge "Remove XenAPI use of eventlet tpool"
Merge "handle updated qemu-img info output"
Merge "Add s3_listen and s3_listen_port options."
Merge "Add __repr__ to least_cost scheduler."
Merge "Updated instance state on resize error."
Merge "Update nova's copy of image metadata on rebuild"
Merge "Remove old flagfile support."
Merge "Optional timeout for servers stuck in build"
Make Iptables FW Driver handle dhcp_server None.

Updates the IptablesFirewallDriver so it doesn't set iptables rules
for the DHCP server if dhcp_server is None in network info.

Fixes LP Bug #1000522.

Change-Id: I08bcae49fb75f685c9eab4e10936fdab5b304e2b