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
Sync latest versionutils from oslo-incubator

Sync latest versionutils to let us add warning for deprecated class in
Kilo. This also syncs its dependency module log and _i18n.

versionutils:
5d40e14 Remove code that moved to oslo.i18n
1c3ecfc Enhance versionutils.deprecated to work with classes
9a46271 Add Kilo release name to versionutils
a2ad3a2 Allow deprecated decorator to specify no plan for removal
05ae498 Add JUNO as a target to versionutils module
de4adbc pep8: fixed multiple violations

log:
ac4330d Make use_syslog=True log to syslog via /dev/log
df774ff Import PublishErrorsHandler from oslo.messaging
a3220c5 add list_opts to all modules with configuration options
6c706c5 Delete graduated serialization files
5d40e14 Remove code that moved to oslo.i18n
6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
aa74411 log: add missing space in error message

Change-Id: I9c1911e666e603d306685ff8bea390830c656256
Don't use module excutils from oslo-incubator

Remove module excutils and sync its only consumer module fileutils,
which is using oslo.utils.

Change-Id: Ib2c60be9febf5e15b198529b11c978d2e5b6df1f
Sync policy from oslo-incubator

Sync latest policy module at ddd63a7346bb57a47b0cd031608fc9475d68e241 to
help remove it's dependency for jsonutils. It also fixes some
bugs and introduces new option "policy_dirs", allow developer to add
some policy files in multiple directories.

Change-Id: Ibdb5832712d843ccce29c945cfbe4570dc5799aa
Remove module jsonutils

Sync module jsonutils's consumer module, and remove it.

Change-Id: Idbf61077238e50c486b102d3aa499085a62e3a5d
Fix messages in EMC VMAX driver with no translation

There were a number of messages in the EMC VMAX driver
for LOG.info, LOG.error and LOG.warning that had no translation
marker on them.  This patch adds the appropriate _LI, _LE or _LW
marker so that the message will be translated.  Since there is
a separate effort to add in the log level markers going on I
did not attempt, in this patch, to address that issue.  Just
thought we should get translation on the messages that were missing it.

Change-Id: If6ac19369b303466afdec98589afa80ac46ad0f2
Imported Translations from Transifex

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

Change-Id: I58ba936ec94195965e5c038612a57b290ba82cfe
Updated from global requirements

Change-Id: I58714f27507e2ec1117e23577ab082341b7a032b
ProphetStor with pool aware cinder scheduler

This patch added pool aware scheduler support in Prophetstor
volume driver. Also added i18n support.

Change-Id: Ie86a4ba4e8cefc4bc0f13d4e735ae4955acb44a0
Implements: blueprint pool-aware-cinder-scheduler-prophetstor
Merge "Imported Translations from Transifex"
Merge "Sync latest versionutils from oslo-incubator"
Merge "Don't use module excutils from oslo-incubator"
Merge "Sync policy from oslo-incubator"
Context cleanup

Before the fix of bug #1386932 (285cfaf0954d4c3e320b205c288240c1828476fe)
was committed, there are a few hacks in Cinder where an original copy
of (un-elevated) context has to be saved before doing
context.elevated().  Now that we have the fix in place, it's time to
clean up those old hacks.

Change-Id: Ie3e5cb7398647b4619d294c572e920e6c3b6b9c9
Related-bug: #1386392
NetApp NFS and iSCSI: move zapi client logic into modules

This patch moves the logic for constructing zapi requests
into its own modules in order to reduce coupling with
driver logic, improve testability, and improve readability.
This patch also adds unit tests around the zapi request
logic.

Implements bp improve-netapp-drivers

Change-Id: I3939df9a55d77b14d723422c25bd3dd3bcef9fbe
Merge "Remove module jsonutils"
Merge "ProphetStor with pool aware cinder scheduler"
Merge "Fix messages in EMC VMAX driver with no translation"
Merge "NetApp NFS and iSCSI: move zapi client logic into modules"
Remove module timeutils

Change-Id: I1e548f7dcbb06f7f47f08fc475bb1fe6713b538a