]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Refactor PureISCSIDriver into base and iSCSI classes.
authorPatrick East <patrick.east@purestorage.com>
Tue, 14 Apr 2015 20:45:22 +0000 (13:45 -0700)
committerPatrick East <patrick.east@purestorage.com>
Tue, 2 Jun 2015 15:08:24 +0000 (08:08 -0700)
commitf777cae56cf99f17232a538fe44416a8ff8e18b8
tree2b81e07b4a830e7d11d94043e50f5c280c283255
parentf27c194b738259f95f6030169bf24bd089bdc80e
Refactor PureISCSIDriver into base and iSCSI classes.

This adds in a new class called PureBaseVolumeDriver that contains
all of the generic shared methods that utilize the management REST API.

The PureISCSIDriver now inherits from the base driver and implements
the functionality required for iSCSI hosts/initiators.

As part of this we’ve cleaned up some of the logging where it would
previously have hard coded the drivers class name in it, and moved some
static non-class helper methods into the base class.

These changes will ease future work to add additional drivers or split
them into separate files.

Implements: blueprint pure-base-driver
Change-Id: Iaf3979e5cccc150d09ca00daa3d9c3471f9795a0
cinder/tests/unit/test_pure.py
cinder/volume/drivers/pure.py