Re-instate security group delete test case

While fixing lp#956366, we realized that it's fine to delete a security
group referenced by an ingress rule of another security group because
the ingress rule gets deleted.

Re-instate the test for this specific case, but test that the ingress
rule gets deleted rather than an exception being thrown.

Change-Id: I81ad16431f5f8f13561dfcb320213366e1e8864e
Tweak security port validation for ICMP

Horizon allows for ICMP to be type:code.
Type and code can be from -1 to 255.

API refers to both EC2 and Nova APIs

This patch attempts to resolve:
1. API code throws exceptations when 0 is passed for either field
2. API code validates type:code like from->to range.  type and code
   are independent
3. Update unit tests for this new set of operations.

A side effect is that the following are allowed type:code.
-1:X
X:-1

The code assumes that -1 is a wildcard for the field.

bug 956967

Change-Id: Ieb6989815afc6986b72e0efc7611c2cc353ab5d8
Make sqlite in-memory-db usable to unittest

Move migrate monkey patch from nova.tests.test_migrations to
nova.db.sqlalchemy.migration

Change-Id: I018e44903558cad6311fd368787583322f962d0c
Modify nova.wsgi.start() should check backlog parameter.

Fixes bug 883292.

Forward ported from
https://github.com/ntt-pf-lab/nova/tree/openstack-qa-nova-883292

Change-Id: I8839851a72fcf0910a532d558ffe66a39a7db1e8
Fixed status validation. Fixes bug 960884.

Fixed the status value validation in os-hosts extension and added a negative
scenario in unit test for os-hosts extension.

Change-Id: Ib4166757561e531494a1a4d3070d7c8971b57dc5
Avoid unplugging VBDs for rescue instances

Fixes bug 961524

Unplugging can only happen if the instance is running and that might
not be the case. So instead of unplugging the root disk VBD, just
ignore it when it comes to deleting VDIs.

Change-Id: Id6c01527befed7775fdd7a4d30d0d3bee1178c51
Handle correctly QuotaError in EC2 API

Without this patch, EC2 API returns UnknownError when quota is exceeded, see bug #853381

This patch fixes that by handling the exception. Now euca-run-instances returns useful information:

$ euca-run-instances --instance-count 10 --instance-type m1.8gb.2cpus.diskless ami-00000012
QuotaError: Quota exceeded: code=InstanceLimitExceeded

Change-Id: I1f7b381b34d2f538b7cc2d9582a40fd8bf88fbc3
Signed-off-by: Julien Danjou <julien@danjou.info>
Remove useless dhcp_domain flags in EC2

Change-Id: I4e3102db4e99f23197a085dfd298220ad3f577d1
Signed-off-by: Julien Danjou <julien@danjou.info>
Merge "Avoid unplugging VBDs for rescue instances"
Merge "Handle correctly QuotaError in EC2 API"
Merge "Remove useless dhcp_domain flags in EC2"
Change mycloud.com to example.com (RFC2606).

From RFC2606:
   To reduce the likelihood of conflict and confusion, a few top level
   domain names are reserved for use in private testing, as examples in
   documentation, and the like.

Currently the documentation contains URLs that point to mycloud.com,
which is registered and not affiliated with OpenStack.  It's better
to use example.com which exists for this purpose.

Change-Id: I7ebd9b2c0d650f15e5924798cc54611d47961f8f
Inlining some single-use methods in XenAPI vmops.

Change-Id: I28247b6fe782f3a1007c6f47eb8e221cf885772f
Remove tools/nova-debug

Broken and outdated (last updated on Mon Jun 27 2011)

Change-Id: I3ed67430e01c2db531b89bc3ffd6e7b174791fbc
Merge "Make sqlite in-memory-db usable to unittest"
Merge "Re-instate security group delete test case"
Merge "Modify nova.wsgi.start() should check backlog parameter."
Merge "Inlining some single-use methods in XenAPI vmops."
Merge "Remove tools/nova-debug"
Assume migrate module missing __version__ is old

Fixes bug 962592

Change-Id: I9675b99df89d4f2d47e0a2fbfd13147fa1c7aeb7