[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2017-10-27 Thread Bug Watch Updater
Launchpad has imported 23 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=630146.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2010-09-03T19:51:23+00:00 Andrew wrote:

Description of problem:
NetworkManager apparently adds an entry in /etc/hosts when it
gets an IP address.   The problem is that it doesn't remove it
if the network connection is no longer present.  This results in
an /etc/hosts that looks like :

x.x.x.xmachinename   # Added by NetworkManager
127.0.0.1  localhost.localdomain localhost
::1machinename localhost6.localdomain6 localhost6

so that any lookups of machinename go to a non-accessible
address.  The severity of the problem is that virtually no
gnome applications will function (in particular GDM, but also
gnome-panel, etc.) without being able to access machinename
(which should be 127.0.0.1), thus crippling the machine
until /etc/hosts is fixed or the network connection resumes.

Version-Release number of selected component (if applicable):
NetworkManager-0.8.1-4.git20100817.fc13.i686

How reproducible:
Always

Steps to Reproduce:
1. Boot system
2. Plug in network wire and get IP address (/etc/hosts should be modified)
3. Unplug network wire (/etc/hosts stays the same)
4. Restart X and notice GDM no longer works
  
Actual results:
Lookups to machinename go to unreaching IP address instead of 127.0.0.1,
GDM fails to function

Expected results:
/etc/hosts should be changed to put machinename back to 127.0.0.1 if no network 
is available

Additional info:
I ended up chattr +i /etc/hosts to keep it from being modified at all.
Why should the local machinename ever point to anything other than 127.0.0.1?

Reply at: https://bugs.launchpad.net/ubuntu/+source/network-
manager/+bug/632896/comments/0


On 2010-09-08T20:49:30+00:00 Andrew wrote:

Tested with new NetworkManager-0.8.1-6.git20100831.fc13.i686 and the
same problem.

If the laptop boots and you login, NetworkManager gets an IP address for the 
wireless adapter, changes /etc/hosts.  If you then reboot, the
change to /etc/hosts remains and GDM will not start since there is no
route to 'machinename' which in /etc/hosts points to the Wifi address that is 
not up yet.

Reply at: https://bugs.launchpad.net/ubuntu/+source/network-
manager/+bug/632896/comments/2


On 2010-09-14T00:00:17+00:00 Russ wrote:

WTF!!!

Why in the @#$% does NetworkManager add an entry to /etc/hosts anyway?

This is absolutely stupid and ridiculous behaviour.

I absolutely DO NOT want or need ANYTHING in the hosts file. We run
local DNS, and I just wasted an HOUR of my time screwing around
reconfiguring my HTTPD proxy ON ANOTHER MACHINE simply because
NetworkManager changed my hosts file on THIS laptop a month ago and
added an incorrect entry to /etc/hosts. So I thought it was a proxy
problem ON ANOTHER MACHINE. . .

Since /etc/hosts was incorrect the laptop was unreachable to itself.

At this point I'm ready to just remove NetworkManager from this laptop
before something else gets seriously screwed up ON ANOTHER MACHINE. I'd
rather have to configure the wireless by hand than have this type of
behaviour.

There is absolutely no need for ANYTHING in /etc/hosts except localhost.

Reply at: https://bugs.launchpad.net/ubuntu/+source/network-
manager/+bug/632896/comments/3


On 2010-09-15T23:32:25+00:00 Russ wrote:

A quick Google search on this topic reveals this same behaviour in every
distro. So the problem is definitely upstream.

It looks like you can permanently set the hostname in the NetworkManager
conf file. Then it won't change. But how does that help people who rely
solely on DHCP for that? (Here come the gasps from all the sysadmins. .
.but it's job security;)

In our case, for example on my laptop, there are two DNS entries for it
on the DHCP server. They are tied to the MAC addresses for eth0 and
wlan0, and set the hostname according to the interface. So the hostname
is either [HOSTNAME] or [HOSTNAME]-wlan0. We need it to be that way. But
then NetworkManager causes problems with /etc/hosts.

For now I suppose we must use the hack in comment #1.

After reading all the bug reports it is evident that the described
behaviour is utterly detested by just about everybody. So why is it
there?

Reply at: https://bugs.launchpad.net/ubuntu/+source/network-
manager/+bug/632896/comments/6


On 2010-10-01T17:58:49+00:00 Jaroslaw wrote:

I can confirm this issue. It's really annoying. It's impossible 

[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2011-06-06 Thread Martin Pitt
This has been in maverick-proposed for 100 days, and is verification-
failed. I removed the proposed package now, as this doesn't seem to make
much progress. Also, Maverick has lived with this bug for over a year,
so there's not much point fixing it now IMHO.

** Changed in: network-manager (Ubuntu Maverick)
   Status: In Progress = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/632896

Title:
  Leaves unreachable entries in /etc/hosts when stopping network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2011-03-15 Thread Mathieu Trudel-Lapierre
Verification probably succeeds for this fix but the package in proposed
as a whole causes a regression as identified in bug 729091. Setting to
verification-failed, I'll possibly package just this patch alone and
work on the other fix separately.

** Tags added: verification-failed
** Tags removed: verification-needed

** Changed in: network-manager (Ubuntu Maverick)
   Status: Fix Committed = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/632896

Title:
  Leaves unreachable entries in /etc/hosts when stopping network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2011-02-25 Thread Martin Pitt
Accepted network-manager into maverick-proposed, the package will build
now and be available in a few hours. Please test and give feedback here.
See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you in advance!

** Changed in: network-manager (Ubuntu Maverick)
   Status: New = Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/632896

Title:
  Leaves unreachable entries in /etc/hosts when stopping network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2011-02-25 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/maverick-proposed/network-manager

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/632896

Title:
  Leaves unreachable entries in /etc/hosts when stopping network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2011-02-23 Thread Martin Pitt
Please go ahead and upload. Thanks!

** Also affects: network-manager (Ubuntu Maverick)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/632896

Title:
  Leaves unreachable entries in /etc/hosts when stopping network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2011-02-21 Thread Mathieu Trudel-Lapierre
** Changed in: network-manager (Ubuntu)
 Assignee: Mathieu Trudel-Lapierre (mathieu-tl) = (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/632896

Title:
  Leaves unreachable entries in /etc/hosts when stopping network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2011-02-20 Thread Anders Kaseorg
Hi Mathieu, thanks for working on this.  I finally got around to testing
your package on a maverick system; it works for me and corrects this
problem.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/632896

Title:
  Leaves unreachable entries in /etc/hosts when stopping network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2011-02-14 Thread Launchpad Bug Tracker
** Branch linked: lp:~mathieu-tl/network-manager/sru-maverick

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/632896

Title:
  Leaves unreachable entries in /etc/hosts when stopping network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2011-02-14 Thread Mathieu Trudel-Lapierre
Please try the following package from my PPA for testing prior to an
upload to -proposed:

https://edge.launchpad.net/~mathieu-tl/+archive/nm

And the package is network-manager
0.8.1+git.20100810t184654.ab580f4-0ubuntu2.1~mtrudel1~preproposed ; it's
the only NetworkManager package in that PPA for Maverick.

Note that this is for testing the patches available; we need to know
whether it works properly or not, you can find out how exactly to test
this from the bug description TEST CASE section.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/632896

Title:
  Leaves unreachable entries in /etc/hosts when stopping network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-10-20 Thread Mathieu Trudel
At this point I think the Ubuntu Sponsors team can be unsubscribed.

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-10-19 Thread Mathieu Trudel
Thanks for the patch Anders, preparing to upload it now...

** Changed in: network-manager (Ubuntu)
   Status: Confirmed = In Progress

** Changed in: network-manager (Ubuntu)
 Assignee: (unassigned) = Mathieu Trudel (mathieu-tl)

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-10-19 Thread Launchpad Bug Tracker
This bug was fixed in the package network-manager -
0.8.1+git.20100810t184654.ab580f4-0ubuntu3

---
network-manager (0.8.1+git.20100810t184654.ab580f4-0ubuntu3) natty; urgency=low

  [ Anders Kaseorg ]
  * Remove stale entries for the system hostname from /etc/hosts when
bringing down interfaces.  (LP: #632896)
- Add debian/patches/lp632896_cleanup_etc_hosts.patch

  [ Mathieu Trudel-Lapierre ]
  * Don't overwrite aliases in /etc/hosts (LP: #659872)
- add debian/patches/lp659872_dont_overwite_hosts_aliases_ee9ce60.patch
- update debian/patches/series
 -- Mathieu Trudel-Lapierre mathieu...@ubuntu.com   Tue, 19 Oct 2010 16:04:00 
-0400

** Changed in: network-manager (Ubuntu)
   Status: In Progress = Fix Released

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-10-19 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/network-manager

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-10-14 Thread Anders Kaseorg
** Tags added: regression-release
** Tags removed: regression-potential

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-10-07 Thread Anders Kaseorg
Here’s a tested debdiff with the patch from upstream.  I’m also building
a patched package in my PPA https://launchpad.net/~anders-
kaseorg/+archive/ppa.

** Patch added: 
network-manager_0.8.1+git.20100810t184654.ab580f4-0ubuntu2_lp632896.debdiff
   
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/632896/+attachment/1676451/+files/network-manager_0.8.1%2Bgit.20100810t184654.ab580f4-0ubuntu2_lp632896.debdiff

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-10-07 Thread Brian Murray
** Tags added: patch

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-10-07 Thread Anders Kaseorg
** Tags added: patch-accepted-upstream

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-10-07 Thread Bug Watch Updater
** Changed in: network-manager
   Status: New = Fix Released

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-09-23 Thread Mathieu Trudel
Confirming since there is an upstream bug about this.

** Changed in: network-manager (Ubuntu)
   Status: New = Confirmed

** Changed in: network-manager (Ubuntu)
   Importance: Undecided = Medium

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-09-19 Thread Bug Watch Updater
** Changed in: network-manager
   Status: Incomplete = New

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-09-17 Thread Bug Watch Updater
** Changed in: network-manager
   Status: New = Incomplete

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-09-14 Thread Mathieu Trudel
Hi,

Could you please specific exactly which extra entries are added, and
aren't removed?

Thanks!

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-09-14 Thread Anders Kaseorg
Certainly.

1. Original copy of /etc/hosts before starting network-manager:


127.0.0.1   localhost
127.0.1.1   balanced-tree

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


2. /etc/hosts after starting network-manager, but before connecting to a
network:


127.0.0.1   balanced-tree   localhost.localdomain   localhost
::1 balanced-tree   localhost6.localdomain6 localhost6
127.0.1.1   balanced-tree

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


3. /etc/hosts after connecting to a network:


18.111.118.108  balanced-tree   # Added by NetworkManager
127.0.0.1   localhost.localdomain   localhost
::1 balanced-tree   localhost6.localdomain6 localhost6
127.0.1.1   balanced-tree

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


4. /etc/hosts after disconnecting from the network:
(same as #3, where “18.111.118.108 balanced-tree” is now unreachable)

and...@balanced-tree:~$ ping `hostname`
connect: Network is unreachable

5. /etc/hosts after stopping network-manager:
(same as #3 and #4)

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-09-09 Thread Bug Watch Updater
** Changed in: network-manager
   Importance: Unknown = Medium

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-09-08 Thread Bug Watch Updater
** Changed in: network-manager
   Status: Unknown = New

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

2010-09-07 Thread Anders Kaseorg
** Bug watch added: GNOME Bug Tracker #629020
   https://bugzilla.gnome.org/show_bug.cgi?id=629020

** Also affects: network-manager via
   https://bugzilla.gnome.org/show_bug.cgi?id=629020
   Importance: Unknown
   Status: Unknown

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs