From 8caaf77cba9733f0e5afdce4e2fbe57c48b44817 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Sat, 27 May 2017 11:44:03 +0800 Subject: 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 --- deploy/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'deploy') 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) -- cgit 1.2.3-korg