script for configuring a vif in Xen in non-bridged mode

Creates a new vif device without attaching it to a
bridge. Quantum Linux Bridge Agent will attach the
created device to the belonging bridge.

Change-Id: I1818a92a47882d98e384b57e0fa84a0fa09d40ea
use libvirt getInfo() to receive number of physical CPUs

multiprocessing.cpu_count() reports the wrong number of
physical CPUs on a Xen dom0 system. Because we're inside
the libvirt virtualization driver the corresponding
libvirt method (getInfo()) should be used instead.

fixes bug 1084611

Change-Id: Ida4be889ce98c7a6f58564a8bc295b360ff65965
use file instead of tap for non-blockdevice images on Xen

In nova/virt/libvirt/utils.py the method pick_disk_driver_name() returns
"tap" for non-blockdevices on Xen. This leads to an exception on the
xend service. The returned driver name should be "file" instead of
"tap".

fixes bug 1084618

Change-Id: Ib87f18f56afb3c5f34c30e9aea605dad24a36cdf
Add POWERVM_STARTING state to powervm driver

In current implementation in powervm driver, the 'Starting' state
of an instance is not supported. This patch adds this to the powervm
driver and allows execution to continue until the instance is in a
'Running' state instead of failing out.

This patch fixes Bug #1084641

blueprint powervm-compute-enhancements

Change-Id: Ieb17b215547e77ee8d13b18496ba4090fc45757b
Enable debug in run_tests using pdb

    When you try to debug some test using nose.tools.set_trace the pdb prompt
is 'trapped' inside tee manipulation of stdout.
    Since debug mode is not supposed to be used in the gates we don't need to
concern about the lack of a log to analyze the output.

Change-Id: I7daebe7267b04d41f2ca383f826419f0dfb544ab
Access DB values as dict not as attributes. Part 2

We cannot assume nova.db.api will be returning sqlalchemy objects with
attributes, instead treat return values as dicts

Part of blueprint db-api-cleanup

Change-Id: I39ccd2f110c258d69bb2d4d7078c672c6a6ef36e
Merge "Enable debug in run_tests using pdb"
Merge "use libvirt getInfo() to receive number of physical CPUs"
Add vpn ip/port setting support for CloudPipe

This extends the cloudpipe REST API to allow the setting of the IP and port
for the VPN for each network in the project

/v2/{tenant_id/os-cloudpipe/configure-project # POST ip/port

This forms part of the work to provide APIs for functionality currently
implemented by nova-manage that needs direct db access so nova-manage
can eventually be removed

DocImpact
Implements: blueprint apis-for-nova-manage

Change-Id: I416c0bfbe1c88470638f1c2004d1dcaeb51a6c41
Merge "Access DB values as dict not as attributes. Part 2"
Fix test_migrations for postgres

Fix creating .pgpass file that is used to connect to postgress database without
password prompt.

Fix command that execute SQL in postgres DB:
a) there were no spaces between command options and values
b) we can't drop database while we are connected to it. There is a special
database `template1` in postgres for dropping databases.
c) using `'` instead of `"` in bash to quote SQL expressions because bash
interprets only text in single quotes as plain string.

Remove SQL requests which lock database

Fix stripping password, so it works not only when password contains only
spaces.

Change-Id: I753a044aba8579b0f4225b4e67163d046ec1a32e
Use elevated cxtx in resource_tracker.resize_claim

Updates the resize_claim function in compute/resource_tracker
so that it uses an elevated context for the db.compute_node_update
call.

This fixes an issue where resizes from non-admin users would fail
to complete.

Fixes LP Bug #1085071.

Change-Id: I356e564228603834073c2b878b09cc35b88edf1e
Merge "Add POWERVM_STARTING state to powervm driver"
Merge "Add vpn ip/port setting support for CloudPipe"
Merge "Fix test_migrations for postgres"
Merge "Use elevated cxtx in resource_tracker.resize_claim"
Split out part of compute's init_host.

The init_host() function in the compute manager has grown a good bit.
The amount of nesting for instance initialization was pretty deep,
making it a bit ugly.  This patch splits out the code for initializing
an instance during the service initialization and puts it into its own
function, making things a bit more readable.

Change-Id: I5183baa76304bfc04af3c7347218eefbc3dc84e3
add metadata support for overlapping networks

implements blueprint metadata-overlapping-networks

This is the Nova side of the changes required to support Metadata
service on overlapping Quantum networks. This change is BACKWARDS
COMPATIBLE and does not require any new configuration for Nova only
deployments.

Change-Id: I4dacd565e43e136e3faeb95184a4a2f7188415cd
Merge "Split out part of compute's init_host."
Add generic customization hooks via decorator.

Hooks add the ability to insert custom code around operations that
declare a named hook:

e.g.

@hooks.add_hooks('create_instance')
def create_instance(....):
   ....

The above hook allows Hook objects to be run 'pre' and 'post' the
execution of create_instance()

Hook objects are discovered via the setuptools entry point group
'nova.hooks'.

Change-Id: I3961df12ef415085de7459438967edacc34500c2