Fedora Linux Support Community & Resources Center
  #1  
Old 2nd June 2010, 05:30 AM
matth45 Offline
Registered User
 
Join Date: Jun 2007
Posts: 160
linuxsafari
cobbler import broken on Fedora 12

Cobbler import does not seem to work as described here:

http://docs.fedoraproject.org/en-US/...ll-server.html

I have selinux disabled.

Code:
# mount -o loop,ro Fedora-13-i686-Live.iso /mnt/dvd
# cobbler import --path="/mnt/dvd" --arch=i386 --name=fedora13task started: 2010-06-01_235629_import
task started (id=Media import, time=Tue Jun  1 23:56:29 2010)
running: rsync -a  '/mnt/dvd/' /var/www/cobbler/ks_mirror/fedora13-i386 --exclude-from=/etc/cobbler/rsync.exclude --progress

...


total size is 723460680  speedup is 1.00
returned: 0
adding distros
scanning /var/www/cobbler/ks_mirror/fedora13-i386/EFI/boot for distro signature
scanning /var/www/cobbler/ks_mirror/fedora13-i386/EFI for distro signature
scanning /var/www/cobbler/ks_mirror/fedora13-i386 for distro signature
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'No distro signature for kernel at /var/www/cobbler/ks_mirror'
Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 122, in die
    raise CX(msg)

Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'No distro signature for kernel at /var/www/cobbler/ks_mirror'
Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 95, in run
    rc = self._run(self)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 224, in runner
    self.logger
   File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 657, in import_tree
    return importer.run()
   File "/usr/lib/python2.6/site-packages/cobbler/action_import.py", line 215, in run
    os.path.walk(self.path, self.distro_adder, distros_added)
   File "/usr/lib64/python2.6/posixpath.py", line 232, in walk
    walk(name, func, arg)
   File "/usr/lib64/python2.6/posixpath.py", line 232, in walk
    walk(name, func, arg)
   File "/usr/lib64/python2.6/posixpath.py", line 224, in walk
    func(arg, top, names)
   File "/usr/lib/python2.6/site-packages/cobbler/action_import.py", line 554, in distro_adder
    adtls.append(self.add_entry(dirname,kernel,initrd))
   File "/usr/lib/python2.6/site-packages/cobbler/action_import.py", line 580, in add_entry
    importer = import_factory(dirname,self.path,self.breed,self.logger)
   File "/usr/lib/python2.6/site-packages/cobbler/action_import.py", line 847, in import_factory
    breed , rootdir, pkgdir = guess_breed(kerneldir,path,cli_breed,logger)
   File "/usr/lib/python2.6/site-packages/cobbler/action_import.py", line 823, in guess_breed
    utils.die(logger, "No distro signature for kernel at %s" % kerneldir )
   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 130, in die
    raise CX(msg)

!!! TASK FAILED !!!

And it doesn't work from a URL either:

Code:
# cobbler import --path="http://mirrors.kernel.org/fedora/releases/13/Fedora/i386/os" --name=fedora13
task started: 2010-06-02_002309_import
task started (id=Media import, time=Wed Jun  2 00:23:09 2010)
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'unsupported protocol'
Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 122, in die
    raise CX(msg)

Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'unsupported protocol'
Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 95, in run
    rc = self._run(self)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 224, in runner
    self.logger
   File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 657, in import_tree
    return importer.run()
   File "/usr/lib/python2.6/site-packages/cobbler/action_import.py", line 164, in run
    utils.die(self.logger,"unsupported protocol")
   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 130, in die
    raise CX(msg)

!!! TASK FAILED !!!
I tried this, but I'm not sure if this is correct:

Code:
# cobbler distro add --name=fedora13-i386 --kernel=/var/www/cobbler/ks_mirror/fedora13-i386/isolinux/vmlinuz0 --initrd=/var/www/cobbler/ks_mirror/fedora13-i386/isolinux/initrd0.img --arch=i386 --breed=redhat

# cobbler report
distros:
==========
Name                           : fedora13-i386
Architecture                   : i386
Breed                          : redhat
Comment                        : 
Initrd                         : /var/www/cobbler/ks_mirror/fedora13-i386/isolinux/initrd0.img
Kernel                         : /var/www/cobbler/ks_mirror/fedora13-i386/isolinux/vmlinuz0
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart Metadata             : {}
Management Classes             : []
OS Version                     : generic26
Owners                         : ['admin']
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Template Files                 : {}


profiles:
==========

systems:
==========

repos:
==========

images:
==========
I have this output from cobbler check:

Code:
# cobbler check
The following are potential configuration items that you may want to fix:

1 : since iptables may be running, ensure 69, 80, and 25151 are unblocked
2 : debmirror package is not installed, it will be required to manage debian deployments and repositories

Restart cobblerd and then run 'cobbler sync' to apply changes.
The listed ports are open in iptables, and I do not need to manage a debian deployment.

Any pointers would be appreciated.
Reply With Quote
  #2  
Old 2nd June 2010, 11:36 PM
matth45 Offline
Registered User
 
Join Date: Jun 2007
Posts: 160
linuxsafari
Further problems

I enabled the cobbler-web interface. This was a good guide. And I added a profile corresponding to the distro I created above. I then added a system for the computer I'm trying to boot using PXE, specifying the MAC address of this system.

The target system now boots from PXE. However, I get a kernel error, since the root filesystem isn't specified anywhere:

Code:
dracut: dracut-005-3.fc13
dracut: FATAL: No or empty root= argument
dracut: Refusing to continue
dracut: FATAL: No or empty root= argument
dracut: Refusing to continue
In the distro, profile, and system in cobbler I have left the kernel options field blank, except for adding selinux=disabled in the distro kernel options. Cobbler exported the dvd I pointed to during the distro add procedure to a location within my webroot (/var/www/html/fedora13 -> http://192.168.2.1/fedora13). I've verified that this is accessible in a browser from this subnet. But how is the kernel on the target system supposed to access this?

I assume I could specify a root= argument here and export the filesystem over NFS, but I'd like to do this the right (i.e. automatic) way through cobbler. If the import feature were working would cobbler have created some root= argument in the distro?

Looking through the boot messages, I see that the kernel arguments on the target system were these:

Code:
Kernel command line: initrd=/images/fedora13-i386/initrd0.img ksdevice=bootif lang= selinux=disabled kssendmac text ks=http://192.168.2.1/cblr/svc/op/ks/system/XX:XX:XX:XX:XX:XX BOOT_IMAGE=/images/fedora13-i386/vmlinuz0 BOOTIF=XX-XX-XX-XX-XX-XX
The kickstart URL there points to an empty file: /var/lib/cobbler/kickstarts/default.ks The MAC address (XX...) is the correct one.

I'd really appreciate some help with this.

Thanks.
Reply With Quote
  #3  
Old 3rd June 2010, 05:59 PM
matth45 Offline
Registered User
 
Join Date: Jun 2007
Posts: 160
linuxsafari
alternative boot image

I hacked something together that seems to work, but it doesn't really use cobbler anymore. I replaced the vmlinuz0 and initrd0.img from the installer cd (the one that cobbler copied to /var/lib/tftpboot/images) with the one found in a fedora mirror at /releases/13/Fedora/i386/os/images/pxeboot.

Now the system boots, but I'm still left modifying the default.ks kickstart file in order to get an installation.

After all this, I'm left wondering "what's the point of cobbler?" I must be missing something here, but there's basically no functional documentation anywhere. Does anyone actually use this stuff in Fedora?
Reply With Quote
Reply

Tags
broken, cobbler, fedora, import

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cobbler/httpd problem jazztrump9 Using Fedora 2 2nd June 2010 01:09 AM
cobbler problem angle2009 Servers & Networking 0 6th January 2010 05:58 PM
Need Detailed Howto Article about Cobbler and PXE boot M.e.M.O. Using Fedora 2 9th November 2008 01:38 AM
rpm --import (import read failed(0) yahya2006 Using Fedora 2 13th December 2006 11:38 PM
rpm --import public.gpg.key import read failed. SweetMax Installation, Upgrades and Live Media 2 10th February 2006 10:28 AM


Current GMT-time: 14:20 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Katihar Travel Photos - Union - Umm el Fahm Instagram Photos