Declare vpn client option in pipelib

Due to some import refactoring, nova.network.manager isn't always
imported when running pipelib commands, so using the cnt_vpn_clients
option fails. A failing test could not be added because our testing
code imports nova.network.manager so the code config option always
exists in testing.

Fixes bug 1069573

Change-Id: I92b702556bfef2610b86a952dd6f9207fbab102a
SanISCSIDriver SSH execution fixes.

In ssh_execute methon in nova/utils there was a problem with cmd passed to it.
From SanISCSIDriver and all other places it is called from cmd is a string.
But in ssh_execute method cmd was processed as a list. This can make problems
with SanISCSIdriver using.

Also it may be useful to pass execute parameter to this SanISCSIDriver class
to have the opportunity of overriding _execute method (as it is in
VolumeDriver class, that is the root of this class hierarchy). That's why
special checking was added.

Fixes bug 1070489

Change-Id: I73f74f9d095a2c4316cab88148afe6a0bde44c5b
Remove is_admin_context from sqlalchemy.api

is_admin_context was used to detect deprecated empty contexts,
and was last updated in 2010

Change-Id: I06c61d6a508bef7ea30054a6f1df3fe6b2d6dfd8
More specific exception handling in migration 091.

The original code would catch and discard any exception generated when
trying to create or drop fkey constraints using the SQLite engine. This
has the side-effect of allowing the DB to become inconsistent (by
leaving a `migration_tmp` table around), causing future migrations to
fail and making bugs even hard to track down.

Long term, we should fix the underlying cause of these exceptions,
either by switching to Alembic or by fixing SQLALchemy-Migrate to fully
support dropping of constraints via a temp table.

For now though, tightening up the exception handling will at least make
any future bugs a bit easier to diagnose.

Fixes bug 1070559

Change-Id: If549d65afa758b6f8a0db6fc8478a5b0c9277e23
Remove deprecated root_helper config

root_helper was deprecated in Folsom and was replaced by rootwrap_config

Change-Id: Ia2f5e67f834c01c07272c61323d01599006b7018
Allow loading only selected extensions

To help with speeding up API tests, allow loading only a selected list
of extensions or resources. This is done using init_only=... parameter
for the fakes.wsgi_app() factory.
The change is backwards compatible, so existing tests do not require
modification.

Implements bp:api-tests-speed

Change-Id: Ibdcedd522728cb10294fa69e45732b7f125b3cbb
Speed up api.openstack.compute.contrib tests

Use init_only parameter to select the minimal number of extensions and
resources needed for test execution.
Improvement on a test machine was from 59.770s to 15.218s (508 tests).

Implements bp:api-tests-speed

Change-Id: Id27bd5c29eaee1ef7225b7aeb43210063aaf0d4e
Fix Incorrect Exception when metadata is over 255 characters

Need to be in sync with Essex. Throw a new exception in api.py when key or value
is over 255 chars. Catch this exception end return back HTTP error 413.

add extra lines in exception.py to make pep8 happy

Fixes bug 1004007

Change-Id: I67694e3a9600b7dd0b80c519327327568751c2a4
Fix live migration volume assignment.

In pre_live_migration volumes should
get assigned (self.volume_api.initialize_connection)
to the live migration target host.
In post_live_migration the volumes should get
unassigned (self.volume_api.terminate_connection)
from the live migration source host.

Fixes bug 1066887

Change-Id: Ic2db456cd5efbdf15db92f843c92230489efc551
Add availability zone extension to API samples test.

Change-Id: I43e64d6637ef850119475c5d470cc54e7168c388
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
update sample for common logging

Change-Id: I3104a63c80d589de93eb5caef2aeff962cc58dd6
Migrate to fileutils and lockutils.

Migrate nova to using openstack-common's file and lock utilities.
Resolves bug 1063230.

Change-Id: I1a4c87856bc08cd33b61d7098ed856baa4583654
Fixes fake for testing without qemu-img

The qemu-img commands were recently moved into libvirt/snapshots.py
so libvirt_utils.py is no longer replaced properly with a fake in
test_virt_drivers.py. This causes the test to fail if qemu-img is
not installed on the system.

This patch fixes the issue by faking out libvirt_utils in snapshots.py.

Change-Id: Idf0dc2c9bfec89e99df3021f2d316a9760d5af29
Remove unused imports in setup.py

Then glob and os modules are not being used and no longer need to be
imported.

Change-Id: I0d9862811338fe6c8014c2c50c78c2cca721f9d0
Merge "SanISCSIDriver SSH execution fixes."
Merge "update sample for common logging"
Merge "Fix live migration volume assignment."
Merge "Fix Incorrect Exception when metadata is over 255 characters"
Merge "More specific exception handling in migration 091."
Merge "Remove deprecated root_helper config"