AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080404122826.5731a878@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<sripal.surendiran@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	47F67D72.3060702@onstor.com
X-Sylpheed-End-Special-Headers: 1
Date: Fri, 4 Apr 2008 12:28:34 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: Sripal <sripal.surendiran@onstor.com>
Subject: Re: Submittal 16 Beta Release Candidate availble
Message-ID: <20080404122834.3cfc745c@ripper.onstor.net>
In-Reply-To: <47F67D72.3060702@onstor.com>
References: <BB375AF679D4A34E9CA8DFA650E2B04E12BFD4@onstor-exch02.onstor.net>
	<47F64800.4050200@onstor.com>
	<BB375AF679D4A34E9CA8DFA650E2B04E042F013E@onstor-exch02.onstor.net>
	<47F65C9A.9040307@onstor.com>
	<20080404101739.29f8b847@ripper.onstor.net>
	<47F66F46.9030405@onstor.com>
	<20080404112406.326def31@ripper.onstor.net>
	<47F67D72.3060702@onstor.com>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Sat, 05 Apr 2008 00:41:46 +0530 Sripal
<sripal.surendiran@onstor.com> wrote:

> 
> 
> Andrew Sharp wrote:
> > On Fri, 04 Apr 2008 23:41:18 +0530 Sripal
> > <sripal.surendiran@onstor.com> wrote:
> >
> >   
> >> Andy,
> >>
> >> My comment is below.
> >>
> >> Andrew Sharp wrote:
> >>     
> >>> Sripal,
> >>>
> >>> This is the contents of Jobi's filer after he did a config reset
> >>> and doing an upgrade to sub16:
> >>>
> >>> # cat /etc/network/interfaces 
> >>> # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
> >>> # /usr/share/doc/ifupdown/examples for more information.
> >>>
> >>> # The loopback network interface
> >>> auto lo
> >>> iface lo inet loopback
> >>>
> >>> # The primary network interface
> >>> auto eth0
> >>> iface eth0 inet static
> >>> #   address not_configured
> >>> #   netmask not_configured
> >>>
> >>> # The secondary network interface
> >>> auto eth1
> >>> iface eth1 inet static
> >>>   address address
> >>>   netmask netmask
> >>> Sripal> Does he have NFS root? Otherwise his system won't have ip
> >>> Sripal> configured.
> >>>       
> >
> > No he was not NFS root, and neither was Sandrine who had the same
> > 'address address'
> > 'netmask netmask'
> > in her interfaces file and 'localhost' in her /etc/hostname file.
> >
> > **
> >
> >   
> >>> I saw the same breakage for eth1 on Sandrine's filer, except eth0
> >>> was properly configured on hers.
> >>>
> >>> This is the contents of /etc/hostname on Jobi's filer:
> >>>
> >>> *# cat /etc/hostname
> >>> localhostlocalhost:~# *
> >>> Sripal> Since this was the content at the time of upgrade before
> >>> Sripal> sub16, then no FTI code has been involved. I am not sure
> >>> Sripal> what is the content of Sandrine's /etc/hostname file
> >>> Sripal> before she upgraded.
> >>>       
> This seems to be a weird problem.
> 
> **[sripal@linux-compile ssc-initial-config]#cat t.c
> #include <stdio.h>
> 
> main()
> {
>     FILE *fp;
>     fp = fopen("TTT", "w");
> 
>     fprintf(fp, "localhost");
> 
>     fclose(fp);
> }
> [sripal@linux-compile
> ssc-initial-config]#/usr/bin/mipsel-linux-gnu-gcc-4.1 t.c
> [sripal@linux-compile ssc-initial-config]#scp a.out root@10.2.10.7:/
> root@10.2.10.7's password:
> a.out
> 100% 9296     9.1KB/s   00:00 localhost:/# ./a.out localhost:/# cat
> TTT localhostlocalhost:/#

Heh, yeah, I just realized the second 'localhost' is part of the shell
prompt.


> This is what we do it in system config reset
> 		fp = fopen(HOSTNAME_FILE, "w");
> 
>                 if (fp != NULL) {
>                     fprintf(fp, "localhost");

Yeah, I'm probably the one that made this mistake.  Who knows.  But
it's the same code for BSD and Linux, so we would have the same problem
on BSD.  Feel free to include that fix in your changelist that
addresses these issues ~:^)

>                     fclose(fp);
>                 } else {
>                     sprintf(log_buf, "blanking %s failed : %s",
> HOSTNAME_FILE, strerror(errno));
>                     do_log(LOG_INFO, log_buf);
>                 }
> Should we add /n after localhost. This has not created problem in BSD.
> **
> 
> >
> > No, this was the content of /etc/hostname after upgrading to sub16,
> > and then after doing a _system config reset_, and then rebooting,
> > and expecting the FTI screen but not getting it.
> >
> > Before he upgraded, the /etc/hostname had the proper name of the
> > filer in it.
> >
> >   
> >>> So localhost is in there twice with no newline at the end.
> >>>
> >>> So I suspect there is at least one if not multiple problems here.
> >>> The misconfigured interfaces file is obviously one of the
> >>> problems.  I was going to blame it on Sandrine, but now that I see
> >>> it in Jobi's filer too I'm thinking there is a bug in the FTI code
> >>> somewhere causing it.
> >>>
> >>>
> >>> On Fri, 04 Apr 2008 22:21:38 +0530 Sripal
> >>> <sripal.surendiran@onstor.com> wrote:
> >>>
> >>>   
> >>>       
> >>>>     
> >>>>         
