Validate that netaddr does not receive a string with whitespace

Fixes bug 1177277

Change-Id: Ibecaeed3e5918b06e74d8fa68cbe443bcbada7fc
(cherry picked from commit 09dd1ec82cce7ebf2989d17f4e4fd9f7a2eea7e0)
Fix 500 raised on disassociate_floatingips when out of sync

If one deletes NAT rules directly from NVP and not through quantum,
an error will be raised when deleting a port that is associated with
the floating ip. This patch catches the NotFound exception and logs
it so that the port can successfully be deleted.

Fixes bug: 1177176

Change-Id: Ia7d0b94957d0c6b014d242439245b0e4fa9de40d
(cherry picked from commit 17336b9cb64048652bb6853fe0429699b4762a40)
Change Daemon class to better match process command lines.

Add additional uuid argument Daemon class to help it better
match output from /proc/$id/cmdline to the correct daemon.
If there is a stale pid in the pidfile, and that process has
the same name, then it could match accidentally and not
start the daemon up properly.

Fixes bug 1177416

Change-Id: I1109ca73c539c5e96cbe3dbb55ce68c92013ee10
(cherry picked from commit 6db5b0b77d0dd8b0f5010a71c769a821881797c5)
Fetch routers ports for metadata access from DB

Bug 1176963

There is no need to retrieve the ports from the NVP backend, so
a DB query will be enough.

Change-Id: If3529cc5694434e8cdc9d21a4043f94212146d2d
(cherry picked from commit 0fee496538a36e7db5b7e2c7e5bbd5cff2aedd53)
Don't run metadata proxy when it is not needed

Bug #1159015

Change-Id: I6063e75525a2a727d063bb1745c897ac8c4ba3e8
(cherry picked from commit a397df38c748d482ece18e164084a589d7f2d362)
Merge "Validate that netaddr does not receive a string with whitespace" into stable/grizzly
Merge "Change Daemon class to better match process command lines." into stable/grizzly
update-port error if port does not exist in nvp

Previously the NVP plugin would query NVP for the quantum port id that was
stored in the port as a tag in NVP. Later, a look up table was added in order
to directly look up the ID without having to go to NVP. The problem that can
arise is that if a port was created in folsom before this lookup table was
added and then deleted from NVP directly an error will be raised when calling
update_port(). This patch fixes this potential problem.

Fixes bug 1172006

Conflicts:

	quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py

Change-Id: I08c74e305449f7fe32897abf43ceb430c959b02d
(Cherry picked from 31946ebb5d7748fada269bd867f0e6d6e02ef736)
Merge "Fetch routers ports for metadata access from DB" into stable/grizzly
Merge "Don't run metadata proxy when it is not needed" into stable/grizzly
Correct NVP plugin path for folsom to grizzly migration

Fixes bug 1180089

Change-Id: Ic79cd28971c276a93085c086d73ee7f6de99f5f7
make default transport type configurable nvp

Fixes bug 1179759

Conflicts:

	etc/quantum/plugins/nicira/nvp.ini
	quantum/plugins/nicira/common/config.py
	quantum/tests/unit/nicira/test_nvpopts.py

Change-Id: I8f644f2bc0d5d144f52e5ed0bd2e991503581ad2
get_security_groups now creates default security group

If one called get_security_groups() previously the default security
group would not be created until the tenant created a network. This
exposed a bug when an admin creates a shared network and a tenant tried
to boot a vm on it without having any networks.

Fixes bug 1171997

Change-Id: I899203424c03353a1ee6567c9ddbaecd7dc25001
Allow admin to delete default security groups

Previously there was no way to delete a default security groups which
isn't ideal if you want to clean up after deleting a tenant. This patch
allows default security groups to be deleted by the admin.

Fixes bug 1175393

Change-Id: I2214c7dabf0f2ec960ce10ebbbcdc513bc73664c
Merge "make default transport type configurable nvp" into stable/grizzly
Merge "Correct NVP plugin path for folsom to grizzly migration" into stable/grizzly
Log a warning if dnsmasq version is below the minimum required

It has been noted that older versions of dnsmasq may have unexpected
behavior, so this patch introduces a check on dnsmasq version; if
the minimum version is not met, a warning is logged. This is less
invasive than raising an Exception and abort the dhcp agent, even
though this also seems like a perfectly acceptable behavior.

Fixes bug 1170793

(cherry picked from commit 364032897293256436647cb89c61a3dffb408946)

Aforementioned cherry-pick has sudo issues hence the additional one
(cherry picked from commit 91b56e41eecf2cd8b4c848b4e773a1be307b40c3)

Change-Id: I8475afc6bdd6145d2a491177af080fee960cb3e6
Add support for dnsmasq version 2.48

Following the bug fix for bug 1170793 we are able to add
in support for dnsmasq versions that do not support tags.

2.48 is the version shipped in RHEL 6.4

Change-Id: Ia7d2b1c0adb477159ce146bcd4323d4b2795bff5
(cherry picked from commit 6012b7e97c361a90d88a573d3c6a9f33e03f4281)
Add _usr variants for iptables rootwraps

On SUSE, the paths are inside /usr for totally
weird reasons.

Fixes bug #1156044

Change-Id: I7f98359f89236891289fc24d62949d7097d774dd
Add l3 attribute to network

The fix is to add l3 attribute(s) to the returned objects in get_network() and get_networks()

Fixes: bug #1180971
Change-Id: I4b9c932fae90a169ad1c0119f45e90a2ee260acd
(cherry picked from commit eb6182fa6192b1ae4268ac02583622978d449a09)