Merge "Add ability for ceph driver to report discard"

This commit is contained in:
Jenkins 2017-05-10 11:35:35 +00:00 committed by Gerrit Code Review
commit 53e1bb3525
2 changed files with 3 additions and 1 deletions

View File

@ -1169,7 +1169,8 @@ class RBDTestCase(test.TestCase):
'auth_username': self.cfg.rbd_user,
'secret_type': 'ceph',
'secret_uuid': None,
'volume_id': self.volume_a.id
'volume_id': self.volume_a.id,
'discard': True,
}
}
actual = self.driver.initialize_connection(self.volume_a, None)

View File

@ -1035,6 +1035,7 @@ class RBDDriver(driver.CloneableImageVD,
'secret_type': 'ceph',
'secret_uuid': self.configuration.rbd_secret_uuid,
'volume_id': volume.id,
"discard": True,
}
}
LOG.debug('connection data: %s', data)