From 5a4039a4166c1d869dd1f7bd363258a2cce3334c Mon Sep 17 00:00:00 2001 From: Renuka Apte Date: Thu, 9 Aug 2012 17:45:17 -0700 Subject: [PATCH] Fix nova volume install for devstack This changes does mkdir -p /etc/tgt/conf.d to avoid the following error, when nova volume is enabled (perhaps limited to xenapi) tee: /etc/tgt/conf.d/nova.conf: No such file or directory Change-Id: Ia5804c7ff50fbf1bc41e14ad13923c9261b000e0 --- stack.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/stack.sh b/stack.sh index b091fe3cd9..c7d83f55ab 100755 --- a/stack.sh +++ b/stack.sh @@ -1746,6 +1746,7 @@ elif is_service_enabled n-vol; then # Setup the tgt configuration file if [[ ! -f /etc/tgt/conf.d/nova.conf ]]; then + sudo mkdir -p /etc/tgt/conf.d echo "include $NOVA_DIR/volumes/*" | sudo tee /etc/tgt/conf.d/nova.conf fi