Skip to content

Commit

Permalink
Fix bug in tgt conf for volume
Browse files Browse the repository at this point in the history
'lld' is not a valid directive.

This commit replaces 'lld' with the correct directive of 'driver'.

Change-Id: I165339a9652fe882c50a5a7e270675e343dceb30
Related-bug: #1396265
  • Loading branch information
git-harry committed Jan 14, 2015
1 parent 1b2ce8b commit ebf3ba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cinder/tests/targets/test_tgt_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_get_target_chap_auth(self):
persist_file =\
'<target iqn.2010-10.org.openstack:volume-83c2e877-feed-46be-8435-77884fe55b45>\n'\
' backing-store /dev/stack-volumes-lvmdriver-1/volume-83c2e877-feed-46be-8435-77884fe55b45\n'\
' lld iscsi\n'\
' driver iscsi\n'\
' incominguser otzLy2UYbYfnP4zXLG5z 234Zweo38VGBBvrpK9nt\n'\
' write-cache on\n'\
'</target>'
Expand Down
4 changes: 2 additions & 2 deletions cinder/volume/targets/tgt.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ class TgtAdm(iscsi.ISCSITarget):
VOLUME_CONF = """
<target %s>
backing-store %s
lld iscsi
driver iscsi
write-cache %s
</target>
"""
VOLUME_CONF_WITH_CHAP_AUTH = """
<target %s>
backing-store %s
lld iscsi
driver iscsi
%s
write-cache %s
</target>
Expand Down

0 comments on commit ebf3ba4

Please sign in to comment.