[et-mgmt-tools] Has any one managed to get cobbler and rhn toplay nice?

Caetano, Greg Greg.Caetano at hp.com
Tue Jun 5 15:53:00 UTC 2007


I haven't had any luck.... How do you tell reposync the RHN
user/password to check for entitlements?

# cobbler repo add --name=rh5basex86 --mirror=rhn://rhel-i386-server-5
# cobbler report
repo            : rh5basex86
mirror          : rhn://rhel-i386-server-5
keep updated    : 1
local filename  : 
rpm list        : 
# cobbler reposync
- /usr/bin/reposync -r rhel-i386-server-5
--download_path=/var/www/cobbler/repo_mirror
- symlink: /var/www/cobbler/repo_mirror/rhel-i386-server-5 ->
/var/www/cobbler/repo_mirror/rh5basex86
No Repositories Available to Set Up
- creating: /var/www/cobbler/repo_mirror/.origin/rh5basex86.repo
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 636,
in main
    BootCLI(sys.argv).run()
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 110,
in run
    self.curry_args(self.args[1:], self.commands['toplevel'])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 465,
in curry_args
    commands[args[0]](args[1:])
  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 495,
in reposync
    self.api.reposync()
  File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 137, in
reposync
    return reposync.run()
  File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 65, in run
    self.do_reposync(repo)
  File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 176, in do_reposync
    temp_file = self.create_local_file(repo, temp_path, output=False)
  File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 231, in create_local_file
    config_file = open(fname, "w+")
IOError: [Errno 2] No such file or directory:
'/var/www/cobbler/repo_mirror/.origin/rh5basex86.repo'
#  
# rpm -qa | grep -i cobbler
cobbler-0.4.8-1

Greg Caetano
HP TSG Linux Solutions Alliances Engineering
Chicago, IL
773-281-8129 
greg.caetano at hp.com
Red Hat Certified Engineer
RHCE#803004972711193
-----Original Message-----
From: et-mgmt-tools-bounces at redhat.com
[mailto:et-mgmt-tools-bounces at redhat.com] On Behalf Of Michael DeHaan
Sent: Tuesday, June 05, 2007 10:16 AM
To: Fedora/Linux Management Tools
Subject: Re: [et-mgmt-tools] Has any one managed to get cobbler and rhn
toplay nice?

Marc Mondragon wrote:
>
> A month or so ago I tried to get this working (w/ Michael's help btw) 
> for my RHEL 5 subscriptions but I was unable to. Has anyone managed to

> get this to work in the interim?
>
> Thanks,
>
> Marc Mondragon
>
> Fox River Financial Resources/Ritchie Capital Investments, Ltd.
> 2100 Enterprise Avenue
> Geneva, IL 60134
> marcmo at foxriver.com <mailto:marcmo at foxriver.com>
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools

I didn't see it in his attachment, but Marc's referring to ...

cobbler repo add --name=foo --mirror=rhn://name-of-rhel5-channel
cobbler reposync

Which worked for me on several different machines, but not for Marc. 
Other reports welcome...

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools at redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools




More information about the et-mgmt-tools mailing list