[Bug 544400] New: update of open-vm-tools hangs
http://bugzilla.novell.com/show_bug.cgi?id=544400 Summary: update of open-vm-tools hangs Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: i586 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Update Problems AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: jsrain@novell.com Found By: --- trying to update using "zypper dup" from older factory to factory-current, zypper hangs when updating "open-vm-tools" (i've seen this hang before). ps uxwwwOT shows: .. root 3355 0.0 0.4 5048 1108 pts/2 R 17:53 0:00 bash root 3399 0.9 2.1 62664 5280 pts/2 T 17:53 0:38 zypper dup -l root 9451 0.0 0.2 10688 592 ? S<sl 18:26 0:00 /sbin/auditd -s disable root 9453 0.0 0.2 10160 600 ? S<sl 18:26 0:00 /sbin/audispd root 9493 0.0 0.1 1792 452 ? Ss 18:27 0:00 /sbin/acpid root 11367 0.0 0.3 2704 916 ? S<s 18:33 0:00 /sbin/udevd --daemon root 19810 0.0 0.9 7256 2228 ? Ss 18:47 0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf root 22265 0.0 0.0 0 0 pts/2 Z 18:53 0:00 [rpm] <defunct> root 22313 0.0 1.2 24452 3036 pts/2 T 18:53 0:00 /usr/bin/vmtoolsd root 22748 0.0 0.4 2740 988 pts/2 R+ 19:03 0:00 ps uxwwwOT and ps lxwwwOT : 0 0 22265 3399 20 0 0 0 exit Z pts/2 0:00 [rpm] <defunct> 4 0 22313 1 20 0 24452 3036 finish T pts/2 0:00 /usr/bin/vmtoolsd 4 0 22750 3355 20 0 2504 816 - R+ pts/2 0:00 ps lxwwwOT killing vmtoolsd (pid 22313) makes the update to continue... -- 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=544400 User meissner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544400#c1 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@novell.com AssignedTo|bnc-team-screening@forge.pr |prusnak@novell.com |ovo.novell.com | --- Comment #1 from Marcus Meissner <meissner@novell.com> 2009-10-06 03:28:48 MDT --- this usually happens when a daemon( vmtoolsd) leaves file descriptors open (like stdin/stdout/stderr) instead of correctly daemonizing. -- 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=544400 User koenig@linux.de added comment http://bugzilla.novell.com/show_bug.cgi?id=544400#c2 --- Comment #2 from Harald Koenig <koenig@linux.de> 2009-10-09 12:02:57 MDT --- (In reply to comment #1)
this usually happens when a daemon( vmtoolsd) leaves file descriptors open (like stdin/stdout/stderr) instead of correctly daemonizing.
it happend again when updating to open-vm-tools-2009.07.22-1.23. vmtoolsd is still running, so I can provide some more info. vmtoolsd still has a PGID and is associated with pts/3 : # ps -jlp 29891 14783 F S UID PID PPID PGID SID C PRI NI ADDR SZ WCHAN TTY TIME CMD 4 S 0 14783 3403 14783 3346 0 80 0 - 14957 pipe_w pts/3 0:31 zypper dup -l 4 S 0 29891 1 14783 3346 0 80 0 - 6113 poll_s pts/3 0:02 /usr/bin/vmtoolsd but threre is no open file descriptor other than lots of pipes: # ll /proc/29891/fd total 0 lr-x------ 1 root root 64 2009-10-09 19:52 0 -> /dev/null l-wx------ 1 root root 64 2009-10-09 19:52 1 -> /dev/null l-wx------ 1 root root 64 2009-10-09 19:52 10 -> pipe:[595813] lr-x------ 1 root root 64 2009-10-09 19:52 11 -> pipe:[595814] l-wx------ 1 root root 64 2009-10-09 19:52 12 -> pipe:[595814] lr-x------ 1 root root 64 2009-10-09 19:52 13 -> pipe:[595815] l-wx------ 1 root root 64 2009-10-09 19:52 14 -> pipe:[595815] l-wx------ 1 root root 64 2009-10-09 19:52 2 -> pipe:[595258] lr-x------ 1 root root 64 2009-10-09 19:52 3 -> pipe:[595810] l-wx------ 1 root root 64 2009-10-09 19:52 4 -> pipe:[595810] lr-x------ 1 root root 64 2009-10-09 19:52 5 -> pipe:[595811] l-wx------ 1 root root 64 2009-10-09 19:52 6 -> pipe:[595811] lr-x------ 1 root root 64 2009-10-09 19:52 7 -> pipe:[595812] l-wx------ 1 root root 64 2009-10-09 19:52 8 -> pipe:[595812] lr-x------ 1 root root 64 2009-10-09 19:52 9 -> pipe:[595813] strace shows: 20:01:35.730217 poll([{fd=3, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}], 6, 99) = 0 (Timeout) 20:01:35.834029 gettimeofday({1255111295, 834060}, NULL) = 0 20:01:35.834113 gettimeofday({1255111295, 834130}, NULL) = 0 20:01:35.834167 gettimeofday({1255111295, 834184}, NULL) = 0 20:01:35.834218 poll([{fd=3, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}], 6, 99) = 0 (Timeout) 20:01:35.934170 gettimeofday({1255111295, 934201}, NULL) = 0 20:01:35.934256 gettimeofday({1255111295, 934273}, NULL) = 0 20:01:35.934310 gettimeofday({1255111295, 934327}, NULL) = 0 20:01:35.934362 poll([{fd=3, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}, {fd=13, events=POLLIN}], 6, 100) = 0 (Timeout) 20:01:36.038044 gettimeofday({1255111296, 38073}, NULL) = 0 20:01:36.038128 gettimeofday({1255111296, 38145}, NULL) = 0 20:01:36.038182 gettimeofday({1255111296, 38199}, NULL) = 0 -- 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=544400 User koenig@linux.de added comment http://bugzilla.novell.com/show_bug.cgi?id=544400#c3 --- Comment #3 from Harald Koenig <koenig@linux.de> 2009-10-14 08:50:44 MDT --- (In reply to comment #2)
it happend again when updating to open-vm-tools-2009.07.22-1.23.
same with open-vm-tools-2009.07.22-1.24 ... -- 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=544400 User prusnak@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544400#c4 --- Comment #4 from Pavol Rusnak <prusnak@novell.com> 2009-10-14 16:54:38 CEST --- Release number is in form X.Y where X is check-in number and Y is rebuild number. Change from 1.23 to 1.24 means that the package was rebuilt (because some of the dependencies changed), but there was no check-in (change). -- 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=544400 http://bugzilla.novell.com/show_bug.cgi?id=544400#c Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |prusnak@novell.com AssignedTo|prusnak@novell.com |dominique.leuenberger@tmf-g | |roup.com -- 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=544400 http://bugzilla.novell.com/show_bug.cgi?id=544400#c5 --- Comment #5 from Dominique Leuenberger <dominique.leuenberger@tmf-group.com> 2010-04-21 08:59:48 UTC --- This most likely happens because the user process (vmware-user) is having file descriptors open in /proc/fs/vmblock/*. This causes troubles unloading / reloading the vmblock module (thanks Dmitry @ vmware for pointing this one out). A test package with this in the vmtoolsd script is being built in home:dimstar:branches:Virtualization:VMware/open-vm-tools. An update *to* this version will still hang (as the vmtoolsd init script does not have the updated parameters yet on disk). Any subsequent updates should then work. -- 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=544400 http://bugzilla.novell.com/show_bug.cgi?id=544400#c6 --- Comment #6 from Dominique Leuenberger <dominique.leuenberger@tmf-group.com> 2010-04-23 10:13:18 UTC --- Created an attachment (id=356438) --> (http://bugzilla.novell.com/attachment.cgi?id=356438) New init script that takes care of passing -SIGUSR1 to vmtools-user process The package is there and some testing with this is welcome (I know it's rather tricky, as an update TO this version will still fail..). Alternatively, to test the real update, you could try to patch /etc/init.d/vmtoolsd with the change applied in the package and only after that update to it. That should give us some insight here. Please replace your vmtoolsd with the one attached hereto. -- 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=544400 http://bugzilla.novell.com/show_bug.cgi?id=544400#c Dominique Leuenberger <dominique.leuenberger@tmf-group.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |koenig@linux.de -- 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=544400 http://bugzilla.novell.com/show_bug.cgi?id=544400#c7 Dmitry Torokhov <dtor@vmware.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dtor@vmware.com --- Comment #7 from Dmitry Torokhov <dtor@vmware.com> 2010-04-23 21:03:39 UTC --- You should be able to send -SUGUSR1 signal to vmware-user from the rpm preinstall scriptlet and it should to the trick even when upgrading from older version of the package I think. -- 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=544400 http://bugzilla.novell.com/show_bug.cgi?id=544400#c8 Klaus Slott <k.slott@vink-slott.dk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |k.slott@vink-slott.dk --- Comment #8 from Klaus Slott <k.slott@vink-slott.dk> 2010-05-31 12:51:30 UTC --- I'v just been hit by this problem today and is a little confused about the patch. I tried to update 2 virtual machines today and both updates stalled with a rpm in defunct state. (Described in detail here: http://forums.opensuse.org/get-help-here/install-boot-login/438469-yast-zypp... ) Before updating the 3.machine I thought that I would apply the patch by hand. As far as I can see, the patch sends a signal to /usr/bin/vmtools-user - but there is no such binary on my system. An no such process # ps ax | grep vmtools 1867 ? Sl 1:52 /usr/bin/vmtoolsd 1874 ? Ss 0:00 startpar -f -- vmtoolsd Am I right in assuming that the signal should go to /usr/bin/vmtoolsd ? -- 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=544400 http://bugzilla.novell.com/show_bug.cgi?id=544400#c9 Dominique Leuenberger <dominique.leuenberger@tmf-group.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|koenig@linux.de | Resolution| |FIXED --- Comment #9 from Dominique Leuenberger <dominique.leuenberger@tmf-group.com> 2010-06-09 21:42:09 UTC --- updated package has been submitted to Factory (with the SIGUSR being sent to vmware-user process) -- 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