maint: remove unused imports from bin/nova-*

Change-Id: I80b58ac41bbb0517221d5fd5ba9938f2b7836779
Allow multiple dns servers when starting dnsmasq

Previously we only allowed one upstream dns server even though we
can store two in the network object. This changes the dns_server
flag to a MultiStrOpt so it can be specified multiple times.

It also adds a new config 'use_network_dns_servers' which specifies
to uses the dns servers from the network if they are set. This
defaults to false to ensure configs do not need to be changed.

DocImpact

Change-Id: I4c96259bce25036392afe6e027ec47b92679ecbc
Return dest_check_data as expected by the Scheduler

the scheduler driver expects data in return when
calling compute_rcp.check_can_live_migrate_destination
in method 'schedule_live_migration'.

In turn check_can_live_migrate_destination calls
check_can_live_migrate_source that also expects data
returned from the driver.

Fixes bug #1118491

Change-Id: I3dbfa716d5d9bc849c1f67005e7bb1b8ba1ccd30
Fix regression in non-admin simple_usage:show.

Commit 6ff32210772a67a1b526d9d784030afc90f3ce99 optimized the db query
for usage but replaced a call that had require_context with one that
had require_admin_context. This causes usage show to throw a 403. We
check for admin_or_owner in policy, so there is no need to check for
admin context at the db layer.

Fixes bug 1122267

Change-Id: Iff362f46d83a710f3883538bcb646e3457e0ba64
Make compute manager use conductor for stopping instances

During _sync_power_states, the manager will call to compute_api to
stop instances as necessary. This takes a database hit, which isn't
allowed. This directs that call through conductor, following the
pattern of late.

Fixes bug 1123219

Change-Id: I5d789dd73390cb1c41a245f6594b1c3aecf7efde
Fix passing conductor to get_instance_nw_info()

The recent metadata patch missed this one spot, which wasn't caught
because the network stubs weren't updated for the signature change.

Fixes bug 1123435

Change-Id: Iebeb98bba62189476af2c0b85615ea407a8b2ecd
Add "is not" test to hacking.py

HACKING.rst was updated in I7534ef73e6fd525fd8f4bee594a4b37524699c08.
This adds hacking.py enforcement.

Change-Id: I5d75d536762449d0a7ae38213addd02aeceede0b
VMWare driver to use current nova.network.model

* Updated tests to use classes from nova.network.model instead of legacy
  "network,mapping" tuple.
* Modified vmwareapi/{driver,vif,vmops}.py to use classes from
  nova.network.model instead of legacy "network,mapping" tuple.

Fixes: bug 1112655
Change-Id: I7f4b39cd5add7d3cf7dcf485eb9855d0354f332c
Add API sample tests to Services extension

Partially implements blueprint nova-api-samples
Bug 1091755

Change-Id: I7a0e124871c248bbb7613bfcdf335fee29a887f2
Check the length of flavor name in "flavor-create"

Fixes bug 1102280
The length of flavor name is defined 255 charaters in database.
But flavor name can be more than 255 characters when a flavor
is created. This patch adds the length check of flavor name.

Change-Id: If9db879e5f6340594b215b057a29d03c6fef1503
Use a more specific error reporting invalid disk hardware

Instead of using NovaException for reporting invalid user
specified disk hardware, use UnsupportedHardware and
UnsupportedVirtType exceptions.

Change-Id: I68ed1c0569bd0c0679e9fff3ffd436197f78a9f0
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Resize/Migrate functions for PowerVM driver

Added resize and migrate functionality to PowerVM driver.
Allows resizing of instance and cold migration of
an instance to different host.

bp powervm-compute-resize-migration

Change-Id: I723456266d3ceb4bd4a7ce4273008201b450f533
Module import style checking changes

* Implementing the * import detection (it is disabled for now)
* New style relative import testing based on syntax rules
* Old style relative import testing based on module search
* Inspection based solution replaced by PYTHONPATH search
  in order to avoid module compile and initialization steps
  (code execution) in a syntax checking phase.

This solution is faster and safer, but does not able to recognize
modules added dynamically to the module scope.

Change-Id: Ifc871f4fdbcd4a9a736170ceb4475f4f2cbe66bc
Add GlusterFS libvirt volume connector

This is to support GlusterFS as a storage backend for Cinder,
which works similarly to the NFS backend.

Change-Id: I047d58ba74d27273ba8f2639bcc77999f8be0f30
Merge "Make compute manager use conductor for stopping instances"
Merge "Add API sample tests to Services extension"
Correct misspelling in PowerVM comment

Correct a misspelling in a PowerVM comment

Change-Id: I12ab59826e8448a120ff3ef2b26034ea4aa2f1a0
Merge "Check the length of flavor name in "flavor-create""
API extension for accessing instance_actions

Adds a new API extension for accessing the recorded actions and events
on an instance.  Usage is documented with api samples.

Additionally it modified the db api to retrieve actions by request_id
since the api does not return the db id.  This extension is the first
consumer of that method so there's no issue of changing behaviour
elsewhere.

Blueprint instance-actions
DocImpact

Change-Id: I74109586cc762a7f51d2b114896cf071ee0671cb
Merge "VMWare driver to use current nova.network.model"