aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramamani yeleswarapu <ramamani.yeleswarapu@intel.com>2018-10-11 16:08:32 -0700
committerHarry Huang <huangxiangyu5@huawei.com>2018-10-30 06:44:14 +0000
commite1f6036aaac72955e32c28dc656f72ce55049105 (patch)
tree2af7432f5762e27e2d5a1d14d00e230fa91b9c92
parent15212e1ca1dda0da640dc7f9da14a89c5742fa04 (diff)
Fix stor4nfv CI errors
Change-Id: I5b76fa40ecaffb53bc924de6e13f4803c5f6593f Signed-off-by: ramamani yeleswarapu <ramamani.yeleswarapu@intel.com> (cherry picked from commit a421c905989aaebe18ea961dd7d72368cb93ba86)
-rw-r--r--plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml b/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml
index d14c0c68..4c4370fd 100644
--- a/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml
+++ b/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml
@@ -37,9 +37,10 @@
shell:
_raw_params: |
function _modify_osdsdock_endpoint {
- local ip_addr=(lxc-info -n $(lxc-ls --line | grep ceph-mon) -iH)|grep "10.1"
+ local ip_addr=$((lxc-info -n $(lxc-ls --line | grep ceph-mon) -iH)|grep "10.1")
if [ ! -z "${ip_addr}" ]; then
- sed -i 's/^50050.*/api_endpoint = $ip_addr:50050/g' /etc/opensds/opensds.conf
+ sed -i 's/api_endpoint = localhost:50050/api_endpoint = '"$ip_addr"':50050/g' \
+ /etc/opensds/opensds.conf
fi
}
_modify_osdsdock_endpoint