Bug 12877

Summary: open-iscsi daemon is not working out of the box
Product: Mageia Reporter: José Jorge <lists.jjorge>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: 4   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description José Jorge 2014-02-25 15:44:10 CET
After installing open-iscsi, it does not scan the network for iscsi targets.
It complains : 

févr. 25 15:33:19 localhost iscsid[2953]: iSCSI daemon with pid=2954 started!
févr. 25 15:33:19 localhost iscsid[2953]: Warning: InitiatorName file /etc/iscsi/initiatorname.iscsi does not exist or does not contain a properly...

We should use the included iscsi-iname util to do in the POST of the rpm install :

echo InitiatorName=$(iscsi-iname) >> /etc/iscsi/initiatorname.iscsi
Comment 1 David Walser 2014-02-25 19:40:42 CET
Sounds reasonable.  Fedora's package (iscsi-initiator-utils) has this in %post:

if [ $1 -eq 1 ]; then
	if [ ! -f %{_sysconfdir}/iscsi/initiatorname.iscsi ]; then
		echo "InitiatorName=`/usr/sbin/iscsi-iname`" > %{_sysconfdir}/iscsi/initiatorname.iscsi
	fi
fi

José, since you're a packager, feel free to fix this yourself.  This package doesn't have an official maintainer.
Comment 2 José Jorge 2014-02-25 21:01:57 CET
Done in Cauldron. As QA is very busy, and I have no time to help for now, I won't push an update for 4.

Status: NEW => RESOLVED
Resolution: (none) => FIXED