RE: [et-mgmt-tools] Has any one managed to get cobbler andrhn toplaynice?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Progress.....


# ls -l /var/www/cobbler/repo_mirror/
total 8
lrwxrwxrwx 1 root apache 47 Jun  5 09:10 rh5basex86 ->
/var/www/cobbler/repo_mirror/rhel-i386-server-5
lrwxrwxrwx 1 root apache 49 May 23 13:17 rhel5x86_64 ->
/var/www/cobbler/repo_mirror/rhel-x86_64-server-5
# mkdir /var/www/cobbler/repo_mirror/rhel-i386-server-5
# cobbler reposync                                     
- /usr/bin/reposync -r rhel-i386-server-5
--download_path=/var/www/cobbler/repo_mirror
No Repositories Available to Set Up
- creating: /var/www/cobbler/repo_mirror/.origin/rh5basex86.repo
- scanning: repo_mirror
createrepo /var/www/cobbler/repo_mirror/rh5basex86

Saving Primary metadata
Saving file lists metadata
Saving other metadata
- creating: /var/www/cobbler/repo_mirror/rh5basex86/config.repo
# ls /var/www/cobbler/repo_mirror/rh5basex86/
config.repo  repodata
#

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 Caetano, Greg
Sent: Tuesday, June 05, 2007 11:32 AM
To: Fedora/Linux Management Tools
Subject: RE: [et-mgmt-tools] Has any one managed to get cobbler andrhn
toplaynice?

Michael

Here is some additional testing on the same server

# yum update
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
Setting up Update Process
Setting up repositories
rhel-i386-server-5        100% |=========================| 1.4 kB
00:00     
Reading repository metadata in from local files No Packages marked for
Update/Obsoletion # /usr/bin/reposync -r rhel-i386-server-5
--download_path=/var/www/cobbler/repo_mirror/rh5basex86
Error: Cannot create destination dir
/var/www/cobbler/repo_mirror/rh5basex86
# /usr/bin/reposync -r rhel-i386-server-5
--download_path=/tmp/rh5basex86
No Repositories Available to Set Up
#  


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 11:22 AM
To: Fedora/Linux Management Tools
Subject: Re: [et-mgmt-tools] Has any one managed to get cobbler and rhn
toplaynice?

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
>   

_______________________________________________
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


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux