[Bug 506833] New: /etc/init.d/xend and xendomains are unable to find xend daemon process
http://bugzilla.novell.com/show_bug.cgi?id=506833 Summary: /etc/init.d/xend and xendomains are unable to find xend daemon process Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: jdouglas@novell.com ReportedBy: mt@novell.com QAContact: qa@suse.de CC: carnold@novell.com, jfehlig@novell.com Found By: --- The /etc/init.d/xendomains script does not work, because the grep -w python in the check function does not match "python2.6" word: # ps ax | grep -w xend 3222 ? S 0:00 /usr/bin/python2.6 /usr/sbin/xend start 3224 ? Sl 0:36 /usr/bin/python2.6 /usr/sbin/xend start Same code is used in /etc/init.d/xend, but with a fallback to the "xend status" return code (in status) and preform the actions also with an empty XEND variable. Possible fix to setting XEND variable in these scripts is pidof -x: --- /etc/init.d/xendomains +++ /etc/init.d/xendomains @@ -55,8 +55,7 @@ check() { - XEND=`ps ax | grep -w xend | grep -w python | awk '{ print $1 }'` - XEND=`echo $XEND` + XEND=`pidof -x /usr/sbin/xend` -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506833 User mt@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506833#c1 --- Comment #1 from Marius Tomaschewski <mt@novell.com> 2009-05-25 05:19:04 MDT --- --- /etc/init.d/xend +++ /etc/init.d/xend @@ -21,8 +21,7 @@ . /etc/rc.status rc_reset -XEND=`ps ax | grep -w xend | grep -w python | awk '{ print $1 }'` -XEND=`echo $XEND` +XEND=`pidof -x /usr/sbin/xend` await_daemons_up() { -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506833 User jfehlig@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506833#c2 James Fehlig <jfehlig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |mt@novell.com --- Comment #2 from James Fehlig <jfehlig@novell.com> 2009-05-25 22:01:56 MDT --- Hi Marius, I have a similar change in head that uses XEND=`pidofproc /usr/sbin/xend` instead of pidof. Is there a preference in init scripts? I like the output of pidofproc better :-). xen33:~ # pidof -x /usr/sbin/xend 4719 4715 xen33:~ # pidofproc /usr/sbin/xend 4719 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506833 User mt@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506833#c3 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|mt@novell.com |werner@novell.com --- Comment #3 from Marius Tomaschewski <mt@novell.com> 2009-05-26 08:18:58 MDT --- I know that there where problems that the ...proc variants didn't work with scripts, so I've not even tried out pidofproc but pidof -x only. But when pidofproc works, it should be fine I think. Let's ask Werner - he knows it. Werner, what do you say? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506833 User werner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506833#c4 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |werner@novell.com Info Provider|werner@novell.com | --- Comment #4 from Dr. Werner Fink <werner@novell.com> 2009-05-26 08:49:00 MDT --- The pidofproc compares the inodes of /usr/sbin/xend with the inodes of the `exe' link of the current processes. For pidofproc there exist the -n option to scan also kernel threads ... currently there is no option -x for pidofproc and only shell scripts will be identified, no python, perl nor wish -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506833 User jfehlig@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506833#c5 James Fehlig <jfehlig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from James Fehlig <jfehlig@novell.com> 2009-05-27 10:50:01 MDT --- I have committed the xend init script patch below to svn for next SLE11/openSUSE11.1 maintenance update. For xendomain init script, I made the change Marius noted in original description. --- init.xend (revision 1337) +++ init.xend (revision 1747) @@ -21,8 +21,7 @@ . /etc/rc.status rc_reset -XEND=`ps ax | grep -w xend | grep -w python | awk '{ print $1 }'` -XEND=`echo $XEND` +XEND=`pidof -x /usr/sbin/xend` await_daemons_up() { @@ -115,7 +114,7 @@ if [ ! -z "$XEND" ]; then echo -n "(pid $XEND) " fi - xend status + checkproc /usr/sbin/xend ;; restart|reload) check $1 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506833 User swamp@suse.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506833#c6 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:26251 --- Comment #6 from Swamp Workflow Management <swamp@suse.com> 2009-07-31 04:07:48 MDT --- The SWAMPID for this issue is 26251. Please submit the patch and patchinfo file using this ID. (https://swamp.suse.de/webswamp/wf/26251) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506833 User swamp@suse.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506833#c7 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:26251 |maint:running:26251 | |maint:released:11.1:27206 --- Comment #7 from Swamp Workflow Management <swamp@suse.com> 2009-11-04 17:20:22 MST --- Update released for: libvirt, libvirt-cim, libvirt-cim-debuginfo, libvirt-cim-debugsource, libvirt-debuginfo, libvirt-debugsource, libvirt-devel, libvirt-doc, libvirt-python, virt-manager, virt-manager-debuginfo, virt-manager-debugsource, virt-viewer, virt-viewer-debuginfo, virt-viewer-debugsource, vm-install, xen, xen-debuginfo, xen-debugsource, xen-devel, xen-doc-html, xen-doc-pdf, xen-kmp-debug, xen-kmp-default, xen-kmp-pae, xen-kmp-trace, xen-kmp-vmi, xen-libs, xen-tools, xen-tools-domU, xen-tools-ioemu Products: openSUSE 11.1 (debug, i586, ppc, x86_64) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506833 User swamp@suse.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506833#c8 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:26251 |maint:running:26251 |maint:released:11.1:27206 |maint:released:11.1:27206 | |maint:released:sle11:27115 --- Comment #8 from Swamp Workflow Management <swamp@suse.com> 2009-11-05 16:09:08 MST --- Update released for: libvirt, libvirt-cim, libvirt-cim-debuginfo, libvirt-cim-debugsource, libvirt-debuginfo, libvirt-debugsource, libvirt-devel, libvirt-doc, libvirt-python, virt-viewer, virt-viewer-debuginfo, virt-viewer-debugsource, vm-install, xen, xen-debuginfo, xen-debugsource, xen-devel, xen-doc-html, xen-doc-pdf, xen-kmp-debug, xen-kmp-default, xen-kmp-pae, xen-kmp-trace, xen-kmp-vmi, xen-libs, xen-tools, xen-tools-domU, xen-tools-ioemu Products: SLE-DEBUGINFO 11 (i386, x86_64) SLE-DESKTOP 11 (i386, x86_64) SLE-SDK 11 (i386, x86_64) SLE-SERVER 11 (i386, x86_64) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506833 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:26251 |maint:released:11.1:27206 |maint:released:11.1:27206 |maint:released:sle11:27115 |maint:released:sle11:27115 | -- Configure bugmail: http://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