Opened 7 years ago

Closed 7 years ago

#6371 closed enhancement (fixed)

Package the upgrade server for the school-server.

Reported by: mstone Owned by: martin.langhoff
Priority: normal Milestone: xs-0.4
Component: school server Version:
Keywords: fedoradev Cc: wad, cscott, mstone, dgilmore
Blocked By: #7796 Blocking:
Deployments affected: Action Needed: never set
Verified: no

Attachments (1)

0001-Add-support-for-server-to-pick-an-update-server.patch (2.1 KB) - added by martin.langhoff 7 years ago.
olpc-update patch

Download all attachments as: .zip

Change History (11)

comment:1 Changed 7 years ago by gregorio

  • Milestone Never Assigned deleted

Milestone Never Assigned deleted

comment:2 Changed 7 years ago by martin.langhoff

  • Action Needed set to never set
  • Milestone set to xs-0.4

comment:3 Changed 7 years ago by martin.langhoff

  • Keywords fedoradev added

See discussion on devel@

comment:4 Changed 7 years ago by martin.langhoff

  • Type changed from defect to enhancement

I have been working on this today, and an upgrade server will be in xs-0.4.

The upgrade server is insteresting for updates.laptop.org, as it can pull builds on demand. The XS scenario is upstream-bandwidth constrained and more "directed" (by the NOC team).

I am implementing the upgrade server (and general rsync content server) as a plain rsync daemon running under fakeroot with a single (larger) state file. I've copied the minimal bits of unpacking logic needed from the upgrade server to a couple of auxiliary scripts.

Also looking at measuring the RAM costs of each rsync transaction and setting max connections in rsyncd.conf accordingly. F9 has rsync 3 which should minimise RAM usage, but most of the RAM savings depend on using a smarter protocol with the client. Once we have F9 vs F9 we can raise the limits.

comment:5 Changed 7 years ago by martin.langhoff

  • Owner changed from mstone to martin.langhoff

Correction - not rsync daemon but rsync via xinetd.

comment:6 Changed 7 years ago by martin.langhoff

  • Blocked By 7796 added

(In #7796) After a bit of research on this, the following tools seem to fit the bill

  • ivman - a genering DBus event handler. Upside: it seems to be moderately popular, generic hooks to trigger scripts on dbus events. Downsides: unmaintained, bad config syntax.
  • hal-autofs - python listener. simple, we can probable even make it work and adapt to our evil means.

comment:7 Changed 7 years ago by martin.langhoff

Done. The tagged v0.3 is packaged and in the repo. Updated my XO nicely.

http://wiki.laptop.org/go/XS-rsync

Also attaching here the patch to olpc-update I sent to Scott.

Changed 7 years ago by martin.langhoff

olpc-update patch

comment:8 Changed 7 years ago by cscott

Patch committed and included in olpc-update 2.14, which ought to be in the next joyride.

comment:9 Changed 7 years ago by martin.langhoff

  • Status changed from new to assigned

Mostly done. David Van Assche's questions point to some minor errors in doco...

comment:10 Changed 7 years ago by martin.langhoff

  • Resolution set to fixed
  • Status changed from assigned to closed

Updated README too.

Note: See TracTickets for help on using tickets.