Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [Current-server] up2date stupidity

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

Discussion topic

Back to topic list

Re: [Current-server] up2date stupidity


Author hunterm
Full name Hunter Matthews
Date 2003-03-18 09:43:01 PST
Message > The goal is two-pronged, and totally Open Source devoted:
> to provide RHN-like update capabilities (anonymously) in the
> obvious manner, and to incorporate the BitTorrent protocol, a
> secure peer-to-peer file transfer/download protocol that should
> eliminate the "slashdot effect", eg. I can host downloads of
> package FOO from my wimpy home server, and not die if slashdotted.

I wondered if anything came of that.

> We predicated the whole project on the existence of [the quite
> excellent, thank you] Current server. I've been lurking here for
> some months (just catching up with older mail, as you can see...)

What? No patches?

> The approach I've taken is essentially a wrapper program, Up2us,
> that manages the environment that Up2date runs in (the junk up in
> /etc/sysconfig/rhn, and certs, keyring, etc) and invokes Up2date
> per repository. It's conceptually not quite as pretty as integral
> support within Up2date for multiple repositories, but it mostly
> (see below) isolates me from the whims and fashions of RH.

Brave man.

> The systemid file data is checksummed (SHA1) with the server
> secret, so I can't make one up at the client, so the server has
> got to give one to me. I'm obviously avoiding reverse-engineering
> rhn_register's guts just to get a systemid.
> I desparately want to eliminate this, preferably make Up2us do
> it directly, or invoke an external command-line rhn_register
> workalike. Any ideas here before I embark on this journey? Words
> of wisdom? Rotten apples thrown?

Already exists. rhnreg_ks

Even though registration functionality has been (correctly, in my not so
humble opinion) been absorbed into up2date itself, this little gem is
still with us to support sites that use kickstart.
I just confirmed that its still on a latest and greatest pheobe -
naturally, I have no knowledge ahead of time about what RH's plans are,
however I'd be shocked to see this or similar technology go away -
kickstart is just too useful.

rhnreg_ks --username=x --password=x --email=x --nohardware --nopackages

is what I use here, in my kickstart scripts.

> There are a few other relatively minor problems that need to be
> fixed within Up2date: it always terminates with the same exit
> code regardless, so that Up2us can't tell normal termination from
> a CANCEL from a "server error". RH hasn't been too excited with
> my ideas for multi-repository, but they might not get upset with
> a patch for this.

Possibly not.

On the other hand, if you're willing to do some coding in python, look
at the wrapper. A simple command line run of up2date is a fairly simple
object run in wrapper.py. If you wrote your own "up2us" backend, that
was a simple python program that LOOKED like up2date command line, you
could have it do any kind of error handling / reporting that you like.

A patch for proper error codes would probably be easier, and I'd love to
see that myself.

> (One unfortunate structural issue with Up2date is that if there
> are no packages available, eg. you are already-up-to-date, you must
> click CANCEL to exit Up2date and continue with the next repository
> in Up2us. I'm toying with the idea of editing the gladexml file
> before each invokation of Up2date to customize it's Gtk interface.)

Oh - the gui side isn't something I have much experience with myself.

> Once I solve the registration problem I should have a releasable
> version out pretty quick.

man rhnreg_ks

Clocks ticking.... :)

Hunter Matthews Unix / Network Administrator
Office: BioScience 145/244 Duke Univ. Biology Department
Key: F0F88438 / FFB5 34C0 B350 99A4 BB02 9779 A5DB 8B09 F0F8 8438
Never take candy from strangers. Especially on the internet.

To unsubscribe, e-mail: dev-unsubscribe@curr​ent.tigris.org
For additional commands, e-mail: dev-help at current dot tigris dot org

« Previous message in topic | 4 of 5 | Next message in topic »


Show all messages in topic

Re: [Current-server] up2date stupidity tomjennings Tom Jennings 2003-03-17 15:50:56 PST
     Re: [Current-server] up2date stupidity jwbernin John Berninger 2003-03-18 06:03:32 PST
         Re: [Current-server] up2date stupidity tomjennings Tom Jennings 2003-03-18 15:04:12 PST
     Re: [Current-server] up2date stupidity hunterm Hunter Matthews 2003-03-18 09:43:01 PST
         Re: [Current-server] up2date stupidity tomjennings Tom Jennings 2003-03-18 15:25:26 PST
Messages per page: