Caetano, Greg wrote:
I haven't had any luck.... How do you tell reposync the RHN
user/password to check for entitlements?
The server in question has to be entitled for the given channel. The
cobbler server must also
be RHEL5 (so it can use yum_rhn_plugin).
You'll see the core of this is essentially just
/usr/bin/reposync -r rhel-i386-server-5 --download_path=/tmp/foo
So that may prove easier for testing. Perhaps the server isn't entitled
for that channel?
Better tools need to exist -- no doubt -- surfr should be providing a
more comprehensive solution soon -- shortly after we get virt-factory
0.0.3 out of the way.
# 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@xxxxxx
Red Hat Certified Engineer
RHCE#803004972711193
-----Original Message-----
From: et-mgmt-tools-bounces@xxxxxxxxxx
[mailto:et-mgmt-tools-bounces@xxxxxxxxxx] 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@xxxxxxxxxxxx <mailto:marcmo@xxxxxxxxxxxx>
----------------------------------------------------------------------
--
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools