Enable Quantum linux bridge VIF driver to use "bridge" type

Fixes bug 1078210

This fix should be used in conjunction with the patch
https://review.openstack.org/#/c/14961/

Change-Id: Ifd79864db147fe3141e03bf1c931fd153d413305
Clarify server_name, hostname, host.

Specifically:

'hostname' refers to the instance.
'host' refers to the nova node.
'server_name' refers to nothing and I've removed it.

Change-Id: I29e2486dddc71289018fca58a4f02f1f3b0d1b9e
Allow controller extensions to extend update/show

This change allows controller extensions to define update and show
functions for a resource when the original controller does not
already do so.

Change-Id: If0030e14ebc9c15e43aa64dc7065462376a156c2
API extension for fpinging instances

It may be interesting for a cloud user or administrator to perform a
simple instance monitoring. A ping could be an acceptable solution: it
is fast and quite reliable. A limit for ping is 1 time a minute by
default.

API calls.

GET /os-fping?[all_tenants=1]&[include=uuid[,uuid...][&exclude=...]
Performs fping for all VM in the current project and returns results. If
`all_tenants` is requested, data for all projects is returned.
By default, `all_tenants` is allowed only for admins.
`include` and `exclude` are parameters specifying VM masks. Consider
that VM list is `VM_all`, then if `include` is set, the result will be
`VM_all * VM_include`. if `include` is set, the result will be `VM_all -
VM_exclude`. `exclude` is ignored if `include` is specified.

GET /os-fping/<vm-uuid>
Performs a check for single instance.

Configuration flags.

fping_path - full path to fping

Implement blueprint fping-instances-ext

Change-Id: I7d942270aa52bd6216eda0d7ae366ef0195d52a8
Move all mount classes into a subdirectory

The disk API will be growing some new classes in future commits.
To avoid ambiguity in module names, move all the mount classes
into a subdirectory nova/virt/disk/mount/

blueprint: virt-disk-api-refactoring
Change-Id: I03898b4060bd0c488713c9d9f19caebdcd39113c
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Add support for backdoor_port to be returned with a rpc call.

This adds an rpc call for compute and network that will return
the eventlet_backdoor port for the service.

Change-Id: I95fdb5ca9bce9f3128300e3b5601fb2b2fc5e82f
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
create_db_entry_for_new_instance did not call sgh for default

When an instance is launched create_db_entry_for_new_instance() is
called which calls self.db.instance_create(). Then,
db.security_group_ensure_default() is called which creates the
default security group entry in the nova db. Though the sgh handler was
not called. Alternatively, if any nova secgroup-* call is made the sgh
is called which creates the default security group. This patch adds
a call to ensure_default() before db.instance_create() so the sgh
is called. Fixes a case missed in  bug 1050982

Change-Id: I9649b5ef026ca18a55abfb66e87fd0e358eba6f2
Fix network RPC API backwards compat

Commit d96102b6 bumped the RPC API version, but didn't handle backwards
compatibility correctly.

We need to retain support for the old 1.1 clients passing the original
set of kwargs - we can't rename kwargs, nor can we make new kwargs
required.

Change-Id: I083e0fa156e9d30fa51a500ed3d5a8ebb7c8eac8
Issue a hard shutdown if clean fails on resize up

In the xenapi driver, a clean shutdown is attempted during a resize up.
If the Xenapi raises an exception it is logged and ignored and the
resize will fail later in the process.  This adds a hard shutdown
attempt if the clean shutdown fails.

The resize up case was overlooked in
I458931a19dd2375ad7142d60cb8b6ed274de9483 so this adds it for
consistency and error handling.

Change-Id: Idf4a20433b9d5726db4e54d5cf61a93db57d4cc9
updated api_samples with real hypervisor_hostname

now that hypervisor_hostname is getting set in tests, update
api_samples with something better than none

part of blueprint:nova-api-samples

DocImpact

Change-Id: Iaac6a5d2d172eb3c56b64f0dc2a6075a79412712
Allow group='foo' in self.flags() for tests.

Cells config options are in a 'cells' config group, and this is needed
to support the tests.

Fixes bug 1079378

Change-Id: I6b6f2f9f5430b8bab8194a2766fe8075e45d92b1
Do not alias stdlib uuid module as uuidutils, since nova has uuidutils.

A few tests use "uuid" as a local variable name, and so must alias the
Python stdlib uuid module to something else.  Unfortunately they chose
"uuidutils", but nova has a module called "uuidutils" so this is confusing.
So change "uuidutils" to "stdlib_uuid" to reduce confusion.

Change-Id: I0b8bad19e37220ef7b2fef1291a3308e481647fe
Merge "Enable Quantum linux bridge VIF driver to use "bridge" type"
Update api_samples README.rst to use tox

./run_tests.py doesn't exist anymore tests are generally run with tox

Change-Id: I290d938b66c21c38b2d7886b5f6a85363c2078c3
Fix use_single_default_gateway

With FlatDHCP and use_single_default_gateway nova-network creates
an invalid entry in the dnsmasq .opts file for the network that
contains a blank router option.  New instances will not receive
a default gateway.

Change-Id: I4c2da61def0681b7b253ae387bf83c069484e28b
Fixes: bug #1075859
Merge "Fix network RPC API backwards compat"
Merge "create_db_entry_for_new_instance did not call sgh for default"
Merge "Do not alias stdlib uuid module as uuidutils, since nova has uuidutils."
Move nova shared config options to nova.config

This strips nova.flags down to be left just for backwards compatibility
with add-ons importing nova.flags and using nova.flags.FLAGS

Change-Id: Ie3fcae25e05ea9ba97f51bc90b91817ed776ad80
Remove nova.flags imports from bin/*

nova.flags is no longer needed except to load nova config options shared
across multiple daemons.

This removes nova.flags from the bin programs and makes sure that
nova.flags is imported in nova.config for now.

Change-Id: If066ac0070387bee4b41e6a78ad972f7a0955c75