[OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly volume?

2013-12-15 Thread Andrew Deason
On Fri, 13 Dec 2013 16:19:04 +0100 (CET) Harald Barth wrote: > I think there should be a "is this still $#%^&* a loopback addr" test > just before return(addr). > > Does that sound correct? This is exactly what I proposed in the 2nd bullet point of

Re: [OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly volume?

2013-12-13 Thread Harald Barth
> All of the places in the code tree that filter eventually test each > address with rx_IsLoopbackAddr() which is defined in rx.h. When I look at vos.c, then I find GetServer which uses rx_IsLoopbackAddr. Now let's assume we feed that something that resolves to loopback. That will be detected at

Re: [OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly volume?

2013-12-13 Thread Jeffrey Altman
On 12/13/2013 9:16 AM, Harald Barth wrote: > Btw, this is > # rxdebug localhost -v > Trying 127.0.0.1 (port 7000): > AFS version: OpenAFS 1.6.1-3+deb7u1-debian built 2013-07-25 > > And I have not found where this filtering of 127/something actually > takes place. Pointers welcome. All of the

Re: [OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly volume?

2013-12-13 Thread Harald Barth
My test: # cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 bananshake.stacken.kth.se bananshake # bos restart bananshake -local -all # cat FileLog ... Fri Dec 13 14:38:18 2013 Getting FileServer address... Fri Dec 13 14:38:18 2013 FileServer bananshake.stacken.kth.se has address

Re: [OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly?

2013-12-11 Thread Jeffrey Hutzelman
On Tue, 2013-12-10 at 10:15 -0800, Russ Allbery wrote: > Coy Hile writes: > > On 12/10/13, 4:10 AM, "Harald Barth" wrote: > > $ more hosts > 127.0.0.1localhost > 127.0.1.1peter.cae.uwm.edu peter > > >>> I know various Linux distributions do > >>> this by def

Re: [OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly?

2013-12-10 Thread Gary Buhrmaster
On Tue, Dec 10, 2013 at 12:59 PM, Coy Hile wrote: > Somewhat off-topic, but am I the only one who thinks that > Linux distributions doing this is utterly brain-dead? I suppose the only good news is that in IPv6 only ::1/128 is loopback. So such "interesting" choices will hopefully not be pr

Re: [OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly?

2013-12-10 Thread Russ Allbery
Coy Hile writes: > On 12/10/13, 4:10 AM, "Harald Barth" wrote: $ more hosts 127.0.0.1 localhost 127.0.1.1 peter.cae.uwm.edu peter >>> I know various Linux distributions do >>> this by default, ... > Somewhat off-topic, but am I the only one who thinks that > Linux distri

[OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly?

2013-12-10 Thread Andrew Deason
On Tue, 10 Dec 2013 10:10:27 +0100 (CET) Harald Barth wrote: > If this should be catched by the "avoid 127/16 code path" then there > must be a bug somewhere. My first guess would be host vs network byte > order before even looking at the code. A server advertising 127/16 should be prevented by

Re: [OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly?

2013-12-10 Thread Coy Hile
On 12/10/13, 4:10 AM, "Harald Barth" wrote: > >>> $ more hosts >>> 127.0.0.1 localhost >>> 127.0.1.1 peter.cae.uwm.edu peter > >> I know various Linux distributions do >> this by default, ... Somewhat off-topic, but am I the only one who thinks that Linux distributions doing this is

Re: [OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly?

2013-12-10 Thread Harald Barth
>> $ more hosts >> 127.0.0.1localhost >> 127.0.1.1peter.cae.uwm.edu peter > I know various Linux distributions do > this by default, ... So at least the AFS server installed from the .debs for these distros really should cope with that fact. > but that's only because they don't ha

[OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly?

2013-12-09 Thread Andrew Deason
On Mon, 09 Dec 2013 12:50:20 -0600 John Tang Boyland wrote: > The server was a new server we set up because our old Solaris server > couldn't be upgraded to 1.6.5. I wrote a shell script to move > all the volumes over and re-release them, but ... of course > I made a mistake in the script and wh

Re: [OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly volume?

2013-12-09 Thread Jeffrey Altman
On 12/9/2013 1:47 PM, Harald Barth wrote: >>> Not in the listaddrs list but will it go away from the volume location >>> list? >> >> I don't understand this sentence. > > Is the 127.0.1.1 deleted or replaced as a replication site location if > the server registers as 129.89.38.124 when previously

[OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly? eply-to: boyl...@uwm.edu

2013-12-09 Thread John Tang Boyland
Andrew Deason wrote: ] On Mon, 09 Dec 2013 07:37:54 -0600 ] John Tang Boyland wrote: ] ] > $ vos listaddrs ] > peter.cae.uwm.edu ] > solomons.cs.uwm.edu ] > jeremiah.cs.uwm.edu ] ] Could you 'vos listaddrs -noresolve -printuuid' ? $ vos listaddrs -noresolve -printuuid UUID: 008a0a7a-a6f4-127c-

Re: [OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly volume?

2013-12-09 Thread Harald Barth
>> Not in the listaddrs list but will it go away from the volume location >> list? > > I don't understand this sentence. Is the 127.0.1.1 deleted or replaced as a replication site location if the server registers as 129.89.38.124 when previously known as 127.0.1.1. > No, OpenAFS 1.6.5 detects 12

[OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly volume?

2013-12-09 Thread Andrew Deason
On Mon, 09 Dec 2013 19:02:19 +0100 (CET) Harald Barth wrote: > > However, you shouldn't need to do this, and I'm a little confused as to > > how you got the vldb in this state. If you know what fileserver it is > > that registered the 127.0.1.1 address, and you NetRestrict it, when you > > bring

Re: [OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly volume?

2013-12-09 Thread Harald Barth
> The reason it doesn't work is because 'vos' has logic to convert any > localhost-y address to the address the local hostname resolves to, to > try and avoid people from adding localhost addresses into the vldb. > > However, you shouldn't need to do this, and I'm a little confused as to > how yo

[OpenAFS] Re: How to remove a bogus (127.0.1.1) server entry for readonly volume?

2013-12-09 Thread Andrew Deason
On Mon, 09 Dec 2013 07:37:54 -0600 John Tang Boyland wrote: > $ vos listaddrs > peter.cae.uwm.edu > solomons.cs.uwm.edu > jeremiah.cs.uwm.edu Could you 'vos listaddrs -noresolve -printuuid' ? > I'm really surprised that "vos remsite" doesn't work. > What am I doing wrong? The reason it doesn't