summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/ceph-deploy/files
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2015-10-13 14:38:31 +0800
committergrakiss <grakiss.wanglei@huawei.com>2015-10-13 20:04:12 +0800
commitcb004d80668a6bf63e208e81bf3c4fa86d889dcf (patch)
treee4f7047e1f3c6c7192257a6a521ddb0ceebaa875 /deploy/adapters/ansible/roles/ceph-deploy/files
parent6cea13a2abbc7292c74de0bdf667d285e746845e (diff)
fix hanging due to nested sudo
JIRA: COMPASS-93 - clear all the sudo through scripts Change-Id: I2d750858658b09de17cc32df5359ef04263ff1f4 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/ceph-deploy/files')
-rw-r--r--deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh b/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh
index 13e5fd8a..f2a40663 100644
--- a/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh
+++ b/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh
@@ -33,9 +33,9 @@ fi
losetup -d /dev/loop0
echo "vgcreate"
-vgcreate -y ceph-volumes $(sudo losetup --show -f /ceph/images/ceph-volumes.img)
+vgcreate -y ceph-volumes $(losetup --show -f /ceph/images/ceph-volumes.img)
echo "lvcreate"
-sudo lvcreate -l 100%FREE -nceph0 ceph-volumes
+lvcreate -l 100%FREE -nceph0 ceph-volumes
echo "mkfs"
mkfs.xfs -f /dev/ceph-volumes/ceph0