[Bug 447038] New: yast2 lan trashes hostname settings in /etc/hosts and / etc/HOSTNAME
https://bugzilla.novell.com/show_bug.cgi?id=447038 Summary: yast2 lan trashes hostname settings in /etc/hosts and /etc/HOSTNAME Product: openSUSE 11.1 Version: Beta 5 Platform: i686 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gfarrell@netspeed.com.au QAContact: jsrain@novell.com Found By: Community User Started YaST-> Network Device-> Network Settings (using NetworkManager method). Saw hostname and domain name greyed out (ie, couldn't be edited), so exited - but pressed 'OK' in error. The hostname settings in these two files then changed to: /etc/hosts: '127.0.0.2 -f -f' /etc/HOSTNAME: '-f' Since the hostname and domain name were greyed out, the default behaviour should have been to preserve what was set there, even if 'OK' was selected. Alternatively, if setting is for NetworkManager to control networking, and not YaST, then the default behaviour, even if 'OK' is selected, should be to do nothing. That is, if NetworkManager is in control, ignore YaST unless 'ifup' method is selected. The 'hostname' command reported the correct hostname, as set before entering YaST: # hostname MyHostname -- 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=447038 Michal Zugec <mzugec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mzugec@novell.com AssignedTo|bnc-team-screening@forge.provo.novell.com |kmachalkova@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=447038 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Priority|P5 - None |P2 - High -- 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=447038 User kmachalkova@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=447038#c1 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |gfarrell@netspeed.com.au --- Comment #1 from Katarina Machalkova <kmachalkova@novell.com> 2008-12-01 08:37:15 MST ---
Started YaST-> Network Device-> Network Settings (using NetworkManager method). Saw hostname and domain name greyed out (ie, couldn't be edited), so exited - but pressed 'OK' in error. The hostname settings in these two files then changed to:
/etc/hosts: '127.0.0.2 -f -f' /etc/HOSTNAME: '-f'
Is this still happening with some of the recent betas/RCs? As I failed to reproduce (have NetworkManager, went to YaST's Network Settings, switched to Hostname/DNS tab, pressed OK), /etc/[hosts | HOSTNAME] remained unchanged in my case. If so, please attach y2log ...
Alternatively, if setting is for NetworkManager to control networking, and not YaST, then the default behaviour, even if 'OK' is selected, should be to do nothing. That is, if NetworkManager is in control, ignore YaST unless 'ifup' method is selected.
Yes, that would be a correct solution. But due to some other bugs (namely bug #444967), those settings that are not accesible via NetworkManager GUI must be written by YaST :( -- 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=447038 User gfarrell@netspeed.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=447038#c2 Geoff Farrell <gfarrell@netspeed.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|gfarrell@netspeed.com.au | --- Comment #2 from Geoff Farrell <gfarrell@netspeed.com.au> 2008-12-01 22:39:57 MST --- I've tried it in 11.1-RC1-KDE4-LiveCD-x86_64, 11.1-RC1-KDE4-LiveCD-i686 and 11.1-Beta5-KDE4-LiveCD-i686 (on which the bug was filed), and couldn't reproduce the error. Seems it might have been a one-off occurrence. -- 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=447038 User gfarrell@netspeed.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=447038#c3 --- Comment #3 from Geoff Farrell <gfarrell@netspeed.com.au> 2008-12-01 22:41:46 MST --- The above are from installations to hard disk, not run from the LiveCD. -- 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=447038 User kmachalkova@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=447038#c4 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WORKSFORME --- Comment #4 from Katarina Machalkova <kmachalkova@novell.com> 2008-12-02 04:37:01 MST ---
The above are from installations to hard disk, not run from the LiveCD.
Those are identical from y2-network code point of view. There are some small changes in this area I'm going to check-in along with bug #444967 fix. Closing as worksforme then, please reopen if you see the bug again. -- 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