From cab4ef6635cf6cd5c28c02db6099555d22d1bc22 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 17 Apr 2014 13:49:05 +0200 Subject: [PATCH] Specify lld in tgt config backends Otherwise when running tgt-admin --delete, it might forget to invoke tgtadmn with "--lld iscsi" in order to delete the low-level iscsi exports, which can cause crashes or hangs later on. Closes-Bug: #1311640 Change-Id: I436c67c30565089236e987d84ac2609eedd2d2c7 (cherry picked from commit 872b7ca0fc5ce4911fdaadee464d46be5a38058d) --- cinder/brick/iscsi/iscsi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cinder/brick/iscsi/iscsi.py b/cinder/brick/iscsi/iscsi.py index b28c83f2234..a8f59031320 100644 --- a/cinder/brick/iscsi/iscsi.py +++ b/cinder/brick/iscsi/iscsi.py @@ -82,11 +82,13 @@ class TgtAdm(TargetAdmin): VOLUME_CONF = """ backing-store %s + lld iscsi """ VOLUME_CONF_WITH_CHAP_AUTH = """ backing-store %s + lld iscsi %s """