Browse code

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

whoami-rajat authored on 2019/03/14 03:11:05
Showing 1 changed files
... ...
@@ -435,6 +435,9 @@ function install_cinder {
435 435
         install_package tgt
436 436
     elif [[ "$CINDER_ISCSI_HELPER" == "lioadm" ]]; then
437 437
         if [[ ${DISTRO} == "bionic" ]]; then
438
+            # TODO(frickler): Workaround for https://launchpad.net/bugs/1819819
439
+            sudo mkdir -p /etc/target
440
+
438 441
             install_package targetcli-fb
439 442
         else
440 443
             install_package targetcli