added getter methods for quantumv2 api

Change-Id: Ie2b7ba698c232f55e112b978d7a548b48462fca3
Add methods to Host operations to fake hypervisor

This patch implements some features present in os-hosts extension that are not
implemented in fake hypervisor:
    - Power Actions: Shutdown/Reboot/Startup a host
    - Change host status: enable or disable
    - Set/Unset the host into maintenance mode
With this patch we're able to get full api samples for this extension

Change-Id: I3b76e3070e326b39a67b9d4d25b5e3d91a3c102f
Cells: Re-add DB model and calls

Implements blueprint nova-compute-cells

Change-Id: I5e254988f3dd17cd1147b6c2d0372e3bb6fe6937
Don't hard code the xen hvmloader path.

Both Ubuntu and Debian place the hvmloader in a
different path which depends on the version is installed.
The reason why this done is so you can different versions
of Xen installed.

As a result change the hvmloader to a configurable option
for libvirt called xen_hvmloader_path.

Change-Id: Ic407d14f56a2518de4cd4ab8872ac2055d20adcd
Signed-off-by: Chuck Short <chuck.short@canonical.com>
adjust rootwrap filters for recent file injection changes

Removed filters for guestmount, fusermount and cp.
Adjusted comment paths as per the recent refactoring.

Change-Id: I643554b89862225d16456e47daf6c11828f602d2
Fix HostDeserializer to enable multiple line xml

Fixes bug: 1082132

The current HostDeserializer wasn't able to deal with multiple line xml inputs.
Since the HostDeserializer is used only on the update operation this patch
renames it to HostUpdateDeserializer, and parses only the valid options (status
and maintenance_mode).

Change-Id: I9ec3b296a07e0fc903da1c005cf7bd5dcb08fd1b
Complete API samples for Hosts extension

The API samples for Hosts extension missed power operations (shutdown, reboot
and startup) and maintenance/status operations.

Complete fix to bug 1070167

Change-Id: I07fd34e071eae9afc82f9320634df24f48623e0b
Remove unnecessary topic argument.

The instance_update method was setting the topic to self.call(), but the
value being passed is the default, so it's unnecessary.  Just remove it.

Change-Id: Iaabd246b8528a0858ee239e790bfcb13e919399a
Add migration_update to conductor.

This patch adds a migration_update method to the conductor API.  This is
used by the compute manager to push off db access to nova-conductor.
The only field that compute was updating was the status, so that is the
only field allowed by the API.

Instead of just sending the miration_id to the conductor, we are sending
all of the migration data.  This is done in the spirit of
'no-db-messaging'.  While no other data is needed right now, it's easier
to send it all now than have to change the API later.

Change-Id: Ic3150fbc6d5e7b0c9e41681950a7424129cbc968
Allow multi_host compute nodes to share dhcp ip

This adds a new flag: share_dhcp_address which if enabled in
multihost mode will allow all compute nodes to share an ip on
guest network. The code will isolate the address using iptables
and ebtables so it is only visible to the vms.

This patch has two benefits:

a) we don't have to use an ip address from every network for each
compute node. This is especially valuable in vlan mode where the
networks are generally small

b) we can improve security by blocking all access to the ip on the
guest network from outside the compute node. While we could do similar
blocking using a different ip for each node, it makes dhcp setup
much more complicated if a vm is migrated to another node.

Implements blueprint shared-dhcp-ip

Change-Id: Iaf84c0ad2848921122866956105eb44c074450dc
Imported Translations from Transifex

Change-Id: I724ac38f1f98b27ed30382dc5f8c1789d0cc42f9
Provide better error message for aggregate-create

For an InvalidAggregateAction exception:
Before: 'ERROR: There was a conflict when trying to complete your request (HTTP 409)'
After: 'ERROR: Cannot perform action 'create_aggregate' on aggregate 'N/A'. Reason: invalid zone. (HTTP 400)'

Fix bug 1083353

Change-Id: I26e30059fe5bbc30eecc52cccec4eba2a57d00db
Clean up unused methods in scheduler/driver

The cast_to_volume_host() and cast_to_host() methods have not been
used since compute RPC API is introduced.  This patch removes these
methods and the coresponding tests as well.

Change-Id: Icd2b4b2245cc7662c8dcb6fd35d6c33b77d0429b
Merge "Clean up unused methods in scheduler/driver"
Merge "Imported Translations from Transifex"
Respect the base_dir_name flag in imagebackend.

Resolves bug 1083447.

Change-Id: Ie23c9f46bbbcd2b87dfa7b3ac767ad7c4a4c6397
Merge "Remove unnecessary topic argument."
Merge "Add migration_update to conductor."
Merge "Don't hard code the xen hvmloader path."
Display errors when running nosetests

During Ubuntu builds we run the run_test.sh script
during the package build process, so that we can catch
regressions in our packaging before uploading to the archive.

However a recent change writes the output of the nosetests
to an error log so we don't see why the package fail to build.

This patch also displays the output of the nosetests so we
can see why the tests fail without having to look at the nosetests.log.

This patch add the '-v', for a verbose display of nosetests.

Change-Id: Id21d53df356de344a8577282c5a82f3ff927bc11
Signed-off-by: Chuck Short <chuck.short@canonical.com>