Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: RedHat ES4

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

current
Discussion topic

Back to topic list

Re: RedHat ES4

Reply

Author Josh <josh2780 at yahoo dot com>
Full name Josh <josh2780 at yahoo dot com>
Date 2005-04-19 06:19:40 PDT
Message Right on Trevor, thanks.

But I'm still getting traceback TypeErrors. It looks
like cadmin complains because it is using redhats
servers??

Basically I'm doing everything you stated below,
except I had selected "Install all packages" when
doing the initial ES4 install... so I really don't
have a need to run nrh-mirror-updates (at least at
this point I don't think I do).

Here's a snippet of the cadmin call I'm making:

# cadmin add_dir -d /var/spool/up2date
https://xmlrpc.rhn.r​edhat.com/XMLRPC foo
Traceback (most recent call last):
  File "/usr/sbin/cadmin", line 131, in ?
    main()
<snip>
TypeError: cannot marshal None unless allow_none is
enabled


Now I was also unable to run cadmin create_channel...
get a simliar error:

# cadmin create_channel -n "RedHat ES 4" -l ES4 -a
i386 -r 4 -d "RedHat Enterprise Server 4"
Traceback (most recent call last):
<snip>
xmlrpclib.Fault: <Fault -1: "While running
'cadmin.createChannel':
caught\nserver.apac​heRequest.UnknownXML​ : Invalid
request received (class xmlrpc.cadmin is not defined
(function = createChannel)).\n">

But I found the answer to this one in the FAQs. My
up2date config is using redhat's servers... but I want
to keep my up2date/current server using my rhn license
to get the updates.

Has anyone run into the first error with cadmin
add_dir? Do I need to get cadmin create_channel
working before running cadmin add_dir?

-Josh


--- Trevor Astrope <astrope at tabbweb dot com> wrote:
> On Mon, 18 Apr 2005, drew wrote:
>
> > I have a similar setup, except I have valid
> subscriptions for all my
> > linux boxes (numbering 20 or so). However, I too,
> would like to have
> > one system download all the updates via RHN, then
> distribute them via
> > current to the remaining machines on the network.
> This way, only one
> > hole through the firewall is required, and I can
> choose which machines
> > to update with which software, as I see fit
> (development boxes
> > immediately, production boxes after a "burn in"
> period).
>
> This is exactly what I'm doing. My situation is
> identical to yours, right
> down to the number of subscribed machines.
>
> All you need to do is get the nrh-up2date package
> from nrh-up2date.org and
> install these 2 scripts: nrh-mirror-updates and
> nrh-clean-repository
>
> You only need nrh-clean-repository if you want to
> easily remove old
> packages from the repositories.
>
> The configuration instructions are contained in the
> script, at the top.
> They're pretty self-explanitory.
>
> Just ignore the rest of nrh-up2date, as current is a
> better solution for
> an up2date server and I don't think nrh-up2date is
> no longer maintained.
>
> You will need to modify the nrh-mirror-updates
> script to import base64 and
> modify the script to base64 decode the packageList
> before decompressing
> it, like below:
>
> packageList =
> base64.decodestring(​packageList)
> packageList =
> zlib.decompress(packageList)
>
> This only occurs twice in nrh-mirror-updates. I can
> send you a patch if
> you want...
>
> After configuring nrh-mirror-updates, it will
> download every package from
> rhn for the channels you configured. On subsequent
> runs it will only
> download newer packages. You can then use
> nrh-clean-repository to remove
> the old packages from the repository.
>
> I had repositories for 2.1 3 and 4, all on the same
> machine, as
> nrh-mirror-updates looks for the systemid files in
> its own config
> directory for each channel, so you can use it for
> multiple channels
> simultaineously, as long as you have valid systemid
> files for each
> channel. It won't touch your up2date configuration,
> so you can use up2date
> on the same machine to update against the current
> server.
>
> All you have to do is run `cadmin add_dir' against
> the nrh repository
> directory for each channel. Then `cadmin
> scan_channel' to populate the
> corresponding current channel.
>
> Besides being able to use nrh-mirror-updates to get
> the updates from rhn
> and up2date to get the updates from the current
> server, you have the added
> advantage of having a completely up to date
> repository containing the most
> recent versions of all packages, even the ones you
> haven't yet installed.
>
> As part of my goal to learn python, I am going to
> try and integrate
> nrh-mirror-updates into cadmin, so you can do
> `cadmin update_channel' to
> populate and update your current channels from an
> upstream repository.
>
> Hope this helps,
>
> Trevor
>
>
>
--------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail:
> users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail:
> users-help at current dot tigris dot org
>
>


        
____________________​______________
Do you Yahoo!?
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.​com/p-travelguide

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
For additional commands, e-mail: users-help at current dot tigris dot org

« Previous message in topic | 6 of 16 | Next message in topic »

Messages

Show all messages in topic

RedHat ES4 Josh <josh2780 at yahoo dot com> Josh <josh2780 at yahoo dot com> 2005-04-18 14:14:35 PDT
     Re: RedHat ES4 josvos Jos Vos 2005-04-18 14:23:49 PDT
         Re: RedHat ES4 darwinscusp Drew Myers 2005-04-18 14:31:09 PDT
             Re: RedHat ES4 Trevor Astrope <astrope at tabbweb dot com> Trevor Astrope <astrope at tabbweb dot com> 2005-04-18 18:51:44 PDT
                 Re: RedHat ES4 darwinscusp Drew Myers 2005-04-18 19:33:56 PDT
                     Re: RedHat ES4 Josh <josh2780 at yahoo dot com> Josh <josh2780 at yahoo dot com> 2005-04-19 06:19:40 PDT
                         Re: RedHat ES4 Trevor Astrope <astrope at tabbweb dot com> Trevor Astrope <astrope at tabbweb dot com> 2005-04-19 08:28:33 PDT
             Re: RedHat ES4 Hunter Matthews <thm at duke dot edu> Hunter Matthews <thm at duke dot edu> 2005-04-19 08:23:18 PDT
         Re: RedHat ES4 Jason Parsons <jparsons-lists at saffron dot net> Jason Parsons <jparsons-lists at saffron dot net> 2005-04-18 14:40:10 PDT
             Re: RedHat ES4 josvos Jos Vos 2005-04-18 14:55:56 PDT
                 Re: RedHat ES4 Jason Parsons <jparsons-lists at saffron dot net> Jason Parsons <jparsons-lists at saffron dot net> 2005-04-18 15:16:20 PDT
                     Re: RedHat ES4 Josh <josh2780 at yahoo dot com> Josh <josh2780 at yahoo dot com> 2005-04-18 15:17:53 PDT
                         Re: RedHat ES4 Josh <josh2780 at yahoo dot com> Josh <josh2780 at yahoo dot com> 2005-04-18 15:21:02 PDT
             Re: RedHat ES4 josvos Jos Vos 2005-04-18 15:10:16 PDT
                 Re: RedHat ES4 Hunter Matthews <thm at duke dot edu> Hunter Matthews <thm at duke dot edu> 2005-04-19 08:29:39 PDT
     Re: RedHat ES4 Hunter Matthews <thm at duke dot edu> Hunter Matthews <thm at duke dot edu> 2005-04-19 08:20:37 PDT
Messages per page: