Release versions of cobbler don't automatically support the next development release

Bug #899276 reported by James Page
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cobbler (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Cobbler validates releases of ubuntu when importing ISO's; however this list is hard coded in the codebase so when the next development release opens cobbler can't import ISO's with this --os-version.

This can be worked around by using an existing --os-version (i.e. a released version of ubuntu); however this does not work so well when using cobbler-ubuntu-import (which automatically populates --os-version)

Should automatically be obtained with "ubuntu-distro-info --supported" for Ubuntu releases running cobbler. Additionally, it should also fallback to hardcoded releases.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: cobbler 2.1.0+git20110602-0ubuntu26
ProcVersionSignature: Ubuntu 3.0.0-12.20-server 3.0.4
Uname: Linux 3.0.0-12-server x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Fri Dec 2 12:09:20 2011
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cobbler
UpgradeStatus: Upgraded to oneiric on 2011-11-16 (16 days ago)

Revision history for this message
James Page (james-page) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

please use 'ubuntu-distro-info --supported' (or some other flag to ubuntu-distro-info), even for the SRU.
If you just hard code the oneiric SRU, then you'll have to touch it again in 6 months.

Changed in cobbler (Ubuntu):
assignee: nobody → Andres Rodriguez (andreserl)
description: updated
Revision history for this message
James Page (james-page) wrote :

Output from orchestra-import-isos:

creating new distro: precise-x86_64
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: '--os-version for breed ubuntu must be one of dapper, hardy, intrepid, jaunty, karmic, lucid, maverick, natty, oneiric, given was precise'
Exception Info:
  File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 93, in run
    rc = self._run(self)
   File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 227, in runner
    self.logger
   File "/usr/lib/python2.7/dist-packages/cobbler/api.py", line 756, in import_tree
    return manager.run(pkgdir,mirror_url,mirror_name,network_root,kickstart_file,rsync_flags,arch,breed,os_version)
   File "/usr/lib/python2.7/dist-packages/cobbler/modules/manage_import_debian_ubuntu.py", line 275, in run
    os.path.walk(self.path, self.distro_adder, distros_added)
   File "/usr/lib/python2.7/posixpath.py", line 229, in walk
    func(arg, top, names)
   File "/usr/lib/python2.7/dist-packages/cobbler/modules/manage_import_debian_ubuntu.py", line 420, in distro_adder
    adtls.append(self.add_entry(dirname,kernel,initrd))
   File "/usr/lib/python2.7/dist-packages/cobbler/modules/manage_import_debian_ubuntu.py", line 482, in add_entry
    distro.set_os_version(self.os_version)
   File "/usr/lib/python2.7/dist-packages/cobbler/item_distro.py", line 176, in set_os_version
    return utils.set_os_version(self,os_version)
   File "/usr/lib/python2.7/dist-packages/cobbler/utils.py", line 1328, in set_os_version
    raise CX(_("--os-version for breed %s must be one of %s, given was %s") % (self.breed, nicer, os_version))

!!! TASK FAILED !!!
failed to import precise-x86_64
internal error, unknown profile name precise-x86_64
profile precise-x86_64 not found, inheritance not possible

Changed in cobbler (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Changed in cobbler (Ubuntu):
status: Confirmed → Fix Released
assignee: Andres Rodriguez (andreserl) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.