Remove unused methods

 o cinder/volume/driver.py
   - def _get_iscsi_initiator(self):

     This method was removed in the following commit.

       commit cb6faab4d99801e76195802659013a5ccdc6b5b5
       Author: Walter A. Boring IV <walter.boring@hp.com>
       Date:   Wed Jul 10 15:22:06 2013 -0700

           Add Brick Fibre Channel attach/detach support.

 o cinder/volume/utils.py
   - def get_host_from_queue(queuename):

     This method was added in the following commit.

       commit 6c708d12f58eb20fce6733f1f6fd08d978570775
       Author: Michael Basnight <mbasnight@gmail.com>
       Date:   Mon Feb 11 15:54:45 2013 -0600

           Update cinder-volume to enable multi volume support

     But there is no evidence that was used.

   - def notify_usage_exists(context, volume_ref, current_period=False):

     This method was removed in the following commit.

       commit d09b7c78b3c905badb1112434eb9c09c2c8ffb5a
       Author: Ollie Leahy <oliver.leahy@hp.com>
       Date:   Thu Dec 12 11:01:34 2013 +0000

           Allow user to specify audit period.

Change-Id: I819679e03df9a2a848004d14e3f55821c88834a4
VMware: changing volumeops tests from mox to mock.

Changing unit tests implementation of volumeops to mock. In the process
also moving all these unit tests into a separate class for better
test organization.

Partial-Bug: #1261097
Change-Id: I08b2341b22ed9c8f63930a2c73a9737cbe7ef540
Deactivate LV before removing

With certain versions of LVM2, removing an active LV can end up with

  Unable to deactivate open XXX
  libdevmapper exiting with 1 device(s) still suspended.

which causes any lvm command afterwards to hang endlessly on
trying to access the suspended volume. This seems to be caused
by a race with udev, so lets be conservative and do the deactivation,
then wait for udev and then finish the removal.

Closes-Bug: #1270192

Change-Id: I4703133180567090878ea5047dd29d9f97ad85ab
NetApp eseries iscsi driver implementation

This change introduces the iscsi
driver for NetApp eseries family of storage
systems. E-series is another  storage
solution offered by NetApp.

Related-Bug: 1278567
Implements: blueprint netapp-eseries--cinder-driver
Certification results: https://launchpadlibrarian.net/166301064/eseries_cinder_certification.log

Change-Id: I8b55d1f1c8de12052281c7cae0c2f89a9d2c3dd1
Remove rabbit_notifier (Sync notifier with oslo d6e1ba7)

rpc_notifier is available since grizzly, and rabbit_notifier
was printing deprecation messages since then. Remove it
for icehouse. This includes a sync to oslo-incubator, which
includes the following commits:

  aff0171 Remove "vim: tabstop=4 shiftwidth=4 softtabstop=4" from headers
  8575d87 Removed copyright from empty files
  8b2b0b7 Use hacking import_exceptions for gettextutils._
  6fa29ae Trivial: Make vertical white space after license header
          consistent
  d7ae4ff Remove deprecated Grizzly features

DocImpact: Remove all references to rabbit_notifier and replace
it with rpc_notifier.

Change-Id: I889b43dfcebe6574dfa00ea50818f85732860d98
test_volume unittest fails if ran only this module

Using stevedore ExtensionManager to load entry_points(extensions)
before running any test case.

In BaseVolumeTestCase we have stubbed 'os.path.exists' call,
because of this stevedore is not able to load entry points paroperly.
Stevedore internally use pkg_resources and pkg_resources use
'os.path.exists' to check if entry_points.txt file exists or not.
Because of stubbibg it is returning True even if file do not exists.

Change-Id: I4fd6bee2e9f33c45ad3deacfe7359dc56171205e
Closes-Bug: #1263175
Fix missing package dependency for requests

The package named requests is used by NetApp eseries
driver for doing client/server communications. This entry
is absent in requirements.txt. The patch fixes it.

Closes-bug: #1291325

Change-Id: I044ecce433d3d9e0409762a3e4551e1ce17f607d
Give a way to save why a service has been disabled

Port from nova https://review.openstack.org/#/c/26020/

We added a field to the table of service to log a reason when a
service has been disabled.

We added a new API extension called os-extended-services.

The new extension will extend the os-services extension adding a
method for disabling a service and specify a reason for that:
PUT /v2/{tenant_id}/os-services/disable-log-reason

When the os-extended-extension is loaded the call:
GET /V2/{tenant_id}/os-services
will return the list of services with disable reason information
if that exists.

DocImpact

Change-Id: I885e43132b0e49b63f7858abd3fcffe1b78d3fd8
Implements bp record-reason-for-disabling-service
Replace httplib.HTTPSConnection in unittests

SSL Verification is from now on enabled by default for the
TestOpenStackClient. So far no unittests was making actively use of
httplib.HTTPSConnection.

Intention is to reduce noise of audits/scanners which look for Python 2.x
httplib.HTTPSConnection missing SSL verification. By completely abandoning the use
of httplib.HTTPSConnection.

Change-Id: Ic0352cf453d5c41f09084a6d68b3393b8ddda84a
Partial-Bug: 1188189
Sync log.py from oslo

This change syncs log.py from oslo-incubator with the
following commit:
* Backport 'ident' from python 3.3 for Oslo's SysLogHandler
  79e8a9a08daf563aa8a8d9280c9a6a27dcafc8f2
* default connectionpool to WARN log level:
  1978114030c275c571a1786644a5e0d51ada29c0
* Fix deprecated messages sent multiple times
  52b64466177b58c8e80bc72c5ce1e940782c969a
* Remove None for dict.get()
  86707cd5c01a2de6b9ba386d7ea4f72c9c7286b1
* Rename Openstack to OpenStack
  61ff7a66fef51ba2a783a5ed87e14256a6e9432c
* Use ContextFormatter for imparting context info
  dda47c9cef19c5d8f050cf5081535b4061024457

Change-Id: I14c3d7eccc596783e380ebd57110337d3ce49038
Closes-bug: 904307
TSM backup driver changes to support file backup

Extend TSM backup driver to support backup of file based volumes,
as well as restore and delete of the backups.  This in addition
to the current block based volume support.  This involves determining
the type of volume this is requested to be backed up, and modifying
the dsmc command options accordingly.  When a volume is backed
up, the backup mode and backup path are saved in the backup
service_metadata for use on restore and delete operations.

This commit includes some further refactoring based on pylint
feedback and system testing.

Implements: blueprint tsm-backup-driver-enhancement
Change-Id: Ic994a8c2f7302e59358dd858b50df746c9a7d76f
Change warning message in NetApp driver for vsadmin creds

The new warning messages explicitly lists the extra_specs that
can't be supported depending on the access level fo the creds
that were provided. Also corrects a spelling error for the
netapp_nodedup extra_spec.

Change-Id: I1b27d9f4043321a4812e4e457c32a1040676c8e5
Closes-Bug: 1284796
Python 3: replace "im_self" by "__self__"

The Python 3 removed the "im_self" attribute and only supports the
"__self__". This patch replaces "im_self" by "__self__" attribute.

Closes-Bug: #1282514
Change-Id: Ib017fff4b720a5dd7ee27fd01b36a531d9b6ca9c
Remove unused variable

o cinder/api/openstack/wsgi.py:_CONTENT_TYPE_MAP = {

  This variable was added in the following commit.

    commit c53d8e343e50d4cf7ea9a6a81258848c2d893bfb
    Author: Jenkins <jenkins@review.openstack.org>
    Date:   Thu May 3 10:48:26 2012 -0700

        Initial fork out of Nova.

  But there is no evidence that was used.

Change-Id: I6af64126cf1747ded3369a6237a4cb6cfd250922
updating testing readme with more current information.

Change-Id: I3ef39f5484170c1886c3b88e81b42450339a0d39
Closes-Bug: 1277179
Segment LUN clones in NetApp iSCSI

The NetApp ZAPI for clone_create and clone_start has a maximum size.
This fix breaks the lun into consumable sizes for the ZAPI.

Change-Id: Id4d0872c6099b7cfc73d806d772a3ae051a76b70
Closes-Bug: 1284182
GlusterFS: Increase snapshot delete job timeout to two hours

Increase the timeout for Nova snapshot delete operations from ten
minutes to two hours.  This helps prevent Cinder from terminating
operations prematurely that are still being processed by Nova.

It is not uncommon for snapshot delete jobs to run for longer than
ten minutes depending on the size of the snapshot and speed of the
storage backend.

This will be followed up with a more robust mechanism to keep track
of snapshot job progress as a later effort.

Related-Bug: 1273894

Change-Id: I1ad52568aed1ce1bf593e71704e481b6fe5f44fb
Restrict rootwrap find filter for NetAppNFS driver

Additional make the name of the filter unique, so it does not override
any other rule. Like the find rule of the GPFS driver.
Rootwrap is making use of plain python ConfigParser which handles INI files
with key=value pair like fashion. Where the key is unique.

Closes-Bug: 1250101

Change-Id: Id2f193485089e12f00008b38fad2b95a09674ff2
Quota delete operation in cinder

This change adds the quota-delete operation to cinder.

It is adding the api and the tests, using the methods already
implemented in the db to destroy all the quotas for a specific
project.

Implements blueprint quota-delete

DocImpact

Change-Id: Ia040a20abb831c311eb13624ddecbbf0f12fdd9f
Add optional ionice to volume clearing process

Allow the volume clearing process to have an ionice priority set to
reduce the performance impact of volume zeroing. Note that this may
cause volume clearing processes to get backed up on  a busy system, use
with care.

DocImpact
Change-Id: I2d556f57aaca8a8ccc6f0f767f1cec28c3f9bc86
Implements: blueprint when-deleting-volume-dd-performance