[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cobbler
Subject:    cobbler import results in wrong distro name
From:       jahrens () uni-mainz ! de (Jens Ahrens)
Date:       2009-11-11 15:17:39
Message-ID: 4AFAD593.7030502 () uni-mainz ! de
[Download RAW message or body]

Hi everybody,

I'm using cobbler-2.0.1-1 on a RedHat 5.3 clone (Scientific Linux).
The problem comes with importing a distro  from a loop-mounted  dvd-image:

bash> mkdir Centos5.4-x86_64/
bash> mount -o loop CentOS-5.4-x86_64.iso Centos5.4-x86_64/

bash> cobbler import --path=Centos5.4-x86_64/  --name=Centos5.4-x86_64  
--arch=x86_64
won't work - I have to use the full path - should be easy to fix this

bash> cobbler import --path=/localscratch/Isos/Centos5.4-x86_64/  
--name=Centos5.4-x86_64  --arch=x86_64
---------------------------------------------------------------------------------------------------------------------
 ask started: 2009-11-11_155754_import
task started (id=Media import, time=Wed Nov 11 15:57:54 2009)
running: rsync -a  '/localscratch/Isos/Centos5.4-x86_64/' 
/localscratch/cobbler/ks_mirror/Centos5.4-x86_64 
--exclude-from=/etc/cobbler/rsync.exclude --progress
building file list ...
804 files to consider
./
repodata/
repodata/comps.xml
      941644 100%  173.35MB/s    0:00:00 (xfer#1, to-check=7/804)
repodata/filelists.xml.gz
     3478717 100%  122.87MB/s    0:00:00 (xfer#2, to-check=5/804)
repodata/other.xml.gz
    10845962 100%  107.74MB/s    0:00:00 (xfer#3, to-check=3/804)
repodata/primary.xml.gz
     1130874 100%   10.37MB/s    0:00:00 (xfer#4, to-check=1/804)
repodata/repomd.xml
        1296 100%   12.17kB/s    0:00:00 (xfer#5, to-check=0/804)

sent 16426701 bytes  received 142 bytes  32853686.00 bytes/sec
total size is 644355841  speedup is 39.23
returned: 0
adding distros
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64/images/xen for 
distro signature
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64/images for 
distro signature
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64 for distro 
signature
found content (breed=redhat) at /l
skipping import, as distro name already exists: images-xen-x86_64
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64/images/pxeboot 
for distro signature
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64/images for 
distro signature
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64 for distro 
signature
found content (breed=redhat) at /l
creating new distro: images-x86_64
creating new profile: images-x86_64
associating repos
traversing distro images-x86_64
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64/images/pxeboot 
for distro signature
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64/images for 
distro signature
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64 for distro 
signature
found content (breed=redhat) at /l
descent into /localscratch/cobbler/ks_mirror/Centos5.4-x86_64
processing repo at : /localscratch/cobbler/ks_mirror/Centos5.4-x86_64
need to process repo/comps: /localscratch/cobbler/ks_mirror/Centos5.4-x86_64
looking for 
/localscratch/cobbler/ks_mirror/Centos5.4-x86_64/repodata/*comps*.xml
running: createrepo -c cache -s sha --groupfile 
/localscratch/cobbler/ks_mirror/Centos5.4-x86_64/repodata/comps.xml 
/localscratch/cobbler/ks_mirror/Centos5.4-x86_64
This option is deprecated
635/635 - CentOS/audiofile-0.2.6-5.x86_64.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
returned: 0
associating kickstarts
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64/images/pxeboot 
for distro signature
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64/images for 
distro signature
scanning /localscratch/cobbler/ks_mirror/Centos5.4-x86_64 for distro 
signature
found content (breed=redhat) at /l
*** TASK COMPLETE ***
------------------------------------------------------------------------------------------------------------------------------------
 One thing about the output is strange and might be a hint on what's 
going wrong: 
skipping import, as distro name already exists: images-xen-x86_64

Although I explicitly give the name (--name=Centos5.4-x86_64) cobbler 
does not name the distro accordingly:
bash> cobbler list
distros:
   images-x86_64
   images-xen-x86_64

profiles:
   images-x86_64
   images-xen-x86_64

systems:

repos:

images:


When I then rename the distros and profiles with:
bash> cobbler distro  rename --name=images-x86_64     
--newname=Centos5.4-x86_64
bash> cobbler distro  rename --name=images-xen-x86_64 
--newname=Centos5.4-xen-x86_64
bash> cobbler profile rename --name=images-x86_64     
--newname=Centos5.4-x86_64
bash> cobbler profile rename --name=images-xen-x86_64 
--newname=Centos5.4-xen-x86_64
bash> cobbler profile edit   --name=Centos5.4-x86_64       
--distro=Centos5.4-x86_64
bash> cobbler profile edit   --name=Centos5.4-xen-x86_64   
--distro=Centos5.4-xen-x86_64

a cobbler list shows:
distros:
   Centos5.4-x86_64
   Centos5.4-xen-x86_64

profiles:
   Centos5.4-x86_64
   Centos5.4-xen-x86_64

systems:

repos:

images:

But all the entries in  $webdir/links/ are gone. Like this a replication 
to a second server won't work anymore, because it relies on the entries 
in that directory.

My question - is this a bug or am I doing something wrong.

Cheers,
Jens
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic