[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
https://bugzilla.novell.com/show_bug.cgi?id=447038
Katarina Machalkova
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
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
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
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
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