[Bug 751621] New: /usr/lib/pm-utils/sleep.d/06autofs unconditionally (re)starts autofs
https://bugzilla.novell.com/show_bug.cgi?id=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c0 Summary: /usr/lib/pm-utils/sleep.d/06autofs unconditionally (re)starts autofs Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: All OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gp@suse.com QAContact: qa@suse.de Found By: --- Blocker: --- Upon resuming from suspend, /usr/lib/pm-utils/sleep.d/06autofs unconditionally starts autofs: thaw|resume) rcautofs restart ;; This is not appropriate in case autofs was not running before suspend. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de AssignedTo|bnc-team-screening@forge.pr |mvyskocil@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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |751887 -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c1 --- Comment #1 from Michal Vyskocil <mvyskocil@suse.com> 2012-03-15 13:36:21 UTC --- The code is very bad, there is (untested) correct version case "$1" in hibernate|suspend) if service autofs status &> /dev/null; then savestate autofs running service autofs stop else savestate autofs "" fi ;; thaw|resume) _autofs_state=`restorestate autofs` if test "x$_autofs_state" != x ; then service autofs start fi ;; *) exit $NA ;; esac However using /sbin/service under systemd is buggy, so we might workaround it for released products ... -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c2 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mvyskocil@suse.com |vdziewiecki@suse.com --- Comment #2 from Michal Vyskocil <mvyskocil@suse.com> 2012-03-27 08:32:09 UTC --- moved to the new maintainer - I would say this is a part of running maintenance update, don't it? -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c Bug 751621 depends on bug 751887, which changed state. Bug 751887 Summary: Hibernation failure after security patches applied. http://bugzilla.novell.com/show_bug.cgi?id=751887 What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c3 Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |FIXED --- Comment #3 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-03-27 08:49:32 UTC --- Submitted fixed packages: OpenSUSE 12.1 - 109939 OpenSUSE 11.4 - 109938 -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c Bug 751621 depends on bug 751887, which changed state. Bug 751887 Summary: Hibernation failure after security patches applied. http://bugzilla.novell.com/show_bug.cgi?id=751887 What |Old Value |New Value ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c4 Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|FIXED | --- Comment #4 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-04-06 11:00:15 UTC --- This fix unfortunately screwed the whole suspend process. The savestate function, used in 06autofs, looks like this: savestate() { # $1 = name of state to save # $2 (optional) State to save. If omitted, save stdin. if [ -n "$2" ]; then echo "$2" > "${STORAGEDIR}/state:$1" else cat > "${STORAGEDIR}/state:$1" fi } And autofs stops at savestate autofs "", because it waits for stdin. So I would change it to sth like: savestate autofs notrunning #(instead of "") and then: if test "$_autofs_state" = running ; then -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c5 Jon Nelson <jnelson-suse@jamponi.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jnelson-suse@jamponi.net --- Comment #5 from Jon Nelson <jnelson-suse@jamponi.net> 2012-04-11 12:43:04 UTC --- I found this bug and am having the same problem as the last comment. With autofs running at suspend time, it is shut down. It is not started back up upon resume. However, in pm-suspend.log I see this: /usr/lib/pm-utils/sleep.d/30s2disk-check resume suspend: success. Running hook /usr/lib/pm-utils/sleep.d/06autofs resume suspend: Starting automount ..done but rcautofs status shows (upon resume): redirecting to systemctl autofs.service - LSB: automatic mounting of filesystems Loaded: loaded (/etc/init.d/autofs) Active: inactive (dead) since Wed, 11 Apr 2012 07:40:03 -0500; 4s ago Process: 22068 ExecStop=/etc/init.d/autofs stop (code=exited, status=0/SUCCESS) Process: 22028 ExecStart=/etc/init.d/autofs start (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/autofs.service Should SYSTEMD_NO_WRAP=yes be used for start? worklaptop:~ # SYSTEMD_NO_WRAP=yes service autofs start Starting automount done worklaptop:~ # rcautofs status redirecting to systemctl autofs.service - LSB: automatic mounting of filesystems Loaded: loaded (/etc/init.d/autofs) Active: inactive (dead) since Wed, 11 Apr 2012 07:42:07 -0500; 7s ago Process: 22323 ExecStop=/etc/init.d/autofs stop (code=exited, status=0/SUCCESS) Process: 22247 ExecStart=/etc/init.d/autofs start (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/autofs.service worklaptop:~ # OK, it's not SYSTEMD_NO_WRAP: worklaptop:~ # service autofs start redirecting to systemctl worklaptop:~ # rcautofs status redirecting to systemctl autofs.service - LSB: automatic mounting of filesystems Loaded: loaded (/etc/init.d/autofs) Active: inactive (dead) since Wed, 11 Apr 2012 07:42:53 -0500; 3s ago Process: 22387 ExecStop=/etc/init.d/autofs stop (code=exited, status=0/SUCCESS) Process: 22378 ExecStart=/etc/init.d/autofs start (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/autofs.service worklaptop:~ # Apparently 'service autofs start' is not sufficient to actually start it unless it was stopped with 'service autofs stop'. What's going on here? This sounds like a systemd or /sbin/service bug. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c6 --- Comment #6 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-04-16 09:20:04 UTC --- After applying the fix I proposed (savestate autofs notrunning instead of ""), everything works as it should. In case autofs is running, it is stopped with SYSTEMD_NO_WRAP=yes service autofs stop and then, upon resume, started again with SYSTEMD_NO_WRAP=yes service autofs start I have tested it, everything seems to work fine. This will be fixed in a maintenance update #sr113212, see bug 751887. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c Bug 751621 depends on bug 751887, which changed state. Bug 751887 Summary: Hibernation failure after security patches applied. http://bugzilla.novell.com/show_bug.cgi?id=751887 What |Old Value |New Value ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c7 Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |FIXED --- Comment #7 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-04-19 07:38:06 UTC --- The update was released this morning. Jon: Does it work as it should for you? -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c8 --- Comment #8 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-04-19 12:00:18 CEST --- This is an autogenerated message for OBS integration: This bug (751621) was mentioned in https://build.opensuse.org/request/show/114572 Factory / pm-utils -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c9 --- Comment #9 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-04-19 12:02:13 UTC --- Sorry it was released for 11.4 and 12.1. But I have already submitted the fix to factory, see Comment 8. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c10 --- Comment #10 from Jon Nelson <jnelson-suse@jamponi.net> 2012-04-20 19:30:34 UTC --- regarding comment 7 - sorry, no, this doesn't seem to change anything. Everything in comment 5 still holds. 1.4.1-12.20.1 installed 18 April 2012. worklaptop:~ # rcautofs status redirecting to systemctl autofs.service - LSB: automatic mounting of filesystems Loaded: loaded (/etc/init.d/autofs) Active: inactive (dead) since Fri, 20 Apr 2012 12:47:57 -0500; 1h 39min ago Process: 3008 ExecStop=/etc/init.d/autofs stop (code=exited, status=0/SUCCESS) Process: 2978 ExecStart=/etc/init.d/autofs start (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/autofs.service worklaptop:~ # Note the timestamp above, and then note this (the last line in /var/log/pm-suspend.log): Fri Apr 20 12:47:44 CDT 2012: Finished. I'm not sure this is a pm-utils bug. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c11 --- Comment #11 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-04-23 10:19:10 UTC --- Created an attachment (id=487391) --> (http://bugzilla.novell.com/attachment.cgi?id=487391) This autofs should work better Strange. If I use service: dhcp41:~ # service autofs stop redirecting to systemctl dhcp41:~ # rcautofs status|grep -A 1 Loaded redirecting to systemctl Loaded: loaded (/etc/init.d/autofs) Active: inactive (dead) since Mon, 23 Apr 2012 12:00:08 +0200; 13s ago dhcp41:~ # service autofs start redirecting to systemctl dhcp41:~ # rcautofs status|grep -A 1 Loaded redirecting to systemctl Loaded: loaded (/etc/init.d/autofs) Active: active (running) since Mon, 23 Apr 2012 12:00:30 +0200; 1s ago With SYSTEMD_NO_WRAP: dhcp41:~ # SYSTEMD_NO_WRAP=yes service autofs stop Shutting down automount done dhcp41:~ # rcautofs status|grep -A 1 Loaded redirecting to systemctl Loaded: loaded (/etc/init.d/autofs) Active: active (exited) since Mon, 23 Apr 2012 12:00:30 +0200; 1min 7s ago dhcp41:~ # SYSTEMD_NO_WRAP=yes service autofs start Starting automount done dhcp41:~ # rcautofs status|grep -A 1 Loaded redirecting to systemctl Loaded: loaded (/etc/init.d/autofs) Active: active (exited) since Mon, 23 Apr 2012 12:00:30 +0200; 1min 16s ago Now some of those command use sysvinit, the other ones systemd and it is a mess. I added SYSTEMD_NO_WRAP because of Bug 751811. IMO the best way to do this would be systemctl stop/start autofs.service, and use the attached hook. Jon could you try it out please? -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c12 Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P4 - Low Status|CLOSED |REOPENED Resolution|FIXED | --- Comment #12 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-04-23 10:19:50 UTC --- And we can reopen this. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c13 --- Comment #13 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-04-26 17:00:10 CEST --- This is an autogenerated message for OBS integration: This bug (751621) was mentioned in https://build.opensuse.org/request/show/115735 Factory / pm-utils -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c14 --- Comment #14 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-05-11 14:00:28 CEST --- This is an autogenerated message for OBS integration: This bug (751621) was mentioned in https://build.opensuse.org/request/show/120703 Factory / pm-utils https://build.opensuse.org/request/show/120704 Factory / pm-utils -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c15 Jan Ritzerfeld <suse@bugs.jan.ritzerfeld.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse@bugs.jan.ritzerfeld.or | |g --- Comment #15 from Jan Ritzerfeld <suse@bugs.jan.ritzerfeld.org> 2012-05-28 13:42:05 UTC --- BTW, using 12.1 there is /etc/NetworkManager/dispatcher.d/autofs that restarts autofs when the network goes up if rc_active autofs is true. This might(!) be a cause for this problem, too. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c16 --- Comment #16 from Jan Ritzerfeld <suse@bugs.jan.ritzerfeld.org> 2012-06-03 17:29:59 UTC --- BTW, 12.2 Beta 1 uses the same /etc/NetworkManager/dispatcher.d/autofs script as 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c17 Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED --- Comment #17 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-06-12 07:37:30 UTC --- Restarting autofs when the network goes up if rc_active autofs is true is probably intentional, I don't think it's a bug... Anyway, I would like to change those "service" calls in 06autofs to pm-utils functions "stopservice" and "restartservice", and redefine those functions so they test systemd presence, like this: stopservice() { if test `cat /proc/1/comm` = "systemd" then if systemctl status "$1".service then touch "${STORAGEDIR}/service:$1" systemctl stop "$1".service fi else if service "$1" status 2>/dev/null | grep -q -e running -e started then touch "${STORAGEDIR}/service:$1" service "$1" stop fi fi } restartservice() { if [ -O "${STORAGEDIR}/service:$1" ] then if test `cat /proc/1/comm` = "systemd" then systemctl start "$1".service else service "$1" start fi fi } This works perfectly for me, and I hope it will for everyone. I will release this along with a fix for bnc#753589. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c18 --- Comment #18 from Jon Nelson <jnelson-suse@jamponi.net> 2012-06-12 14:23:54 UTC --- That seems reasonable, but I would suggest running that past somebody that knows systemd inside and out as a precaution. I look forward to seeing this fixed, and thank you for your efforts! -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c19 --- Comment #19 from Jan Ritzerfeld <suse@bugs.jan.ritzerfeld.org> 2012-06-12 19:55:55 UTC --- @Vojtech: It seems to be reasonable. However, this restart often caused the loss of autofs for me in 12.1 when resuming. That is, after disabling the restart by "chmod -x /etc/NetworkManager/dispatcher.d/autofs" autofs works fine even after resume. IMHO, this is caused by two scripts trying to restart autofs at almost the same time: First, pm-utils and, second, NetworkManager. However, as I have already stated, I do not know whether this is still true for 12.2. Furthermore, it might be a coincidence that "chmod -x ..." solved this problem using 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c20 --- Comment #20 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-06-13 08:23:38 UTC --- I see. After resume, pm-utils bring up NetworkManager sooner then autofs, there is a hook for NetworkManager too. But I'm not sure how to deal with this. One thing came on my mind: We could add chmod -x /etc/NetworkManager/dispatcher.d/autofs to the pm-utils NetworkManager hook, and then +x again, but when? After NetworkManager is started? It seems too soon to me, since it runs those dispatcher scripts after establishing a connection. I could add some "sleep" before that, but that would be so ugly.. I'm out of ideas for now. I will bring my laptop tomorrow and mess around with it a little, maybe I will figure something out. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c21 --- Comment #21 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-06-15 15:17:53 UTC --- No that would be ugly! What about checkproc NetworkManager && don't bring up autofs and leave it for NetworkManager? That would be better IMO... -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c22 --- Comment #22 from Jon Nelson <jnelson-suse@jamponi.net> 2012-06-15 16:08:17 UTC --- There should only be *one* chunk of software that manages this. Getting changes into NM is much harder than getting changes into pm-utils. My suggestion would be to communicate with the NM maintainer and have them remove/disable the autofs management by NM, or have the NM script *call out* to pm-utils for such management (and then have pm-utils do the right things). -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c23 --- Comment #23 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-06-18 09:02:52 UTC --- Well if NetworkManager disabled autofs management, autofs would often be started before the network connection is established. I guess this won't be a problem? The reason: Upon resume, pm-utils tells NM to restore the connection, but doesn't wait for it to actually connect, it continues with other hooks instead. So it can attempt to start autofs before the connection is established. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c24 Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |vuntz@suse.com --- Comment #24 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-06-18 09:29:34 UTC --- Vincent, I'm not sure if you are the right person to ask, but I can't find the maintainer of NetworkManager... What do you think about this? The summary of the problem: A NetworkManager script starts autofs at the (roughly) same time as pm-utils, when resuming from suspend. This is a conflict where two scripts do the same thing. Paths to the scripts: /etc/NetworkManager/dispatcher.d/autofs /usr/lib/pm-utils/sleep.d/06autofs Thanks for your insight. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c25 Vincent Untz <vuntz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED CC| |bili@suse.com, | |vuntz@suse.com InfoProvider|vuntz@suse.com | --- Comment #25 from Vincent Untz <vuntz@suse.com> 2012-06-18 09:41:15 UTC --- The pm-utils script should probably do nothing if the network is managed by NetworkManager, then, I guess. cc'ing Bin Li who knows more about NM. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c26 --- Comment #26 from Li Bin <bili@suse.com> 2012-06-19 08:13:18 UTC --- Hi, The /etc/ was provided by autofs package. It would be better to let the NM to start the autofs, just like Vojtech says in Comment#23. Another case should be noted is that when you use ifup mode, the autofs will not start without /usr/lib/pm-utils/sleep.d/06autofs. So it's a little hard to make the final decision. :) -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c27 --- Comment #27 from Li Bin <bili@suse.com> 2012-06-19 08:20:00 UTC --- Sorry for clerical mistake. /etc/NetworkManager/dispatcher.d/autofs was provided by autofs package. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c28 --- Comment #28 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-06-19 09:31:53 UTC ---
Another case should be noted is that when you use ifup mode, the autofs will not start without /usr/lib/pm-utils/sleep.d/06autofs.
So it's a little hard to make the final decision. :)
What you mean? Autofs will start upon resume. That 06autofs hook will be disabled only "if checkproc NetworkManager", else it will do it's job... I don't see the problem here. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c29 Li Bin <bili@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |vdziewiecki@suse.com --- Comment #29 from Li Bin <bili@suse.com> 2012-06-20 05:43:52 UTC --- (In reply to comment #28)
Another case should be noted is that when you use ifup mode, the autofs will not start without /usr/lib/pm-utils/sleep.d/06autofs.
So it's a little hard to make the final decision. :)
What you mean? Autofs will start upon resume. That 06autofs hook will be disabled only "if checkproc NetworkManager", else it will do it's job...
I don't see the problem here.
I can't find 'checkproce NetworkMananger' in /etc/init.d/autofs or /usr/lib/pm-utils/sleep.d/06autofs. I'm not sure if I understand correctly, that 06autofs hook will be disabled only "if checkproc NetworkManager", else it will do it's job. So why conflict with NM's hook script? Thanks! -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c30 --- Comment #30 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-06-20 09:41:34 UTC --- 'checkproc NetworkMananger' is not there, but I will add it, like this: case "$1" in hibernate|suspend) stopservice autofs ;; thaw|resume) checkproc NetworkManager || restartservice autofs ;; *) exit $NA ;; esac And that should solve the problem· -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|vdziewiecki@suse.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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c31 --- Comment #31 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-06-20 18:00:13 CEST --- This is an autogenerated message for OBS integration: This bug (751621) was mentioned in https://build.opensuse.org/request/show/125546 Factory / pm-utils -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c32 --- Comment #32 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-06-21 14:00:10 CEST --- This is an autogenerated message for OBS integration: This bug (751621) was mentioned in https://build.opensuse.org/request/show/125636 Factory / pm-utils -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c33 --- Comment #33 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-06-21 20:00:18 CEST --- This is an autogenerated message for OBS integration: This bug (751621) was mentioned in https://build.opensuse.org/request/show/125701 Factory / pm-utils -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c34 Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |FIXED --- Comment #34 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-06-25 11:45:44 UTC --- Submitted. 12.1: sr#125700 11.4: sr#125699 Closing. -- 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=751621 https://bugzilla.novell.com/show_bug.cgi?id=751621#c35 --- Comment #35 from Swamp Workflow Management <swamp@suse.de> 2012-07-03 15:09:28 UTC --- openSUSE-RU-2012:0816-1: An update that has 5 recommended fixes can now be installed. Category: recommended (low) Bug References: 633496,697379,751621,751811,753589 CVE References: Sources used: openSUSE 12.1 (src): pm-utils-1.4.1-12.25.1 openSUSE 11.4 (src): pm-utils-1.4.1-5.32.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