Bug 811533

Summary: Iscsitarget postinstall needs to handle config file moving from /etc to /etc/iet
Product: [openSUSE] openSUSE 12.2 Reporter: Lee Duncan <lduncan>
Component: InstallationAssignee: Lee Duncan <lduncan>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P3 - Medium CC: belphegor, forgotten_TO_yFnyghN
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 12.2   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lee Duncan 2013-03-25 21:55:53 UTC
Iscsitarget package was updated to move all config file from /etc to /etc/iet, as per upstream, but
this broke install. A post-instal script needs to be added to handle the upgrade case where config file will move from /etc/ietd.conf to /etc/iet/ietd.conf.
Comment 1 Lee Duncan 2013-03-25 21:57:49 UTC
Note: this is also a problem in openSUSE 12.3, so this bug is for both OSes (even if bugzilla don't grok that). The same fix should apply both places.
Comment 2 Lee Duncan 2013-03-27 02:23:59 UTC
Adding code to spec file %post (post-install) section to make sure user config-file changes are not lost.
Comment 3 Lee Duncan 2013-03-28 22:58:21 UTC
In testing, I found that I needed to add post-uninstall code to remove the symlink in /etc/ietd.conf.

Changes submitted to build as request id 161680.
Comment 4 Lee Duncan 2013-03-29 00:16:37 UTC
Note: previous comment is for openSUSE:Factory. Just submitted maint. req. for openSUSE:12.3:Update: Request: #161687. Also, for openSUSE:12.2:Update: Request: #161688.
Comment 5 Bernhard Wiedemann 2013-03-29 01:00:31 UTC
This is an autogenerated message for OBS integration:
This bug (811533) was mentioned in
https://build.opensuse.org/request/show/161687 Maintenance / 
https://build.opensuse.org/request/show/161688 Maintenance /
Comment 6 Bernhard Wiedemann 2013-03-29 16:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (811533) was mentioned in
https://build.opensuse.org/request/show/161742 Factory / iscsitarget
Comment 7 Thomas Fehr 2013-04-02 09:40:00 UTC
Removed block for bnc#800956 since the bugs are related but do not strictly
depend on each other. Fixing yast2-iscsi-server in Factory to use new path 
/etc/iet/ietd.conf can be done independently of fixing this bug.
Comment 8 Thomas Fehr 2013-04-17 10:11:01 UTC
*** Bug 809961 has been marked as a duplicate of this bug. ***
Comment 9 Benjamin Brunner 2013-04-17 14:51:32 UTC
Update released for openSUSE 12.2, 12.3 and checked in into Factory. Resolved fixed.
Comment 10 Swamp Workflow Management 2013-04-17 15:06:03 UTC
openSUSE-RU-2013:0695-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 811533
CVE References: 
Sources used:
openSUSE 12.3 (src):    iscsitarget-1.4.20.3-8.4.1
openSUSE 12.2 (src):    iscsitarget-1.4.20.3-2.16.1