Bug 642222

Summary: Importing F14 Fails.
Product: [Fedora] Fedora EPEL Reporter: Jóhann B. Guðmundsson <johannbg>
Component: cobblerAssignee: Scott J Henson <shenson>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: el5CC: awood, david.ward, dgoodwin, jeckersb, shenson, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-31 06:48:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jóhann B. Guðmundsson 2010-10-12 11:46:15 UTC
Description of problem:

Importing F14 fails due to cobbler not supporting F14.

"ue Oct 12 11:25:45 2010 - INFO | Exception value: '--os-version for breed redhat must be one of rhel2.1, rhel3, rhel4, rhel5, rhel6, fedora5, fedora6, fedora7, fedora8, fedora9, fedora10, fedora11, fedora12, fedora13, generic24, generic26, virtio26, other, given was fedora14'" 

WTF.. 

Honestly try to find a way to not make this release number depended or stay one step ahead of fedora releases which means add support for F14 and F15 at least for now.

Full fail log.

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Tue Oct 12 11:25:45 2010 - INFO | returned: 0
Tue Oct 12 11:25:45 2010 - INFO | associating kickstarts
Tue Oct 12 11:25:45 2010 - INFO | scanning /var/www/cobbler/ks_mirror/Fedora14-x86_64/images/pxeboot for distro signature
Tue Oct 12 11:25:45 2010 - INFO | scanning /var/www/cobbler/ks_mirror/Fedora14-x86_64/images for distro signature
Tue Oct 12 11:25:45 2010 - INFO | scanning /var/www/cobbler/ks_mirror/Fedora14-x86_64 for distro signature
Tue Oct 12 11:25:45 2010 - INFO | found content (breed=redhat) at /v
Tue Oct 12 11:25:45 2010 - INFO | Exception occured: cobbler.cexceptions.CX
Tue Oct 12 11:25:45 2010 - INFO | Exception value: '--os-version for breed redhat must be one of rhel2.1, rhel3, rhel4, rhel5, rhel6, fedora5, fedora6, fedora7, fedora8, fedora9, fedora10, fedora11, fedora12, fedora13, generic24, generic26, virtio26, other, given was fedora14'
Tue Oct 12 11:25:45 2010 - INFO | Exception Info:
  File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 95, in run
    rc = self._run(self)
   File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 224, in runner
    self.logger
   File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 658, in import_tree
    return importer.run()
   File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 227, in run
    self.kickstart_finder(distros_added)
   File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 300, in kickstart_finder
    distro.set_os_version(version)
   File "/usr/lib/python2.4/site-packages/cobbler/item_distro.py", line 174, in set_os_version
    return utils.set_os_version(self,os_version)
   File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 1255, in set_os_version
    raise CX(_("--os-version for breed %s must be one of %s, given was %s") % (self.breed, nicer, os_version))

Tue Oct 12 11:25:45 2010 - ERROR | ### TASK FAILED ###


Version-Release number of selected component (if applicable):

cobbler-web-2.0.5-1.el5
cobbler-2.0.5-1.el5


How reproducible:

Always

Steps to Reproduce:
1. Import F14
2.
3.
  
Actual results:

Fail 

Expected results:

All Fedora releases supported now and in the future without a hassle.. 

Additional info:

<sigh>

Comment 1 David Ward 2010-12-12 17:00:29 UTC
Affects cobbler running under Fedora 14 itself as well (in addition to EPEL).  Will this bug get more attention if the Product is Fedora instead of EPEL?

Comment 2 David Ward 2010-12-12 17:34:44 UTC
Apparently this was fixed upstream four months ago (before this bug was reported):

http://git.fedorahosted.org/git/?p=cobbler;a=commit;h=87de043e9f4d4fa1dbb873d2c7de5764192698d2

A newer version of cobbler that contains the fix is in the 'updates-testing' repository for Fedora 14 and the 'epel-testing' repository for RHEL 5.  I think this bug can be closed when the new version is moved into 'updates' and 'epel' respectively.

Comment 3 Scott J Henson 2010-12-31 06:48:08 UTC
2.0.9 is in epel and updates for f13.  We are waiting on 2.0.10 to hit updates for F14 (due to a bug in 2.0.9 impacting f14).