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
bug #999953 xenapi driver intermittently fail to detach vbd

ensure that unplug_vbd raises XenAPI.Failure as required by
vbd_unplug_with_retry(session, vbd_ref).

Change-Id: If689da4ebc5d9042f26c765afb02ae611967a66b
Report memory correctly on Xen. Fixes bug 997014

/proc/meminfo may show wrong values for the memory when using Xen, so
this correctly computes the memory by querying libvirt.

Change-Id: I188e2d34bcee13954653b93b9b816cf4530b8859
Merge "Report memory correctly on Xen. Fixes bug 997014" into stable/essex
Fix up protocol case handling for security groups.

Fix bug 985184.

When creating security group rules, any case for the protocol was
accepted as input, such as TCP, Tcp, tcp, etc., and was stored in the
database as specified.  However, unless specified as all lowercase, the
code to apply the rules would break and result in some rules not being
applied.

(cherry picked from commit ff06c7c885dc94ed7c828e8cdbb8b5d850a7e654)

Change-Id: If737104f492aacd3688f04d78eb9bc993ffa33fc
Fix bug 1006664: describe non existent ec2 keypair

Change-Id: I92bfd6b51aa31abb06e21893174101da31baffd8
(cherry picked from commit 29baa0ec661c2578ad0aabd138a6b84e5c7a0b40)
Create a utf8 version of the dns_domains table.

The old dns_domains table was encoded in the 'latin1'
charset and has its primary key length set to 512.
This is too long to be a valid pkey in a proper 'utf8' encoded
table and seems to cause a slew of errors like:

1) Dumping a database with mysqldump and trying to import it fails
because this table is latin1 but fkeys to utf8 tables (projects).

2) Trying to alter the old dns_domains table fails with errors
like:
mysql> ALTER TABLE dns_domains DROP PRIMARY KEY;
ERROR 1025 (HY000): Error on rename of './nova/#sql-6cf_855'....

This patch creates an Essex fix that re-creates the dns_domains
table with a shorter 'domain' column which works with the utf8
charset. This database upgrade will run on MySQL databases only
which have a dns_domains table with a domain column length of
VARCHAR(512).

Fixes LP Bug #993663 on Essex.

Change-Id: I97888fbc18ebfc0e25c9ba31160588c9cdf5c448
Only invoke .lower() on non-None protocols

When using source group based security group rules (rather than CIDR
based ones), it's permissible to not set a protocol and port. However,
Nova would always try to convert the protocol to lower case, which would
fail if the protocol wasn't set.

Fixes bug 1010514

Change-Id: I9b1519a52ececd16a497acebfe022508cbe96126
Implements resume_state_on_host_boot for libvirt.

Adds a new virt driver function to help resume guest states
on host boot. This fixes a couple issue with using a reboot
(like we did previously):

 * Using reboot would clear some task states (VERIFY_RESIZE for example)
 * Provides a mechanism for hypervisor specific guest restarts.
   Reboot would not have worked for XenServer for example...
 * Updates libvirt to use a hard reboot (instead of soft)

Fixes LP Bug #985162.

Change-Id: Iaf5aad75ec9b91f44710a18ddaf3a93378573a62
(cherry picked from commit 6548c509f1780a7168f26de6f2045ec7d5768520)
Merge "Fix bug 988034 - Quantum Network Manager - not clearing ips" into stable/essex
Add caching to openstack.common.cfg

Speedup of 'nova list' benchmark by up to 40%, eliminates 3 lines in
top-10 cProfile methods.

(includes subsequent refactoring by Mark McLoughlin)

(cherry picked from commits 0d33dc3, 288939b and acf14ff)

Change-Id: I2d4636f94d88b4a7e38d1565fdd4d1b8a89e560e
Bump version to 2012.1.1

Set version to 2012.1.1, but with final=False

See http://wiki.openstack.org/StableBranchRelease

Change-Id: Id7a910b34e1d42bf314f18ce69bf3ff674502435
Merge "Implements resume_state_on_host_boot for libvirt." into stable/essex
Ensure dnsmasq accept rules are preset at startup.

Fix bug 1000853.

This bug reported that after restarting nova-network, the dnsmasq ACCEPT
iptables rules were no longer present, causing instances to lose their
IP addresses.  This patch updates the restart_dhcp() function in the
linux_net driver to ensure these rules are present even if dnsmasq was
already running.  Before this was only done when first starting dnsmasq.

(cherry picked from commit aa1e71d1b313f80f5581b1422e3f3e5719569e50)

Change-Id: Icda3364d3a61018b912cea7a4c96b2cbcc1fbdd7
Merge "Bump version to 2012.1.1" into stable/essex
Add missing ack to impl_qpid.

Fix bug 1012374.

Johannes Erdfelt pointed out that impl_qpid wasn't acking messages that
it received.  This turned out to be a nasty oversight, resulting in
unbounded message queue growth inside of the python-qpid library.  This
fixes it.

Change-Id: I0370293807f0282e1dbdd59246f70be031e888a9
(cherry picked from commit d15f3034dfab05ef0ec02b4e353b3dfa1512db35)
Updates the cache

fixes bug 939122

Following are the changes done:
1. in compute/api.py to display the
   floating ip in nova list command upon
   its association with an instance.
2. in network/api.py to solve the similar
   issue upon the floating ip disassocaition
Updated version of: https://review.openstack.org/#/c/7059

Change-Id: Ief1a3f544c3d14bd61cc0814612df3ee521ddec2
(cherry picked from commit 7097e01a15ecd5c28b6b771e5043f18da243607e)
Merge "Add caching to openstack.common.cfg" into stable/essex
Merge "Fix bug 1006664: describe non existent ec2 keypair" into stable/essex
Merge "Updates the cache" into stable/essex