[Bug 743562] New: initscript of iscsitarget uses the wrong pid file and cannot stop/restart the ietd process
https://bugzilla.novell.com/show_bug.cgi?id=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c0 Summary: initscript of iscsitarget uses the wrong pid file and cannot stop/restart the ietd process Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Other 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@suse.de Found By: --- Blocker: --- Created an attachment (id=472843) --> (http://bugzilla.novell.com/attachment.cgi?id=472843) patch file for iscsitarget init script User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 iscsitarget in /etc/init.d uses PIDFILE=/var/run/iscsi_trgt.pid while ietd writes its pid in: /var/run/ietd.pid therefore /etc/init.d/iscsitarget stop (or restart) fails to stop and restart the ietd. Reproducible: Always Steps to Reproduce: 1. zypper install iscsitarget 2. configure a target 3. start the process : rciscsitarget start 4. restart or stop it: ~ # /etc/init.d/iscsitarget stop redirecting to systemctl ~ # /etc/init.d/iscsitarget status redirecting to systemctl iscsitarget.orig.service - LSB: iSCSI target daemon Loaded: loaded (/etc/init.d/iscsitarget.orig) Active: inactive (dead) CGroup: name=systemd:/system/iscsitarget.orig.service ~ # ps aux | grep ietd root 3443 0.0 0.0 4152 676 ? Ss Jan25 0:00 /usr/sbin/ietd ~ # /etc/init.d/iscsitarget.orig restart redirecting to systemctl ~ # ps aux | grep ietd root 3443 0.0 0.0 4152 676 ? Ss Jan25 0:00 /usr/sbin/ietd ~ # cat /etc/init.d/iscsi_trgt.pid /var/run/iscsi_trgt.pid: No such file or directory ~ # cat /var/run/ietd.pid 3443 Actual Results: ietd still runs (see above) Expected Results: ietd should be stopped (and restarted) -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |hare@suse.com |ovo.novell.com | -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c Hannes Reinecke <hare@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|hare@suse.com |lduncan@novell.com -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c1 Lee Duncan <lduncan@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Lee Duncan <lduncan@novell.com> 2012-02-02 01:55:08 UTC --- I believe this bug will be fixed by the fix for bnc#676803 ... I believe this bug should be marked as a duplicate of that one, since the newer iscsitarget used as the solution to that bug no longer uses the wrong PID file. -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c2 Lee Duncan <lduncan@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |DUPLICATE --- Comment #2 from Lee Duncan <lduncan@novell.com> 2012-02-02 16:54:16 UTC --- Closing as a duplicate of bnc#676803, having hear no objections. *** This bug has been marked as a duplicate of bug 676803 *** http://bugzilla.novell.com/show_bug.cgi?id=676803 -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c3 Stefan Münkner <stefan.muenkner@mx.uni-saarland.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|DUPLICATE | Severity|Normal |Major --- Comment #3 from Stefan Münkner <stefan.muenkner@mx.uni-saarland.de> 2012-06-05 10:59:32 UTC --- As it is common with "beliefs", they lead can lead you astray.... I just spend a good half an hour only to find out that the above bug is still present in the package. ietd cannot be stoppped by /etc/init.d/iscsitarget, since iscsitarget "believes" (sic!) that /var/run/isci_trgt.pid is the correct pid file. The only connection to bug 676803 was that the new ietd uses a different file for its PID and that needed to be changed in /etc/init.d/iscsitarget. All of the above error description. NB I also believed (and did not check) that the fixed package got it right.... Cheers, Stefan -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c4 --- Comment #4 from Stefan Münkner <stefan.muenkner@mx.uni-saarland.de> 2012-06-05 11:45:40 UTC --- Correction: As it is common with "beliefs", they lead can lead you astray.... I just spend a good half an hour only to find out that the above bug is still present in the package. ietd cannot be stoppped by /etc/init.d/iscsitarget, since iscsitarget "believes" (sic!) that /var/run/iscsi_trgt.pid is the correct pid file. The only connection to bug 676803 was that the new ietd uses a different file for its PID and that needed to be changed in /etc/init.d/iscsitarget. All of the above error description still applies. NB I also believed (and did not check) that the fixed package got it right.... Cheers, Stefan -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c5 Lee Duncan <lduncan@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |maintenance@opensuse.org --- Comment #5 from Lee Duncan <lduncan@novell.com> 2012-06-11 20:20:06 PDT --- Stefan, you are correct. The file that becomes /etc/init.d/iscsitarget is not part of the iscsitarget project, since it is SUSE-specific. And your patch, obviously, is the fix. I will submit this to our build process for openSUSE 12.1 Build Service: the change for the service init file is one line, and I'd like to submit for 12.1. -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c6 Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED CC| |meissner@suse.com InfoProvider|maintenance@opensuse.org | --- Comment #6 from Marcus Meissner <meissner@suse.com> 2012-06-12 06:34:10 UTC --- is fine for an update. Please file a maintenancerequest -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c7 --- Comment #7 from Lee Duncan <lduncan@novell.com> 2012-06-13 10:56:57 PDT --- I am submitting this to OBS, with help from Marcus ... -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c8 --- Comment #8 from Lee Duncan <lduncan@novell.com> 2012-06-14 13:26:54 PDT --- Submitted to build service as Request# 125040. -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c9 --- Comment #9 from Lee Duncan <lduncan@novell.com> 2012-06-18 18:37:27 PDT --- It looks like the requested change was accepted: https://build.opensuse.org/request/show/125040 -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c10 --- Comment #10 from Stefan Münkner <stefan.muenkner@mx.uni-saarland.de> 2012-06-19 12:04:07 UTC --- Sorry, I've been away from my mail for some time. Great that it's on its way and many thanks for the prompt reaction. Cheers, Stefan -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c11 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #11 from Benjamin Brunner <bbrunner@suse.com> 2012-06-25 10:43:42 CEST --- Update released for 12.1. Resolved fixed. -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c12 --- Comment #12 from Swamp Workflow Management <swamp@suse.de> 2012-06-25 09:09:23 UTC --- openSUSE-RU-2012:0786-1: An update that has one recommended fix can now be installed. Category: recommended (low) Bug References: 743562 CVE References: Sources used: openSUSE 12.1 (src): iscsitarget-1.4.20.3-9.6.1 -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c13 --- Comment #13 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-11-05 22:00:08 CET --- This is an autogenerated message for OBS integration: This bug (743562) was mentioned in https://build.opensuse.org/request/show/140259 Factory / iscsitarget -- 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=743562 https://bugzilla.novell.com/show_bug.cgi?id=743562#c14 --- Comment #14 from Swamp Workflow Management <swamp@suse.de> 2012-11-12 17:09:12 UTC --- openSUSE-RU-2012:1462-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 743562 CVE References: Sources used: openSUSE 12.2 (src): iscsitarget-1.4.20.3-2.12.1 -- 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.
participants (1)
-
bugzilla_noreply@novell.com