IBM Storwize: Improve error message

Message "Unable to retype: Volume is replicated." can not really reflect
the reason why retype failed. We need to add additional information to
help user to better understand why retype failed.

Change-Id: If68bb1ba1e72df46fef35394c9ad207ffdeb271b
Amend unused variables to assist pylint testing

Amedning unused variables with a prefix of an underscore to prevent them
being picked up in pylint testing, consistency, and for general housekeeping.
Change to pylintrc also required to enforce the rule.

Closes-bug #1268062

Change-Id: I80c2cbdc52d6f37823fae90d0096836166412643
Use urllib.urlencode instead of dict_to_query_str

dict_to_query_str is only used to generate 'next' links
and this part of data is not used in a cinderclient now.
So it is safe to move forward and generate correct links right now.

Change-Id: I1d7a2e0bff3827011a787b70d7c54cd6a0b5de1f
Capture exception when delete a volume detached

Currently, the cinder api validate volume state before validating volume
attach status, so the VolumeAttached exception will never be raised. this
patch change the order of validation to fix this issue.

Change-Id: I41451f5f9d8e60b3cfc1a8004b704285fc3ddc2b
Remove Mock class monkey patching

Replace use of Mock with Mock(). The Mock class was being modified and
so affecting other tests where Mock is used. An instance of the Mock
class is now used to keep the tests isolated.

Change-Id: Iccab8430d5814258c8c2d1f9af015bce999549bc
Closes-Bug: #1286245
Switch to oslo.serialization

Very simple import change in each file, just touches a whole
lot of files. jsonutils has graduated into a standalone library
and has been removed from the oslo-incubator repository.
We should be using the library for all projects.
This commit doesn't change files synced from oslo-incubator, and
doesn't remove the 'module=jsonutils' in openstack-common.conf.
Another sync commit will cover that.

Change-Id: I56ea380a85e8a3c1b42b2425430fc28409937365
Implementing the use of _L’x’/i18n markers

Placing the _Lx markers back into the code.  No other cleaner solution has
has been implemented. Patches will be submitted in a series of sub
directories and in a fashion that is manageable.
This is the sixth commit of this kind

Partial-Bug: #1384312

Change-Id: I42b4e168deec9930571c1869fe1a181d4aad1112
Change CHAP secret default length

Some of the iSCSI initiators have a limit regarding the maximum
CHAP secret length. For example, the MS iSCSI Initiator
does not allow CHAP secrets longer than 16 characters, smaller
than the actual default 20 characters length.

This patch simply changes the default length to 16 characters,
value which is already used by default by some of the volume
drivers. In fact, the iSCSI specs state that: "Implementations
MUST support use of up to 128 bit random CHAP secrets".

Change-Id: I0295fabd0c0048c93e1f452077d0f5d19af9784d
Closes-Bug: #1392792
Update prerequisite packages in development docs

The packages listed for Linux distros are updated to meet the
prerequisites to run the unit tests.

Change-Id: Iedd9e4d04d7700d418ddb07881ac76ad758466cb
Closes-bug: #1367670
Merge "Amend unused variables to assist pylint testing"
Merge "Switch to oslo.serialization"
Merge "IBM Storwize: Improve error message"
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Iacc17652260172c2888d71026e316a53e135b9b7
Merge "Implementing the use of _L’x’/i18n markers"
Remove code for deprecated extension path

As per the #NOTE, we should remove this code post-Grizzly.

Change-Id: I8b8e807f5e49e112159395e061f10b0a3acea33c
Use oslo.utils

oslo.utils library now provides the functionality previously in
oslo-incubator's excutils, importutils, network_utils, strutils
timeutils, units etc. Some of these outdated modules will still be
around for a while until all other oslo modules that use them have been
updated in future commits.

Change-Id: Idee8600dfe42e5977b8fb824e91afff7e9119981
Switch Cinder to use oslo.concurrency

Let's switch to the newly released oslo library for the
processutils and lockutils. We use the config fixture(s) to
specify disable_process_locking and lock_path in the CONF
variable of oslo.concurrency library for correctly setting the
flags.

Change-Id: Ib8f3aac5449eba66ea84bc5cad8aea061adab276
Fix message translations for MSA common class

This patch adds the crazy _LI, _LE, _LW markers for
the MSA class for each of the appropriate LOG.info,
LOG.error and LOG.warning calls.

Change-Id: I831db878f1d51cdf61049a6fd8302d2464d477d5
Partial-Bug: #1384312
Added missing rules in policy.json

The policy file was missing rules
corresponding to volume get and
volume delete.

Change-Id: I414fabaf9e6a81d6973803bec5d47a75bf433470
Merge "Capture exception when delete a volume detached"