[et-mgmt-tools] Starting again with a new cobbler server

drew einhorn drew.einhorn at gmail.com
Thu Apr 10 21:40:53 UTC 2008


> >
> >     sudo cobbler import --mirror=/mnt/iso1 --name=ubuntu-7.10-desktop-i386
> >
> >
>
>  Expected.  ATM cobbler import does not support non Red Hat based distros.
> Support is not in plan -- at least not by me, anyway.  "cobbler distro add",
> however, does work thanks to patches already submitted to add that support.
>
>  Should you be wanting to add other distro import capability, I welcome
> patches -- something like action_foreign_import.py is probably a good fit
> rather than trying to make the existing Red Hat-based import code work
> elsewhere -- namely because it's already pretty complicated to detect
> varying tree layouts and mirror sources and so forth.
>
>

I've got to clean out the junk that's cluttering up the database, etc.
with the results of the unsuccessful import attempt.

]$ sudo cobbler report
distro          : CentOS-5.1-i386
kernel          : /var/www/cobbler/ks_mirror/CentOS-5.1/images/pxeboot/vmlinuz
initrd          :
/var/www/cobbler/ks_mirror/CentOS-5.1/images/pxeboot/initrd.img
kernel options  : {}
architecture    : x86
ks metadata     : {'tree': 'http://@@http_server@@/cblr/links/CentOS-5.1-i386'}
breed           : redhat

distro          : CentOS-5.1-xen-i386
kernel          : /var/www/cobbler/ks_mirror/CentOS-5.1/images/xen/vmlinuz
initrd          : /var/www/cobbler/ks_mirror/CentOS-5.1/images/xen/initrd.img
kernel options  : {}
architecture    : x86
ks metadata     : {'tree':
'http://@@http_server@@/cblr/links/CentOS-5.1-xen-i386'}
breed           : redhat

distro          :
ubuntu-7.10-desktop-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-casper-i386
kernel          :
/var/www/cobbler/ks_mirror/ubuntu-7.10-desktop-i386/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/casper/vmlinuz
initrd          :
/var/www/cobbler/ks_mirror/ubuntu-7.10-desktop-i386/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/casper/initrd.gz
kernel options  : {}
architecture    : x86
ks metadata     : {}
breed           : redhat

profile         : CentOS-5.1-i386
distro          : CentOS-5.1-i386
kickstart       : /etc/cobbler/sample.ks
kernel options  : {}
ks metadata     : {}
virt file size  : 5
virt ram        : 512
virt type       : auto
virt path       :
virt bridge     : xenbr0
virt cpus       : 1
repos           : []
dhcp tag        : default
server          : <<inherit>>

profile         : CentOS-5.1-xen-i386
distro          : CentOS-5.1-xen-i386
kickstart       : /etc/cobbler/sample.ks
kernel options  : {}
ks metadata     : {}
virt file size  : 5
virt ram        : 512
virt type       : auto
virt path       :
virt bridge     : xenbr0
virt cpus       : 1
repos           : []
dhcp tag        : default
server          : <<inherit>>


]$ sudo  cobbler distro remove
--name=ubuntu-7.10-desktop-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-casper-i386
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/cobbler/action_sync.py", line
1003, in rmfile
    os.unlink(path)
OSError: [Errno 36] File name too long:
'/var/www/cobbler/profiles/ubuntu-7.10-desktop-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-casper-i386'
Error deleting /var/www/cobbler/profiles/ubuntu-7.10-desktop-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-ubuntu-casper-i386

I can probably figure out how to clean out /var/lib/cobbler using a
text editor, and I'm pretty sure I can find a few more places that
need to be cleaned out.  But I'm not sure I can find them all.


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



-- 
Drew Einhorn




More information about the et-mgmt-tools mailing list