Add public network support when launching an instance.

Fixes bug 1039419.

A concept of public network has been implemented in Quantum.
To launch an instance connected to public network, we need to check public
network (whose 'shared' attribute is True) in addition to network owned by
the current tenant.

Change-Id: I128e68a8b9404056f74153bf8f576cfa8b438e19
Fixes spawn method signature for PowerVM driver.

ComputeDriver has now 2 new required arguments which are:
injected_files and admin_password. This patch adds the
arguments in the PowerVMDriver spawn signature.

Fixes bug 1040770

Change-Id: I0a45fa45c942f2d0381c5a7310d386ae655073fe
Update nova-rpc-zmq-receiver to load nova.conf.

Updates the bin/nova-rpc-zmq-receiver so that it makes use of FLAGS,
calls parse_args, and loads the nova.conf config file like all
other nova- binaries.

Fixes LP Bug #1044153

Change-Id: I904e5d2ae491cd805be78038493d437dd1f7f3cc
Merge "Add public network support when launching an instance."
Fixes sqlalchemy.api.compute_node_get_by_host

Use join('service') instead of options(joinedload('service')) to get
the right compute_node

Fixes bug 1044238

Change-Id: I082a46847e63a1e21083a625c3b07ec9be05412f
Rename imagebackend arguments.

Rename function arguments to something which more clearly indicates
their purpose. No functional changes.

Change-Id: Iedbc5477ac54527b60c520fd7c774e608adb07c0
Merge "Update nova-rpc-zmq-receiver to load nova.conf."
Merge "Fixes sqlalchemy.api.compute_node_get_by_host"
Merge "Rename imagebackend arguments."
Merge "Fixes spawn method signature for PowerVM driver."
Add full python path to test stubbing modules for libvirt

libvirt test modules were relatively addressed (import fakelibvirt etc.)
and this meant that running the test specifically
(./run_tests test_virt_drivers) would fail with missing imports.

Change-Id: I81f019bf635e10ca90f77f7a30b2e19065fee8f4
Add method to manage 'put' requests in api-sample tests

Include a _do_put() method into tests_api_samples to generate api-samples to
put requests.

Change-Id: I1407f908592fcda8d83506ccb98f17f3af84c13c
Add API samples to images api

Fixes issue with updated metata not being returned properly from
the api. Adds a small check to the samples baseclass to allow the
output to be generated even if the template file is empty.

Change-Id: Idcdd24d7e785026e50b9abf4762466fd55a8d42f
Fix hyperv driver spawn() signature

Fixes bug #1045392

commit 99fb9d2a changed the signature of the spawn() method but not
all drivers were updated for the change.

The injected_files and admin_password instance attributes were ignored
by the hyperv driver before, so we can just ignore them in spawn() now
that they are being passed as function arguments.

Change-Id: I129d21316488a18a4f062252ba5f788bc65c7c25
Fix vmwareapi driver spawn() signature

Fixes bug #1045393

commit 99fb9d2a changed the signature of the spawn() method but not
all drivers were updated for the change.

The injected_files and admin_password instance attributes were ignored
by the hyperv driver before, so we can just ignore them in spawn() now
that they are being passed as function arguments.

Change-Id: Ifc4279a05127dcc5c01388882c40570bf6de5ff2
Adds API sample test for limits

Adds samples for GET /limits

Change-Id: Ie6b42119a9d60273d5d4d0c17fb44082009bc847
Merge "Fix vmwareapi driver spawn() signature"
Merge "Fix hyperv driver spawn() signature"
Merge "Add method to manage 'put' requests in api-sample tests"
Merge "Add API samples to images api"