[Bug 800956] New: Iscsi Target configuration with YAST fails due wrong filedirectory
https://bugzilla.novell.com/show_bug.cgi?id=800956 https://bugzilla.novell.com/show_bug.cgi?id=800956#c0 Summary: Iscsi Target configuration with YAST fails due wrong filedirectory Classification: openSUSE Product: openSUSE Factory Version: 12.3 Beta 1 Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Minor Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: p88@yahoo.com QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0) In yast, the iscsi target configuration creates its ietd.conf file in the wrong directory, so iet cant find it and dont work. Manually moving ietd.conf from /iet to /etc/iet solves the problem. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c
Xiaolong Li
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c1
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c2
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c3
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c4
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c5
--- Comment #5 from Thomas Fehr
Thomas: yes, the directory moved to /etc/iet. But there was supposed to be a symlink /etc/ietd.conf to /etc/iet/ietd.conf, and it looks like I left that out.
Would such a symlink have averted this problem? If so, I will file a bug right away and add that symlink.
The symlink would have helped but you cannot simply package it into RPM. If the file /etc/ietd.conf exists it cannot be replaced by a symlink during update (afaik RPM refuses to do that). You need to add a postinstall script that does the following: - if /etc/ietd.conf exists and /etc/iet/ietd.conf does not exist, move /etc/ietd.conf to /etc/ietd - create a symlink /etc/ietd.conf to /etc/iet/ietd.conf - add symlink /etc/ietd.conf as %ghost to package - if both /etc/ietd.conf and /etc/iet/ietd.conf exist I would suggest to save /etc/ietd.conf to /etc/ietd.conf.save and also create the symlink The above needs to be done for 12.2 and 12.3 (btw. what about SLES?) For post 12.3 you can simply move /etc/ietd.conf to /etc/iet/ietd.conf in postinstall and I will change yast2-iscsi-client to use /etc/iet/ietd.conf Sounds that reasonable? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c6
--- Comment #6 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c7
Thomas Fehr
I did not move the directory in SUSE.
A assume you meant SLES here?
So you are saying openSUSE:Factory is okay as is, then, correct?
No, the part that moves /etc/ietd.conf to /etc/iet/ietd.conf must also be in postinstall of iscsitarget for Factory (there could be an update from a system still using old location /etc/ietd.conf) I will release a updated yast2-iscsi-server using /etc/iet/ietd.conf soon, so the symlink /etc/ietd.conf -> /etc/iet/ietd.conf is not needed for yast2-iscsi-server any more. When I release an update for Factory I will close this bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c8
--- Comment #8 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c9
--- Comment #9 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c10
--- Comment #10 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=800956
https://bugzilla.novell.com/show_bug.cgi?id=800956#c11
Thomas Fehr
participants (1)
-
bugzilla_noreply@novell.com