Sync oslo lockutils to nova

There is some update for lockutils in oslo, sync from oslo

The commit to be merged:
edd73c9 Merge "Improve help strings"
e446fe5 Merge "Fixed several typos"
fe3389e Improve help strings
f3f14c9 Fixed several typos
0f495ee Emit a log statement when releasing internal lock
f0dd798 Remove rendundant parentheses of cfg help strings
006d9a2 Allow external locks to work with threads
9b73c19 Re-enable file-based locking behavior
edce46c Use Posix IPC in lockutils
ac84a40 Update log translation domains
ee4df7f Merge "Add remove external lock files API in lockutils"
fcf517d Update oslo log messages with translation domains
37a1de8 Move the released file lock to the successful path
3c125e6 Merge "Use threading.ThreadError instead of reraising IOError"
de826f2 Merge "Have the interprocess lock follow lock conventions"
b0d0c33 Add remove external lock files API in lockutils
e71cd1a Merge "Trivial: Make vertical white space after license header consistent"
4f6190a Use threading.ThreadError instead of reraising IOError
195f0b1 Have the interprocess lock follow lock conventions
15cca4b lockutils: move directory creation in lock class
81fe39e lockutils: remove lock_path parameter
14d3669 lockutils: expand add_prefix
dc06d55 lockutils: do not grab the lock in creators
a0948cb lockutils: remove local usage
df8e051 lockutils: split code handling internal/external lock
8b2b0b7 Use hacking import_exceptions for gettextutils._
6d0a6c3 Correct invalid docstrings
6fa29ae Trivial: Make vertical white space after license header consistent
12bcdb7 Remove vim header
79e6bc6 fix lockutils.lock() to make it thread-safe
ace5120 Add main() to lockutils that creates temp dir for locks

Related-bug: #1256306

Change-Id: Iced751f059bd9a893ccefb5f98d63df29f40c622
Adds instance lock check for live migrate

Whilst migrate has an instance locked check, live migrate didn't. This patch
adds a check to see if the instance is locked in the compute api live migrate.

Adds a testcase for V3 and generic instance lock checking for the V2 API since
none existed yet.

Closes-bug: 1257187

Change-Id: I442abb74fe2a4d5d46b597b0ea24d249d2d03b45
Downgrade some exception LOG messages in the ec2 API

Downgrades some LOG.exception messages to more appropriate error
or debug level instead. Tracebacks should only be produced where
they are really necessary. In two of the cases the error path is entirely
expected as a result from user error and should therefore only be
logged at debug level.

Change-Id: Ib8321836c622a30c37c97fa971cb9fcf406bd2f1
Add API schema for v2.1/v3 quota_sets API

By defining the API schema, it is possible to separate the validation
code from the API method. The API method can be more simple.
In addition, a response of API validation error can be consistent for
the whole Nova API.

Partially implements blueprint v3-api-schema

Change-Id: I90c7a82a017cd67328f390c8a9bd0774d61139bd
VMware: Fix fake raising the wrong exception in _remove_file

fake was raising exception.FileNotFound error if a file was not found.
However, an actual delete on a non-existent file raises the error
returned by vSphere, which is error_util.FileNotFoundException. This
breaks tests which exercise error paths expecting the real error to be
raised.

Fortunately this change doesn't break any existing tests. However, I'm
not sure that's a good thing.

Change-Id: I2025bffa887582eaa9e9072d0400f90ca97d1898
Add test cases for block_device

There is no test for function new_format_is_swap and
new_format_is_ephemeral in block_device, this patch add test
cases for the 2 functions.

Change-Id: I86abafca5cb48e92574aec95d5e8c914efef2a45
Merge "Downgrade some exception LOG messages in the ec2 API"
Merge "Add API schema for v2.1/v3 quota_sets API"
Merge "Adds instance lock check for live migrate"
Merge "Sync oslo lockutils to nova"
Imported Translations from Transifex

Change-Id: I2d0fc0a66fc486cec97bfc139d967741ac0c83ce
Merge "Add test cases for block_device"
Merge "Imported Translations from Transifex"
Merge "VMware: Fix fake raising the wrong exception in _remove_file"