Bug 742273

Summary: NetworkManager creates ifcfg scripts with spaces in them
Product: [Fedora] Fedora Reporter: Paolo Bonzini <pbonzini>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dcbw, jklimes
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: NetworkManager-0.9.2-1.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 01:00:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 742276    

Description Paolo Bonzini 2011-09-29 14:54:04 UTC
Description of problem:
When the same SSID is used by two networks, one protected and one unprotected,
ifcfg scripts created by NetworkManager are called "ifcfg-Auto_NAME" and
"ifcfg-Auto_NAME 1".  Init scripts do not like this.

This is done on purpose in src/settings/plugins/ifcfg-rh/writer.c:

  if (g_file_test (ifcfg_name, G_FILE_TEST_EXISTS)) {
         guint32 idx = 0;
         g_free (ifcfg_name);
         while (idx++ < 500) {
                 ifcfg_name = g_strdup_printf ("%s/ifcfg-%s %u", ifcfg_dir,
                                               escaped, idx);
                 if (g_file_test (ifcfg_name, G_FILE_TEST_EXISTS) == FALSE)
                         break;
                 g_free (ifcfg_name);
                 ifcfg_name = NULL;
         }
  }
  g_free (escaped);

Version-Release number of selected component (if applicable):
0.9.1.90

Comment 1 Jirka Klimes 2011-10-03 08:40:59 UTC
Thanks.
Fixed upstream as dce6a071a84b1907b8ae4aea0bd5322b8176d607 (master).

Comment 2 Fedora Update System 2011-12-02 13:06:53 UTC
NetworkManager-0.9.2-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/NetworkManager-0.9.2-1.fc16

Comment 3 Fedora Update System 2011-12-04 02:22:58 UTC
Package NetworkManager-0.9.2-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing NetworkManager-0.9.2-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16664/NetworkManager-0.9.2-1.fc16
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-12-06 01:00:33 UTC
NetworkManager-0.9.2-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.