diff options
author | grakiss <grakiss.wanglei@huawei.com> | 2015-10-13 14:38:31 +0800 |
---|---|---|
committer | grakiss <grakiss.wanglei@huawei.com> | 2015-10-13 20:04:12 +0800 |
commit | cb004d80668a6bf63e208e81bf3c4fa86d889dcf (patch) | |
tree | e4f7047e1f3c6c7192257a6a521ddb0ceebaa875 /deploy/adapters/ansible/roles/ceph-deploy/files | |
parent | 6cea13a2abbc7292c74de0bdf667d285e746845e (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.sh | 4 |
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 |