]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Merge "Rework Storwize/SVC protocol to fix add_vdisk_copy"
authorJenkins <jenkins@review.openstack.org>
Thu, 17 Mar 2016 02:52:41 +0000 (02:52 +0000)
committerGerrit Code Review <review@openstack.org>
Thu, 17 Mar 2016 02:52:41 +0000 (02:52 +0000)
1  2 
cinder/tests/unit/test_storwize_svc.py
cinder/volume/drivers/ibm/storwize_svc/storwize_svc_common.py
cinder/volume/drivers/ibm/storwize_svc/storwize_svc_fc.py
cinder/volume/drivers/ibm/storwize_svc/storwize_svc_iscsi.py

index 02191efd60611dc4b766a2ca908cbf1d9e026a44,57380f4cd96503a2671ae5204dce180ac67943dd..f5e43d96d19eda583d719b33f56058a3e20c740f
@@@ -1946,20 -1776,8 +1942,21 @@@ class StorwizeSVCCommonDriver(san.SanDr
              self._vdiskcopyops_loop = loopingcall.FixedIntervalLoopingCall(
                  self._check_volume_copy_ops)
              self._vdiskcopyops_loop.start(interval=self.VDISKCOPYOPS_INTERVAL)
+         LOG.debug('leave: do_setup')
  
 +        # v2 replication setup
 +        self._do_replication_setup()
 +
 +    def _validate_pools_exist(self):
 +        # Validate that the pool exists
 +        pools = self.configuration.storwize_svc_volpool_name
 +        for pool in pools:
 +            try:
 +                self._helpers.get_pool_attrs(pool)
 +            except exception.VolumeBackendAPIException:
 +                msg = _('Failed getting details for pool %s.') % pool
 +                raise exception.InvalidInput(reason=msg)
 +
      def check_for_setup_error(self):
          """Ensure that the flags are set properly."""
          LOG.debug('enter: check_for_setup_error')