[Bug 735837] New: Sleep/Resume for NetworkManager is broken
https://bugzilla.novell.com/show_bug.cgi?id=735837 https://bugzilla.novell.com/show_bug.cgi?id=735837#c0 Summary: Sleep/Resume for NetworkManager is broken Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: joschibrauchle@gmx.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2 I am not sure in which category this bug should go. It consist of multiple problems: a) The sleep/wake script (/usr/lib/pm-utils/sleep.d/55NetworkManager) for NetworkManager is using a wrong dbus command. On line 15 and 27 is uses "dbus_send" instead of the correct "dbus-send" command. Thus this line always failed and /var/log/pm-suspend.log always says ---------- Having NetworkManager put all interaces to sleep...Failed. ---------- b) Once you correct the above script to use "dbus-send", it still fails with the following error in /var/log/pm-suspend.log: ---------- Error org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 9 matched rules; type="method_call", sender=":1.68" (uid=0 pid=<PID> comm="dbus-send) interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager" (uid=0 pid=<PID> comm="/usr/sbin/NetworkManager)) ---------- This seems to be due to some "deny" statement in /etc/dbus-1/system.d/NetworkManager.conf: ---------- <deny send_destination="org.freedesktop.NetworkManager" send_interface="org.freedesktop.NetworkManager" send_member="Sleep"/> <deny send_destination="org.freedesktop.NetworkManager" send_interface="org.freedesktop.NetworkManager" send_member="sleep"/> <deny send_destination="org.freedesktop.NetworkManager" send_interface="org.freedesktop.NetworkManager" send_member="wake"/> ---------- I decided to comment these with XML comments <!-- -->. c) Now, after these changes, the /var/log/pm-suspend.log contains: ---------- Having NetworkManager put all interaces to sleep...Error org.freedesktop.NetworkManager.AlreadyAsleepOrAwake: Already asleep Failed. ---------- Which doesnt seem too bad, but still I think this is not working as it was designed to... Reproducible: Always Steps to Reproduce: 1. But machine (which uses NetworkManager) to sleep 2. Resume 3. Observe errors in /var/log/pm-suspend.log when putting NetworkManager to sleep Actual Results: There are errors when suspending/resuming NetworkManager Expected Results: There should be no errors when suspending/resuming NetworkManager -- 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=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c1
Li Bin
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2
I am not sure in which category this bug should go. It consist of multiple problems:
a) The sleep/wake script (/usr/lib/pm-utils/sleep.d/55NetworkManager) for NetworkManager is using a wrong dbus command. On line 15 and 27 is uses "dbus_send" instead of the correct "dbus-send" command. Thus this line always failed and /var/log/pm-suspend.log always says ---------- Having NetworkManager put all interaces to sleep...Failed. ---------- it's not error, in /usr/lib/pm-utils/functions define the dbus_send function.
b) Once you correct the above script to use "dbus-send", it still fails with the following error in /var/log/pm-suspend.log: ---------- Error org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 9 matched rules; type="method_call", sender=":1.68" (uid=0 pid=<PID> comm="dbus-send) interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager" (uid=0 pid=<PID> comm="/usr/sbin/NetworkManager)) ----------
This seems to be due to some "deny" statement in /etc/dbus-1/system.d/NetworkManager.conf: ---------- <deny send_destination="org.freedesktop.NetworkManager" send_interface="org.freedesktop.NetworkManager" send_member="Sleep"/>
<deny send_destination="org.freedesktop.NetworkManager" send_interface="org.freedesktop.NetworkManager" send_member="sleep"/>
<deny send_destination="org.freedesktop.NetworkManager" send_interface="org.freedesktop.NetworkManager" send_member="wake"/> ---------- I decided to comment these with XML comments <!-- -->. It's not affected, the Sleep only allow by the root permission's user.
c) Now, after these changes, the /var/log/pm-suspend.log contains: ---------- Having NetworkManager put all interaces to sleep...Error org.freedesktop.NetworkManager.AlreadyAsleepOrAwake: Already asleep Failed. ----------
Which doesnt seem too bad, but still I think this is not working as it was designed to...
Maybe it's the reason, I'll check 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=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c2
--- Comment #2 from Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c3
--- Comment #3 from Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c4
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c5
--- Comment #5 from Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c6
--- Comment #6 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c7
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c8
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c9
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c10
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=735837
https://bugzilla.novell.com/show_bug.cgi?id=735837#c11
--- Comment #11 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com