Pass project id in quantum driver secgroup list

The quantum driver is always returning security groups from every tenant
a user has access to, even when the "project" filter is supplied.

Make sure we pass along the project value when we call
quantum.list_security_groups() so it's properly filtered.

Fixes bug 1155381.

Change-Id: I682c66a1f3f9db18b5f9924a37b45c759ff259f7
Update instance network info cache to include vif_type.

vif_type is a new param in legacy_nw_info added in grizzly, and when upgrading
from folsom to grizzly, the existing instance's network info cache in the db doesn't
contain this param, which is needed by vif driver to plug vif to instance. Nova
compute will try to plug the vif when it starts the instance, so we need to update
the existing instance's network info cache before pluging instance's VIF.

fix bug #1152426

Change-Id: I1b839bf791b402b933354d9c17c5713fde21ab09
Remove unnecessary checks in api.py

Remove existing check to ensure instance was running
when adding or removing security groups to/from an
instance.
Modified unit test accordingly
Fixes bug 1107721

Change-Id: If1148653edd96bd70b983c2fa89cd9973d80e48b
Fixes Nova API /os-hosts missing element "zone"

Now the HostIndexTemplate of Nova /os-hosts API is missing element "zone",
which will cause the XML output of list hosts missing the zone attribute.

Fixes bug: 1159055

Change-Id: I9940efcfd364c35b00cde4398d531d7ff56dc2b9
Reformat openstack-common.conf

Use the new 'module' option in openstack-common.conf which is a
multi-string option, allowing each module name to be placed on a
separate line.

This makes it much easier to review changes to the modules list.

Change-Id: I218601a3720287071f05b9f2f624c1de4442d34f
xenapi: Retrieve VM uuid from xenstore.

Fall back to retrieving the uuid from xenstore if
/sys/hypervisor/uuid isn't accessible.

Change-Id: I409079068d3102ff86a71431b29c1ce2e6fe8857
Fixes: bug #1157211
Avoid using whitespace in test_safe_parse_xml.

Updates our MiscellaneousXMLUtilTests.test_safe_parse_xml test
so that it avoids using and ignores whitespace. This works around some
minidom parsing differences that can happen with some versions of python
2.6.

Fixes LP Bug #1158826.

Change-Id: Iada0b095ab3b5ac6dc026b3ff6cdfb175f1e20a7
Do not test foreign keys with SQLite version < 3.7

Fixes bug 1158828

Even though SQLAlchemy is documented to support foreign keys (with
the pragma set) on SQLite >= 3.6.19, we're seeing consistent problems
with that support on RHEL 6.4 with SQLite 3.6.20.  It works fine on
Fedora and Ubuntu with SQLite 3.7.x.

To work around these problems, if we're using SQLite, test the SQLite
version inside the test that requires foreign key support,
and skip the test if it's < 3.7

Change-Id: I1c26f29371376b271a4e384ea7b5d2009651acc1
Merge "Pass project id in quantum driver secgroup list"
Merge "Update instance network info cache to include vif_type."
Add missing info to docstring.

The example return value in this docstring did not reflect that the zone
for each service is included as well.  Add 'zone', and also add a
compute of compute entries to the list.

Fix bug 1159897.

Change-Id: I8979a4a307d0ad77e8eff4fa71e0be3062a526e2
Merge "xenapi: Retrieve VM uuid from xenstore."
Merge "Fixes Nova API /os-hosts missing element "zone""
Merge "Avoid using whitespace in test_safe_parse_xml."
Merge "Do not test foreign keys with SQLite version < 3.7"
Merge "Remove unnecessary checks in api.py"
Merge "Reformat openstack-common.conf"
Merge "Add missing info to docstring."
Implements Scheduled Images Extension

The extension creates a new resource under servers/id to get, create
and delete it's scheduled image.

On the servers list and detail calls, it adds the system metadata
related to scheduled image service on the server dict in the response
object. It also enables filtering by the system metadata added by the
scheduled images service and if it exists, adds it on the servers
dictonaries.

bp https://blueprints.launchpad.net/nova/+spec/scheduled-images
addresses chris' comments