[et-mgmt-tools] Has any one managed to get cobblerandrhn toplaynice?

Michael DeHaan mdehaan at redhat.com
Tue Jun 5 20:54:47 UTC 2007


Caetano, Greg wrote:
> In a nutshell,
>
> I needed to manually create two directories, (.origin and
> repo-channel-name) in order to make this reposync to complete.
>
> Here it is from start to finish.
>
> # rpm -qa | grep -i cobbler
> cobbler-0.4.8-1
> # rpm -qa | grep -i yum-utils
> yum-utils-1.0.3-1
>
> # cobbler repo add --name=rh5basex86 --mirror=rhn://rhel-i386-server-5
> # cobbler sync
> sync distro: rhel5x86_64-xen-x86_64
> sync distro: rhel5x86_64-x86_64
> sync distro: rhel5x86-xen-i386
> sync distro: toolkit
> sync distro: rhel5x86-i386
> sync profile: rhel5x86_64-xen-x86_64
> sync profile: rhel5x86-i386
> sync profile: toolkitbash
> sync profile: rhel5x86_64xenhost
> sync profile: rhel5x86_64-x86_64
> sync profile: toolkitfw
> sync profile: rhel5x86-xen-i386
> sync profile: rhel5x86_64base
> sync profile: rhel5x86base
> # 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'
> # ls -l /var/www/cobbler/repo_mirror
> total 4
> lrwxrwxrwx 1 root apache 47 Jun  5 11:49 rh5basex86 ->
> /var/www/cobbler/repo_mirror/rhel-i386-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
> 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'
> # ls -la /var/www/cobbler/repo_mirror
> total 28
> drwxr-sr-x  3 apache apache 4096 Jun  5 11:50 .
> drwxr-sr-x 12 apache apache 4096 Jun  5 11:49 ..
> lrwxrwxrwx  1 root   apache   47 Jun  5 11:49 rh5basex86 ->
> /var/www/cobbler/repo_mirror/rhel-i386-server-5
> drwxr-sr-x  2 root   apache 4096 Jun  5 11:50 rhel-i386-server-5
> # mkdir /var/www/cobbler/repo_mirror/.origin
> # ls -la /var/www/cobbler/repo_mirror       
> total 36
> drwxr-sr-x  4 apache apache 4096 Jun  5 11:51 .
> drwxr-sr-x 12 apache apache 4096 Jun  5 11:49 ..
> drwxr-sr-x  2 root   apache 4096 Jun  5 11:51 .origin
> lrwxrwxrwx  1 root   apache   47 Jun  5 11:49 rh5basex86 ->
> /var/www/cobbler/repo_mirror/rhel-i386-server-5
> drwxr-sr-x  2 root   apache 4096 Jun  5 11:50 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
> #
>
>
> Greg Caetano
> HP TSG Linux Solutions Alliances Engineering
> Chicago, IL
> 773-281-8129 
> greg.caetano at hp.com
> Red Hat Certified Engineer
> RHCE#803004972711193
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>   

I'll tweak the app appropriately... generally I would have expected yum 
to create the dest directory, but that appears to not be consistant.

The missing file in .origin would explain much. I already had the origin 
dir on my machines from other testing, apparently.

Thanks!

--Michael






More information about the et-mgmt-tools mailing list