Bug 753352

Summary: Laptop won't sleep when wireless network containing apostrophe is present
Product: [Fedora] Fedora Reporter: Andrew <abenson>
Component: pm-utilsAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: abenson, hughsient, jskarvad, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-14 21:55:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Andrew 2011-11-11 23:24:31 UTC
Description of problem: Laptop will not sleep/suspend. /var/log/pm-suspend.log shows the following problem:


/usr/lib/pm-utils/sleep.d/56atd suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/56dhclient suspend suspend:
./ifcfg-Joel_Primack's_Guest_Network: line 12: unexpected EOF while looking for matching `"'
./ifcfg-Joel_Primack's_Guest_Network: line 18: syntax error: unexpected end of file

/usr/lib/pm-utils/sleep.d/56dhclient suspend suspend: Returned exit code 2.
Fri Nov 11 14:59:07 PST 2011: Inhibit found, will not perform suspend
Fri Nov 11 14:59:07 PST 2011: Running hooks for resume

The problem seems to be with presence of an ' in the icfg file name. This is a wireless network configured through NetworkManager.

Version-Release number of selected component (if applicable): 1.4.1-12.fc16


How reproducible: Haven't tried. But renaming the wireless network in NetworkManager to remove the ' solves the problem, and putting the ' back in causes the problem to occur again.


Steps to Reproduce:
1.
2.
3.
  
Actual results:

Laptop does not enter sleep.

Expected results:

Laptop should enter sleep.

Additional info:

Comment 1 Jaroslav Škarvada 2011-11-14 09:27:57 UTC
Could you provide the content of your ifcfg-Joel_Primack's_Guest_Network?, e.g. the following command should do it:
# cat "/etc/sysconfig/network-scripts/ifcfg-Joel_Primack's_Guest_Network"

Comment 2 Andrew 2011-11-14 17:16:02 UTC
Here's the current version, but this is after renaming the connection in NetworkManager to remove the '. If I try to put it back in I don't get the same problem any more - I installed an update to some of the NetworkManager tools on Saturday so perhaps this fixed the problem from NetworkManager's side?

$ cat "/etc/sysconfig/network-scripts/ifcfg-Joel_Primacks_Guest_Network" 
ESSID="\'Joel Primack\\\'s Guest Network\'"
MODE=Managed
KEY_MGMT=WPA-PSK
WPA_ALLOW_WPA=yes
WPA_ALLOW_WPA2=yes
TYPE=Wireless
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="Joel Primacks Guest Network"
UUID=398330e3-945b-4ae9-94f3-849d7b4e64e5
ONBOOT=yes
USERS=abenson

Comment 3 Jaroslav Škarvada 2011-11-14 20:38:49 UTC
This was probably NetworkManager issue as special chars in ifcfg-* files have to be quoted. If it works, could we close this?

Comment 4 Andrew 2011-11-14 20:45:32 UTC
It seems to work OK for me now, so I think this bug can be closed.

Comment 5 Jaroslav Škarvada 2011-11-14 21:55:43 UTC
Andrew, thanks for info. Closing according to comment 4. Feel free to reopen in case the problem persists.