[tools] mrepo new install question

Dag Wieers dag at wieers.com
Fri Jul 13 19:42:25 CEST 2007


On Fri, 13 Jul 2007, Ray Frush wrote:

> I just got pointed to mrepo, and so far, I'm really impressed.
> However, I'm stuck on the RHN integration.
> 
> I installed from the prebuilt RPM:   mrepo-0.8.4-1.el4.rf
> 
> According to instructions in:
> http://svn.rpmforge.net/svn/trunk/tools/mrepo/docs/redhat-network.txt
> 
> I created systemid's for our target distributions thusly:
> 
> gensystemid -r 4WS -a i386 /var/mrepo/rhel4ws-i386
> gensystemid -r 4WS -a x86_64 /var/mrepo/rhel4ws-x86_64
> 
> ... and it looks like it worked.   I have new 'hostnames' on the RHN and
> a systemid file:
> # ls -l /var/mrepo/rhel4ws-x86_64
>     total 8
>     -rw-r--r--  1 root sys 1326 Jul 12 17:56 systemid
> 
> 
> However, when it comes time to get updates with:
> 
> # mrepo -uvvvv
> 
> I get:
> 
> rhel4ws-x86_64: Mirror packages from rhns:///rhel-x86_64-ws-4 to
> /mnt/data1/iso/rhel4ws-x86_64/updates
> Execute: exec /usr/bin/rhnget  -v -v --delete --username="******"
> --password="******" 'rhns:///rhel-x86_64-ws-4'
> '/mnt/data1/iso/rhel4ws-x86_64/updates'
> Verbosity set to level 2
> No RHN systemid found, skipping download.
> 
> 
> So, my question is, where is /usr/bin/rhnget looking to find the
> systemid file?   What configuration item did I miss?

If you increase the number of -v's it should be displayed. I know it seems 
silly to add so many -v's, but there is a logic to it. (even documented 
somewhere !)

Since I noticed your ISO's are being fetched from 
/mnt/data1/iso/rhel4ws-x86_64/updates, I assume you srcdir points to 
/mnt/data1/iso. So it is looking in /mnt/data1/iso/rhel4ws-x86_64/ for the 
systemid.

The point of the srcdir is to keep things that are pristine together. The 
wwwdir only contains generated files and directories.

If you redefine srcdir (/var/mrepo) to somewhere else, everything in mrepo 
is looking somewhere else. The main reason why this is configurable, is 
because mrepo can be used as a user (eg. from /home/user/mrepo) so we 
cannot rely on a fixed path.

If you need to do complex things, symlinks can help. If something is not 
possible, let us know. Either we have an alternative or need to look at 
the design :)

Kind regards,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[all I want is a warm bed and a kind word and unlimited power]


More information about the tools mailing list