summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-05-27 11:44:03 +0800
committerAlex Yang <yangyang1@zte.com.cn>2017-05-27 11:44:03 +0800
commit8caaf77cba9733f0e5afdce4e2fbe57c48b44817 (patch)
treeb48088ec939d941bf6cf3c712594a11f299567ec
parent278452281b011cf009133993907fd47338255e50 (diff)
create data disk for each node in virtual deploy
Since the roles are assigned randomly now, data disk should be created for every node. Change-Id: Idd12191033844dad58676de65df0fbc99a51cfbc Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
-rw-r--r--deploy/environment.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/deploy/environment.py b/deploy/environment.py
index 2adec494..a6ef4ab5 100644
--- a/deploy/environment.py
+++ b/deploy/environment.py
@@ -232,7 +232,8 @@ class VirtualEnvironment(DaisyEnvironmentBase):
disks = [disk_file]
ceph_disk_name = self.deploy_struct.get('ceph_disk_name', '')
- if ceph_disk_name and ceph_disk_name != '/dev/sda' and 'CONTROLLER_LB' in roles:
+ # if ceph_disk_name and ceph_disk_name != '/dev/sda' and 'CONTROLLER_LB' in roles:
+ if ceph_disk_name and ceph_disk_name != '/dev/sda':
ceph_size = self.deploy_struct.get('disks', {}).get('ceph', MIN_CEPH_DISK_SIZE)
ceph_disk_file = path_join(self.storage_dir, name + '_data.qcow2')
create_virtual_disk(ceph_disk_file, ceph_size)