[Server-devel] automatic olpc-update from XS

2009-02-18 Thread Daniel Drake
Hi,

Has anyone looked into making the XS serve automatic OS updates to XO
over the network?
I know about http://wiki.laptop.org/go/XS-rsync but it does not really
explain how the XOs perform the update...

Am I right in guessing that currently some voodoo must be run on the
XO to get olpc-update looking at the XS, and then it must be triggered
manually on each XO?
If so, has anyone investigated the work needed to publish an update
which the XOs will automatically update using the olpc-update --auto
cronjob that is already in place?

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


[Server-devel] Mass olpc-update via XS?

2009-02-18 Thread Michael Stone
Dear XS folks,

Daniel Drake, currently in Paraguay, wants to try implementing the procedure
described in 

   http://wiki.laptop.org/go/User:Mstone/Commentaries/Mass_olpc-update

via XSen (using DNS to redirect the XOs' theft-deterrence protocol requests to
the local XS.) However, after briefly scanning the wiki, I noticed that we have

   http://wiki.laptop.org/go/XS_Blueprints:Lease_and_update_server
   http://wiki.laptop.org/go/XS-activation
   http://wiki.laptop.org/go/XS-rsync

but no sign of an XS-ified theft deterrence protocol server. Now, to the best
of my (limited) knowledge, there is one usefully complete implementation of the
protocol, 

   http://dev.laptop.org/git?p=users/cscott/act-server;a=summary

which was deployed in production at 

   antitheft.laptop.organd
   activation.laptop.org

and used to update several thousand G1G1'07 machines.

(The installation of the code on those machines is, as usual, thoroughly
documented internally at Machine:antitheft and Machine:activation pages, for
those with access; some small bits of censorship /are/ needed before
publication.)

In conclusion, do you currently know any problems that would prevent merging
whatever packages he and I create for his XSen (probably based on Scott's code)
into the main XS tree, assuming that we provide suitable documentation
alongside them?

Anyone got any better ideas about how to accomplish our goal?

Thanks,

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


Re: [Server-devel] IRC channel/using ejabberdctl

2009-02-18 Thread Yifan
Hi Martin,

I went into the log files and realized that the domain had a schoolserver
tacked in front of my domain name, which solved the previous problem;
apparently I was trying to create an account for a server that didn't really
exist. The specific domain name I was trying to use was
olpcnetworkserver.cfs.mass.org, but I think it's now
schoolserver.olpcnetworkserver.cfs.mass.org.

I'm now running into another problem in this step. Now I'm using

ejabberdctl register admin schoolserver.olpcnetworkserver.cfs.mass.org admin

and getting the error

RPC failed on the node ejabb...@e1534: nodedown

I also attached the log file. (If you want I can also paste it; it's a
rather large file) Do you have any idea what this might be caused by? Thank
you so much for your help!

Yifan




On Mon, Feb 16, 2009 at 11:13 PM, Martin Langhoff martin.langh...@gmail.com
 wrote:

 Hi Yifan,

 This is the right place to ask for help. Tell us a bit more about the
 steps you are following after the initial installation is complete.

 some more specific questions

  - what domain did you pass to domain_config ?
  - can you send the ejabberd log? it is in /var/log/ejabberd/

 cheers,


 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- School Server Architect
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff



ejabberd.log
Description: Binary data
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] IRC channel/using ejabberdctl

2009-02-18 Thread Gerald Ardito
I am having a similar problem.
There seems to be a discrepancy between the host/domain names between the
server and ejabberd.
I would really appreciate clarification of the conventions for this.

Thanks.
Gerald

2009/2/18 Yifan yifan@students.olin.edu

 Hi Martin,

 I went into the log files and realized that the domain had a schoolserver
 tacked in front of my domain name, which solved the previous problem;
 apparently I was trying to create an account for a server that didn't really
 exist. The specific domain name I was trying to use was
 olpcnetworkserver.cfs.mass.org, but I think it's now
 schoolserver.olpcnetworkserver.cfs.mass.org.

 I'm now running into another problem in this step. Now I'm using

 ejabberdctl register admin schoolserver.olpcnetworkserver.cfs.mass.orgadmin

 and getting the error

 RPC failed on the node ejabb...@e1534: nodedown

 I also attached the log file. (If you want I can also paste it; it's a
 rather large file) Do you have any idea what this might be caused by? Thank
 you so much for your help!

 Yifan





 On Mon, Feb 16, 2009 at 11:13 PM, Martin Langhoff 
 martin.langh...@gmail.com wrote:

 Hi Yifan,

 This is the right place to ask for help. Tell us a bit more about the
 steps you are following after the initial installation is complete.

 some more specific questions

  - what domain did you pass to domain_config ?
  - can you send the ejabberd log? it is in /var/log/ejabberd/

 cheers,


 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- 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


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


Re: [Server-devel] mkusbinstall enhancements

2009-02-18 Thread Martin Langhoff
On Thu, Feb 19, 2009 at 6:50 AM, Jerry Vonau jvo...@shaw.ca wrote:
 I need to append method=hd:LABEL=XSRepo:/iso to the same line,

 Can you change this line in the patch from:
 sed -i -e 's/cdrom:/hd:LABEL=XSRepo:/g'
 $USBMNT/$SYSLINUXPATH/isolinux.cfg

I folded the second part of your patch (which I had dropped yesterday,
sorry!) with this change in the sed line.

Actually, I changed the sed line a bit to only add method if it's not
there. If it's there, we try to replace it if it was method=cdrom. See

http://dev.laptop.org/git?p=projects/xs-livecd;a=commitdiff;h=aae67834bd1f450cf365349dca02968483842535

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- 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] mkusbinstall enhancements

2009-02-18 Thread Martin Langhoff
On Thu, Feb 19, 2009 at 2:36 PM, Jerry je...@vonau.ca wrote:
 User impression doesn't count? ;-) Kind of throws fully automated
 installs out the window. To support installs to CF or from the network,
 anaconda needs to be patched for F9, is installing to a XO on hold? or
 are you looking to move to F10?

It counts, and of course it matters. And very happy that you're
helping me with it. Are the anaconda RPMs with the added sleep good
for me to grab?

I'm looking to skip F10, hoping that F11 will be more worthwhile --
almost none of our probs are solved in F10, so it's pointless rebase
churn...

 That would depend on if there is any movement by fedora on official
 supporting of installs from usb... ;-)

 I wonder how many other people are using mkusbinstall outside of us?

Ahh...

 On a side note unless you use the other features of mkslim, the need
 for mkslim might go away for F11.

Yes, seen noise about that in the anaconda list. Feather up you cap -
after much pushback they realised what a big fat waste some stuff in
the images dir is.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- 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] mkusbinstall enhancements

2009-02-18 Thread Jerry Vonau
On Thu, 2009-02-19 at 15:06 +1300, Martin Langhoff wrote:
 On Thu, Feb 19, 2009 at 2:36 PM, Jerry je...@vonau.ca wrote:
  User impression doesn't count? ;-) Kind of throws fully automated
  installs out the window. To support installs to CF or from the network,
  anaconda needs to be patched for F9, is installing to a XO on hold? or
  are you looking to move to F10?
 
 It counts, and of course it matters. And very happy that you're
 helping me with it. Are the anaconda RPMs with the added sleep good
 for me to grab?
 

Should be, I tested what was there a few time on a XO. First time ran
though to completion, but I've yet to write the part to create the
olpc.fth file in %post in the ks.cfg. The rest blew up with some weird
kernel error, think my CF card might be the issue or there is some
general issue with the kernel driver for mmc, but the loader part worked
fine. Single test on desktop ran as expected. You would need to add the
rpm to a repo, and to be safe, I'd install it on the build host also. 


 I'm looking to skip F10, hoping that F11 will be more worthwhile --
 almost none of our probs are solved in F10, so it's pointless rebase
 churn...
 
  That would depend on if there is any movement by fedora on official
  supporting of installs from usb... ;-)
 
  I wonder how many other people are using mkusbinstall outside of us?
 
 Ahh...
 
  On a side note unless you use the other features of mkslim, the need
  for mkslim might go away for F11.
 
 Yes, seen noise about that in the anaconda list. Feather up you cap -
 after much pushback they realised what a big fat waste some stuff in
 the images dir is.
 

Or they just hit the size limit on a DVD, and now it matters ;-)

Jerry


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


Re: [Server-devel] Mass olpc-update via XS?

2009-02-18 Thread Chris Ball
Hi Martin,

Interesting. I didn't know cjb had forked my code. Should I fold
his code and ship it with the XS? Chris, can you tell me more about
the patches?

Sorry about that, I should have written this up.

The change here is the addition of an xs-upserv script, and it's
probably not useful for the XS -- you already have an xs-rsync setup
that does the same thing.  We wrote it while in UY for their non-XS
school server, as a quick script to turn any machine into an update
server: it takes a directory tree with a build per directory, creates
an rsyncd.conf that exposes each build, and launches rsyncd with the
new config to serve the builds.

At the time, we needed something to prove that UY's modified 767 build
could be upgraded to by their modified 649 build using their local
school servers, without the assumptions made by the xs-rsync setup.

Thanks,

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


Re: [Server-devel] Mass olpc-update via XS?

2009-02-18 Thread Martin Langhoff
On Thu, Feb 19, 2009 at 3:37 PM, Chris Ball c...@laptop.org wrote:
 Sorry about that, I should have written this up.

Thanks for telling more :-)

 The change here is the addition of an xs-upserv script, and it's
 probably not useful for the XS -- you already have an xs-rsync setup
 that does the same thing.  We wrote it while in UY for their non-XS
 school server, as a quick script to turn any machine into an update
 server: it takes a directory tree with a build per directory, creates
 an rsyncd.conf that exposes each build, and launches rsyncd with the
 new config to serve the builds.

hmm hmmm. Maybe we can include it anyway, and set a canonical dir
where it scans for trees. In fact, I think it already unpacks anything
it finds in /library/xs-rsync/xobuids-packed/ . The rpm can probably
install and Just Work with alien, I made sure all its deps are in
Debian.

Was there a strong reason to avoid xinetd? Strong reason to avoid fakechroot?

(Assuming you removed them for ease-of-coding, I'd keep them for
unified maintenance...)

 At the time, we needed something to prove that UY's modified 767 build
 could be upgraded to by their modified 649 build using their local
 school servers, without the assumptions made by the xs-rsync setup.

Assumptions being the insert-usb-disk triggers? Or something else?

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- 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