Add volume size verify for replica based on master
According bug description, replica should has volume size at least
as much as the master. Otherwise it maybe cause exception for
replica data. To solve this problem,I added judgement for volume
size when create a replica, which not smaller than master
volume size. And make this function as configurable by
CONF.verify_replica_volume_size.
Also provide a test case to validate the method.
Reviewed: https:/ /review. openstack. org/493563 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=8e2bb674c4a 82f8ced1e4849b8 02af6166491691
Committed: https:/
Submitter: Zuul
Branch: master
commit 8e2bb674c4a82f8 ced1e4849b802af 6166491691
Author: wangyao <email address hidden>
Date: Mon Aug 14 22:31:26 2017 +0800
Add volume size verify for replica based on master
According bug description, replica should has volume size at least verify_ replica_ volume_ size.
as much as the master. Otherwise it maybe cause exception for
replica data. To solve this problem,I added judgement for volume
size when create a replica, which not smaller than master
volume size. And make this function as configurable by
CONF.
Also provide a test case to validate the method.
Change-Id: I5e110ce672c1b1 715bca1727d70d6 56301cd0d43
Closes-Bug: #1357500