From: Eric Harney Date: Tue, 23 Feb 2016 16:51:40 +0000 (-0500) Subject: Disable multi-attach for RBD X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=59a22e3d3e002d29d9ed2dcd3c1c7578c4632c79;p=openstack-build%2Fcinder-build.git Disable multi-attach for RBD This is not really safe to turn on yet, as there are RBD features which are incompatible with multi-attach that must be managed from Cinder. Disable multi-attach for now until code to handle that is ready. Change-Id: I17da2f4e897178762d1c3d1302d2d79ae28e349c Related-Bug: #1519227 Partial-Bug: #1535815 --- diff --git a/cinder/tests/unit/test_rbd.py b/cinder/tests/unit/test_rbd.py index a8025669c..c1f4a4904 100644 --- a/cinder/tests/unit/test_rbd.py +++ b/cinder/tests/unit/test_rbd.py @@ -773,7 +773,7 @@ class RBDTestCase(test.TestCase): total_capacity_gb=27, free_capacity_gb=26, reserved_percentage=0, - multiattach=True) + multiattach=False) actual = self.driver.get_volume_stats(True) client.cluster.mon_command.assert_called_once_with( @@ -799,7 +799,7 @@ class RBDTestCase(test.TestCase): total_capacity_gb='unknown', free_capacity_gb='unknown', reserved_percentage=0, - multiattach=True) + multiattach=False) actual = self.driver.get_volume_stats(True) client.cluster.mon_command.assert_called_once_with( diff --git a/cinder/volume/drivers/rbd.py b/cinder/volume/drivers/rbd.py index e80575bb8..91a02133e 100644 --- a/cinder/volume/drivers/rbd.py +++ b/cinder/volume/drivers/rbd.py @@ -388,7 +388,7 @@ class RBDDriver(driver.TransferVD, driver.ExtendVD, 'total_capacity_gb': 'unknown', 'free_capacity_gb': 'unknown', 'reserved_percentage': 0, - 'multiattach': True, + 'multiattach': False, } backend_name = self.configuration.safe_get('volume_backend_name') stats['volume_backend_name'] = backend_name or 'RBD'