Updates the tgt-admin command to actually use the config file
we create for the volume being created.
This fixes an issue introduced in
9785963c841aff5ea1c159da81f93c2bf62c70c6 which breaks iscsi
volume creation.
Fixes LP Bug #
1046985.
Change-Id: I06e83c9ba351c2b4846b557a3abb170a51d506c0
self.flags(iscsi_helper='tgtadm')
self.flags(volumes_dir="./")
self.script_template = "\n".join([
- 'tgt-admin --update iqn.2011-09.org.foo.bar:blaa',
+ 'tgt-admin --conf ./blaa --update iqn.2011-09.org.foo.bar:blaa',
'tgt-admin --delete iqn.2010-10.org.openstack:volume-blaa'])
try:
(out, err) = self._execute('tgt-admin',
+ '--conf',
+ volume_path,
'--update',
name,
run_as_root=True)