Bug 12877 - open-iscsi daemon is not working out of the box
Summary: open-iscsi daemon is not working out of the box
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-25 15:44 CET by José Jorge
Modified: 2014-02-25 21:01 CET (History)
0 users

See Also:
Source RPM:
CVE:
Status comment:


Attachments

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


Note You need to log in before you can comment on or make changes to this bug.