From 99de7cc1782ed00905068d0ec894ac08db5aa06f Mon Sep 17 00:00:00 2001 From: Accela Zhao Date: Fri, 8 May 2015 18:14:11 +0800 Subject: [PATCH] Fix wrong `sudo ceph -c` command in lib/ceph The `sudo -c ${CEPH_CONF_FILE} ceph ...` in lib/ceph misplaced `ceph`. The correct syntax is `sudo ceph -c ${CEPH_CONF_FILE} ...`, see lib/ceph:308. While installing ./stack.sh with ceph enabled, the above malformed command raises a `usage: sudo -h | -K | -k | -V ...` error and stops the installation. This patch fixes `sudo -c ${CEPH_CONF_FILE} ceph ...` by moving `ceph` to the right place. Change-Id: I3da943d5a353d99b09787f804b79c1d006a09d96 Closes-bug: #1453055 --- lib/ceph | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ceph b/lib/ceph index 76747ccd77..4068e26222 100644 --- a/lib/ceph +++ b/lib/ceph @@ -279,7 +279,7 @@ function configure_ceph_embedded_nova { # configure Nova service options, ceph pool, ceph user and ceph key sudo ceph -c ${CEPH_CONF_FILE} osd pool set ${NOVA_CEPH_POOL} size ${CEPH_REPLICAS} if [[ $CEPH_REPLICAS -ne 1 ]]; then - sudo -c ${CEPH_CONF_FILE} ceph osd pool set ${NOVA_CEPH_POOL} crush_ruleset ${RULE_ID} + sudo ceph -c ${CEPH_CONF_FILE} osd pool set ${NOVA_CEPH_POOL} crush_ruleset ${RULE_ID} fi }