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
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
update sample for common logging

Change-Id: I3104a63c80d589de93eb5caef2aeff962cc58dd6
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"
Merge "Remove is_admin_context from sqlalchemy.api"
Merge "Declare vpn client option in pipelib"