From f28c75f87abdda00dcfc2f673816728676313c95 Mon Sep 17 00:00:00 2001 From: whoami-rajat Date: Wed, 13 Mar 2019 23:41:05 +0530 Subject: [PATCH] Cinder: create target directory for targetcli-fb package While installing 'targetcli-fb' on bionic, a dependent package 'python-rtslib-fb' requires (but doesn't create) /etc/target and fails[1] when this directory not found. This patch creates the required directory. [1] http://logs.openstack.org/26/641926/1/check/cinder-tempest-dsvm-lvm-lio-barbican/8f95df1/logs/devstacklog.txt.gz#_2019-03-13_03_36_44_623 Related-bug: #1819819 Change-Id: I7efefead873037da4aaacbdc6284458bdaad0f6b --- lib/cinder | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cinder b/lib/cinder index 48f3e45c55..047b25b3c5 100644 --- a/lib/cinder +++ b/lib/cinder @@ -435,6 +435,9 @@ function install_cinder { install_package tgt elif [[ "$CINDER_ISCSI_HELPER" == "lioadm" ]]; then if [[ ${DISTRO} == "bionic" ]]; then + # TODO(frickler): Workaround for https://launchpad.net/bugs/1819819 + sudo mkdir -p /etc/target + install_package targetcli-fb else install_package targetcli