[Server-devel] Counting hops / likely costs to a node

2008-05-22 Thread Martin Langhoff
I am looking at the feasibility of measuring (roughly, and cheaply)
the cost to reach the XS. Quite an interesting exercise :-)

Background: I'm fleshing out the rules of when do we attempt to
backup. Even if we see the XS, we want to know the number of hops to
it, so we can delay the backups if the hopcount is high and the backup
is low-pri.

So, "counting hops to the XS" actually seems to translate to -

 - In a simple mesh, there's no hope we'll see one. Drop dead.

 - In an AP, no hops to consider. Signal strength perhaps?

 - In an MPP mesh (such as the school mesh), we care about hops to the
MPP, and iwpriv fwt_lookup will get us the goods. Documentation says
that the hops entry is not used, but I tested it forcing hops with the
bt, and the hops were reported correctly.

Is there any good way to get the address of the MPP without regexes
over the ouput of route? ;-)

As a side note, once I forced things with the bt, latency talking to
that host shot up so the reverse-tunnelled ssh-through-nat I have
setup got utterly unusable. Probably an artifact of the baroque setup
I'm using :-)

cheers,



m
-- 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED] -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Datastore & backup - request for help

2008-05-22 Thread Michail Bletsas
John Watlington <[EMAIL PROTECTED]> wrote on 05/21/2008 10:45:31 PM:


> 
> Michail is choosing a method, which will be used by NM and should be
> used by other laptop tasks as well.  It will almost certainly not be 
> SSID based.
> 
My inclination is to just use a DNS name like "schoolserver" (that will be 
configurable on a per service basis via the Sugar-Control-panel) as the 
baselevel. Optionally we can announce server services via Avahi.
I don't see any reason to tie the transport with the service discovery 
here.

M.
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] XS software compatibility question

2008-05-22 Thread Berkowitz Andrew (Project Connect)
The two servers are ready to go.

I had edited idmgr.conf. I didn't know if there were other files that
needed to be updated.

I tried Fedora 8 & 9.

With Fedora 9, installing the jabber does not work because libexpat is a
different version. I probably could have compiled, but I'd prefer to
stay with RPMs so the server will be easier to upgrade. I did not try
idmgr.

With Fedora 8, I had SCSI drivers issues.

So we're back to Fedora 7. 

I did not install xs-config. I just copied config files from a working
server and modified them for this one. 

The wiki mentions some .diffs to install for the ejabberd. Can I safely
assume those directions are outdated?
 



-Original Message-
From: John Watlington [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 10:36 PM
To: Berkowitz Andrew (Project Connect); Dennis Gilmore
Cc: John Watlington; Martin Langhoff; server-devel
Subject: Re: [Server-devel] XS software compatibility question


On May 21, 2008, at 1:43 PM, Berkowitz Andrew (Project Connect) wrote:

> OK, the jabber is working fine. The problem was that hostname was 
> working correctly but hostname -s & -f were not.
>
> I installed the idmgr with yum install idmgr.  Are there any 
> configuration files I need to edit?

Take a look at /etc/idmgr.conf
It should have the FQDN for the server listed for both variables.

> I did manage to crash the server after updating all packages. I could 
> see which one it was.
>
> This server is running Fedora 7. If I try Fedora 8 or 9 to avoid that 
> incompatible package, should your packages still work?

There lie uncharted waters.
Dennis might be able to help with that answer.

I suspect that the answer is probably yes, given the limited number of
packages you are trying.

>  Thank you
>
> -Original Message-
> From: John Watlington [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 20, 2008 3:21 PM
> To: Berkowitz Andrew (Project Connect)
> Cc: John Watlington; Martin Langhoff; server-devel
> Subject: Re: [Server-devel] XS software compatibility question
>
>
> I don't have enough information to suggest anything, just offer 
> condolences and vague comments  :-)
>
>  From your command line info I assume that you are having problems 
> keeping ejabberd running, not connecting or collaborating after 
> starting it up.
>
> There is a brief time during startup when ejabberd is running
> but the status is returned as stopped.Other than during time,
> I usually don't see ejabberd processes running while service (or
> ejabberdctl) say it isn't running.  This only lasts for a minute or 
> so.
>
> Can you take a look at /var/log/ejabberd/sasl.log ?  Usually when 
> ejabberd has problems starting, the error is logged cryptically 
> there...
>
> wad
>
> On May 20, 2008, at 2:59 PM, Berkowitz Andrew (Project Connect) wrote:
>
>> I am having a problem with the ejabberd.
>>
>> I took the ejabberd.cfg & ejabberdctl.cfg files from a working server

>> and then changed the domain before starting ejabbered.
>>
>> What do you suggest?
>>
>> [EMAIL PROTECTED] ~]# ejabberdctl ejabberd status Node 
>> [EMAIL PROTECTED] is started. Status: started ejabberd is not 
>> running [EMAIL PROTECTED] ~]# ps auxxwww | grep jabber
>> ejabberd  2672  0.0  0.0   1932   340 ?S10:32   0:00
>> /usr/lib/erlang/erts-5.6.1/bin/epmd -daemon
>> ejabberd  3320  0.1  0.8  65200 18116 ?Sl   10:39   0:00
>> /usr/lib/erlang/erts-5.6.1/bin/beam.smp -K true -- -root /usr/lib/ 
>> erlang -progname erl -- -home /var/lib/ejabberd -pa 
>> /usr/lib/ejabberd-2.0.0/ebin -sname ejabberd -s ejabberd -ejabberd 
>> config "/etc/ejabberd/ejabberd.cfg" log_path 
>> "/var/log/ejabberd/ejabberd.log" -sasl sasl_error_logger 
>> {file,"/var/log/ejabberd/sasl.log"} -mnesia dir 
>> "/var/lib/ejabberd/spool" -kernel inetrc "/etc/ejabberd/ 
>> ejabberd.inetrc"
>> -noshell -noinput
>>
>>
>>
>> -Original Message-
>> From: John Watlington [mailto:[EMAIL PROTECTED]
>> Sent: Monday, May 19, 2008 11:39 PM
>> To: Berkowitz Andrew (Project Connect)
>> Cc: John Watlington; Martin Langhoff; server-devel
>> Subject: Re: [Server-devel] XS software compatibility question
>>
>>
>> On May 19, 2008, at 6:18 PM, Martin Langhoff wrote:
>>
>>> On Tue, May 20, 2008 at 9:49 AM, Berkowitz Andrew (Project
>>> Connect) >
>
>>> The installation was perfect with the full Fedora 7 installation.

 Is it possible to install all of OLPC's customizations on top of a 
 stock Fedora installation?
>>>
>>> Yes. Add the XS repositories to your yum sources, and install xs- 
>>> pkgs
>
>>> from there (which should pull all the right dependencies). I suspect

>>> it will muck up a few things, such as user accts created for 
>>> processes. The kernel might also be missing those specific drivers 
>>> you
>>
>>> need.
>>
>> The config file for ejabberd is in xs-config, so you will probably 
>> want to replace the Fedora repos with the OLPC ones, and install 
>> xs-pkgs and xs-config.
>>
>> (I'm thinking evil thoughts abo