added getter methods for quantumv2 api

Change-Id: Ie2b7ba698c232f55e112b978d7a548b48462fca3
Add keystoneclient to pip-requires

As of I788300449e37ba1732f6482ebce5f480a2c14a41, we pull the auth_token
middleware from keystoneclient. (added to keystoneclient in version 0.2.0)

Change-Id: Ide0d562d96e5e426f9c7e532251efd57a0964f11
Change all tenants servers listing as policy-based

Currently when list servers from all tenants (i.e. --all-tenants is set as 1
when "nova list"), privilege is required.

However, computer pollster in ceilometer need to get all instances from
all tenants in one host. Granting admin privilege to the pollster is
not very secure.

All tenants servers list should be policy-based, instead of requiring
admin privelege.

There is one potential backward compatibility. With all_tenants specified,
non-admin accounts will get back owned servers only without this patch,
however it will get policy exception now if policy checking failed. IMHO
the new behaviour makes more sense.

Change-Id: I8f1f064434ab12b6c0cd636f84dfc1b6a9b2fc90
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
Allow VMs to be resumed after a hypervisor reboot

Fixes bug 1052696.

Update the compute manager to pass network_info and block_device_info
to the driver.resume() and update all virtualization drivers to accept
the new arguments.

For libvirt, change resume() to use _create_domain_and_network()
rather than _create_domain(). This eliminates the assumption that the
network and block device connections remained in place from the period
between the VM being suspended and resumed.  Instead, all the
networking and block connections will be rebuilt on resume (in case
they are missing) as is the case after a hypervisor reboot.

Change-Id: I6e19ec42f7e929678abce8f276c0a6e91f1fa8af
Adds API for bulk creation/deletion of floating IPs

This adds an extension that provides a REST API for the bulk creation,
deletion and listing of floating IPs. The interface is accessed via

/v2/{tenant_id}/os-floating-ips-bulk

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

Implements: blueprint apis-for-nova-manage
DocImpact

Change-Id: I621e2b070a896f7230cdf3f26f78ded85e72cf16
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
Use more specific SecurityGroupHandler calls

Instead of calling trigger_security_group_members_refresh,
have NetworkManager and derived classes call more specific
methods when an instance is created or destroyed.

Methods such as the trigger_instance_add_security_group_refresh
and trigger_instance_remove_security_group_refresh,
instead of just having trigger_security_group_members_refresh
get called and forcing implementors to try and figure out if
it's an add or delete

blueprint trigger-specific-sgh-functions

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

Implements blueprint nova-compute-cells

Change-Id: I5e254988f3dd17cd1147b6c2d0372e3bb6fe6937
Don't update arch twice when create server

During the instance creation a dictionary of instance characteristics
(base_options) is created in nova.compute.api._create_instance where
"architecture" is defined looking into image[properties].
Then "architecture" entry is updated to the same value in
nova.compute.api._populate_instance_for_create if defined or it removes
the 'Unknown' value for this key.

This patch removes the unnecessary "architecture" update.

Change-Id: Id76dedef8fc96dcd6fa5b72ace6c50c85e04215b
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
Move global fixture setup into nova/test.py

There are global fixtures that get set up for testing in
nova/tests/__init__.py, even though there is a base test class. As we move
towards parallel testing, we want to convert all of these into proper fixtures.
As a step towards that, move them into nova/test.py so that it's clear that
they are part of the global test setup. From there we'll move them into
proper fixture classes.

Part of blueprint grizzly-testtools

Change-Id: Ia0b0ae380069a212bc20e009d1088c2bad7d9177
Merge "Don't update arch twice when create server"
Remove stale flags unit tests

The tests in test_flags don't test any Nova specific code. At this point
they just test a fairly random set of cfg use cases that are already
covered by cfg's unit tests.

Change-Id: I752d9676824eb479fcaef2c89a0a42fcfab45f8c
Added cpu_info report to HyperV Compute driver

It fixes bug 1082275

The current version of the HyperV Compute driver wasn't returning
CPU information when it reported its resources.

In order to solve it, this patch extracts the cpu properties
from WMI and Win32 calls.

Change-Id: I5c2a89b5e432f4e958354a15582258d4cff83658
nova-dhcpbridge should require the FLAGFILE is set

We always launch dnsmasq with FLAGFILE set, so something is very broken
if FLAGFILE isn't set when nova-dhcpbridge is launched.

Also, the fallback to CONF.dhcpbridge_flagfile is a little strange - at
this point, we haven't parsed any config files so the only possible
value of this config option is its default value.

There's no real need to gracefully handle this condition either - a
KeyError is a straightforward enough error.

Change-Id: I734d7b739f17c8a9ab48d8ba13baacff3f00e1c4
Encode consoleauth token in utf-8 to make it a str

Fix for lp:1057279.

Change-Id: I9da0fd42e919aca0075613c4930ebfc3cf425349
maint: remove an unused import from libvirt.utils

errno is no longer used since folsom-2-1095-ge88218e

Change-Id: I28702b3cd5e98b42172a45592954b9ba98bb5972