Fix timeout in EC2 CloudController.create_image()

Fixes bug 989764

The timeout bounding the wait for the instance to stop is intended
to be 1 hour, but the code incorrectly specifies 60 hours instead
(no practical client is going to wait that long for a response).

Change-Id: I7aa4b539393df15f3b2c950cf7aeca4691ed3d73
Update KillFilter to handle 'deleted' exe's.

Updates KillFilter so that it handles the case where the executable
linked to by /proc/PID/exe is updated or deleted.

Fixes LP Bug #967931.

Also added a unit test to test that 'deleted' exe's are
filtered correctly.

(cherry picked from commit b24c11b and commit 3d28e3d)

Change-Id: I368a01383bf62b64b7579d573b8b84640dec03ae
Get unit tests functional in OS X

* Add detection for directio to ensure the python runtime is built with O_DIRECT
* Extend stubbing in test_libvirt to also stub out _supports_direct_io

Change-Id: Id793d4039311396f0b3c3a52d2a1d951ec3c5e48
(cherry picked from commit cf7c0a7c10723495953be9bf99aedbe3838e0787)
Introduced flag base_dir_name. Fixes bug 973194

rebased from master.

If user faces locking related problem when two nova-compute hosts
sharing same disk area via nfs, try to download same image into
cache concurrently - Then base_dir_name can be set to "_base_$my_ip" in
nova.conf

Default value for base_dir_name is "_base" thus retaining existing
behavior.

Change-Id: Icff10ed75ba83f7256731614dc9e01e578b347a4
Fix bug 983206 : _try_convert parsing string

* _try_convert in ec2utils.py didn't handle strings starting with "0x"
* Added tests to cover bug
* Add better float support
* remove unused complex number support

Change-Id: I382d36f4a8671bcceccfa1ebdbae89a9d2aca207
(cherry picked from commit c95162e52899618fc269fb536f6a2d3b26b7794d)
QuantumManager will start dnsmasq during startup. Fixes bug 977759

Added _setup_network_on_host method, which calls update_dhcp
if quantum_use_dhcp is set.

Change-Id: I193212037873001a03da7b7a484f61a5c13b5de8
Fixes bug 952176

Checks if value is string or not before decode.

Change-Id: I3f839770fdd7b00223ce02b95b2a265d903fa00e
Merge "Get unit tests functional in OS X" into stable/essex
Merge "Introduced flag base_dir_name. Fixes bug 973194" into stable/essex
Merge "QuantumManager will start dnsmasq during startup. Fixes bug 977759" into stable/essex
Merge "Fix bug 983206 : _try_convert parsing string" into stable/essex
Merge "Update KillFilter to handle 'deleted' exe's." into stable/essex
Fix nova.tests.test_nova_rootwrap on Fedora 17.

Fix bug 992916

This patch resolves a unit test failure on Fedora 17.  The root cause is
that 'sleep' is '/usr/bin/sleep' instead of '/bin/sleep'.  Update the
test to allow that.

Change-Id: I5c8e04baec7159a8c10c9beb96cff58fd383e71c
Generate a Changelog for Nova

Ubuntu uses a tarball to generate packages for Nova and
other openstack projects. This allows the user to find out
what is included in the tarball.

Signed-off-by: Chuck Short <chuck.short@canonical.com>

Change-Id: I0291e19eee1ff2c5fc98b499571b2563841c6076
Fix type of snapshot_id column to match db

 * Migrations create a snaphsot_id column that is an integer, but
   models incorrectly list it as a string.
 * The above issue causes errors in certain situations when trying
   to list instances. It seems to be only certain db configurations
   or versions of sqlalchemy that exhibit the issue.
 * Issue was fixed in trunk as part of a conversion to uuids in
   commit 407e16b863bac1dfbf4e954837009abf9c17f018 so a straight
   backport is not possible
 * Fixes bug 962615

Change-Id: I8e9fc9712c141822890feffee838faf8b41ee4f5
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
(cherry picked from commit 0624b7aab0c0fe4869111ad8e302151548d6ba20)
Merge "Generate a Changelog for Nova" into stable/essex
Merge "Fix type of snapshot_id column to match db" into stable/essex
Nail pep8 dependencies to 1.0.1.

Nails the pep8 deps for tox and test-requires to 1.0.1.
Fixes an issues causing pep8 failures due to a new pep8 release.

(cherry picked from commit e3d7d3a)

Change-Id: I30be4909f052c29834afbfddba6007045afa519b
Fix bug 988034 - Quantum Network Manager - not clearing ips

Added a line in nova_ipam_lib.QuantumNovaIPAMLib init
method to ensure we clean up IPs and explanation of whats
going on.

Also, nuked release_fixed_ip as that is not
needed in QuantumManager anymore.

Change-Id: I3971b4d4c464ce68ba9370c9f5d8ca7840e0a72a