[Bug 801469] New: iscsitarget: upgrading from 12.1 to 12.2 replaces ietd.conf with a generic sample, old file is saved as ietd.conf.rpmsave
https://bugzilla.novell.com/show_bug.cgi?id=801469 https://bugzilla.novell.com/show_bug.cgi?id=801469#c0 Summary: iscsitarget: upgrading from 12.1 to 12.2 replaces ietd.conf with a generic sample, old file is saved as ietd.conf.rpmsave Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: stefan.muenkner@mx.uni-saarland.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 While upgrading from openSuSE 12.1 to 12.2 the config file(s) for iscsitarget are moved into /etc/iet. But instead of using the existing (and presumably working) ietd.conf it is renamed to ietd.conf.rpmsave and a new generic ietd.conf is used. As a consequence iscsitarget does not know any targe, since the generic ietd.conf does not define any. Even when /etc/iet/ietd.conf exists prior to the upgrade ietd.conf gets renamed and a new generic file is placed there instead. Reproducible: Always Steps to Reproduce: 1.upgrade from openSuSE 12.1 to 12.2 Actual Results: /etc/iet/ is created /etc/ietd.conf is moved to /etc/iet/ietd.conf.rpmsave a new /etc/iet/ietd.conf without any target definition is created. Expected Results: /etc/iet/ is created /etc/ietd.conf is moved to /etc/iet/ietd.conf a new /etc/iet/ietd.conf.rpmnew without any target definition is created. -- 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=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c
FeiXiang Zhang
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c1
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c2
--- Comment #2 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c3
--- Comment #3 from Stefan Münkner
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c5
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c6
Lee Duncan
Lee,
sorry my fault, I did not specify it. I did an online dist upgrade on two (pratically identically installed) machines. It happened on both _and_ there was no /etc/iet sub directory before the upgrade on the first machine. I checked on that via the backup that ran before the upgrade. So in fact during the upgrade there was no /etc/iet/ietd.conf on that machine.
/etc/ietd.conf was moved over to /etc/ietd.rpmsave and /etc/iet/ contains no ietd.conf.rpmsave.
I assume you mean that /etc/ietd.conf was moved over to /etc/ietd.conf.rpmsave. It sounds like it may be the same results I found in testing. I suspect your /etc/ietd.conf.rpmsave is a symlink /etc/iet/ietd.conf.
On the second machine, having had the results of the upgrade on the first machine, I actually created /etc/iet and copied all the files from the first (already upgraded) machine, adapted them and still /etc/ietd.conf got overwritten.
What does "adapted them" mean? And how many files did you move? The 12.1 iscsitarget package only owned /etc/ietd.conf, so there is only one package file to copy. The post-install script does not look for other non-package iscsitarget files which may be present.
It may be that it is a strange combination of things, but especially the upgreade "failure" on the second machine made me write the report.
I tested this and got the same results as in the previous test, i.e.: - install 12.1 iscsitarget, and modify /etc/ietd.conf with a new target - mkdir /etc/iet and copy /etc/ietd.conf to /etc/iet/ietd.conf - note that I left /etc/ietd.conf present as well as /etc/iet/ietd.conf - Upgrade to 12.2 iscsitarget script Again, I get an incorrect symlink of /etc/ietd.conf.rpmsave that points to /etc/iet/ietd.conf. And /etc/iet/ietd.conf does indeed contain the correct user-added configuration. Can you do this for both systems: "ls -lR /etc/iet*" on both systems for me? When you add the info, please change STATUS back to ASSIGNED. -- 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=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c7
--- Comment #7 from Stefan Münkner
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c8
Stefan Münkner
(In reply to comment #3)
I assume you mean that /etc/ietd.conf was moved over to /etc/ietd.conf.rpmsave.
correct
It sounds like it may be the same results I found in testing. I suspect your /etc/ietd.conf.rpmsave is a symlink /etc/iet/ietd.conf.
No it is not. Listings are attached.
What does "adapted them" mean? And how many files did you move?
The two targets are identified by ...:target1 and ....:target2 in ietd.conf and I changed that before doing the upgrade, so that, if after the upgrade ietd could presumably start with the correct target definitions. I rsynced the whole directory from one machine to the other (since it did not exist on the second machine prior to the upgrade), then modified (only, IIRC) ietd.conf. There were however some more files involved (see below, and attachment above).
The 12.1 iscsitarget package only owned /etc/ietd.conf, so there is only one package file to copy.
The currently installed package is: Name : iscsitarget Version : 1.4.20.3 Release : 2.16.1 Architecture: x86_64 Install Date: Thu Apr 18 08:55:57 2013 it owns the following files/dirs in /etc/iet rpm -ql iscsitarget | grep /etc /etc/iet /etc/iet/ietd.conf /etc/iet/initiators.allow /etc/iet/initiators.deny /etc/iet/targets.allow This already is an update installed after my change from 12.1 -> 12.2
It may be that it is a strange combination of things, but especially the upgreade "failure" on the second machine made me write the report.
I tested this and got the same results as in the previous test, i.e.:
- install 12.1 iscsitarget, and modify /etc/ietd.conf with a new target
- mkdir /etc/iet and copy /etc/ietd.conf to /etc/iet/ietd.conf
- note that I left /etc/ietd.conf present as well as /etc/iet/ietd.conf
- Upgrade to 12.2 iscsitarget script
Again, I get an incorrect symlink of /etc/ietd.conf.rpmsave that points to /etc/iet/ietd.conf.
And /etc/iet/ietd.conf does indeed contain the correct user-added configuration.
Can you do this for both systems: "ls -lR /etc/iet*" on both systems for me?
See, attachment (above)
When you add the info, please change STATUS back to ASSIGNED.
-- 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=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c9
--- Comment #9 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c10
--- Comment #10 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c11
Stefan Münkner
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c12
--- Comment #12 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c13
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=801469
https://bugzilla.novell.com/show_bug.cgi?id=801469#c14
--- Comment #14 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com