[SRU] [oneiric] Oneiric cobbler cannot import precise

Bug #899283 reported by Andres Rodriguez
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cobbler (Ubuntu)
Andres Rodriguez

Bug Description

Cobbler in Oneiric does not know that precise is a supported release. This has already been fixed in precise and needs to be SRU'd.

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
   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
   File "/usr/lib/python2.7/dist-packages/cobbler/modules/manage_import_debian_ubuntu.py", line 482, in add_entry
   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))

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

See full activity log

====== SRU Justification ======

This causes that cobbler fails to import an Ubuntu Precise ISO. Backporting this fix, will allow the import of Precise ISOs.

[Development Fix]
This has been fixed in precise.

[Test Case]
Try to import the precise iso with:

sudo cobbler import --name=precise-<arch> --path=/path/where/iso/mounted --os-version=precise

[Regression Potential]
Minimal, this only hardcodes the new release by updating the ubuntu patch that adds the other ubuntu releases. This has been tested and works as expected.

Changed in cobbler (Ubuntu Precise):
status: New → Fix Released
Changed in cobbler (Ubuntu Oneiric):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Andres Rodriguez (andreserl)
Revision history for this message
Andres Rodriguez (andreserl) wrote :
description: updated
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Andres, or anyone else affected,

Accepted cobbler into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in cobbler (Ubuntu Oneiric):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Martin,

Just tested this and works as expected. Marking verification-done.


tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cobbler - 2.1.0+git20110602-0ubuntu26.1

cobbler (2.1.0+git20110602-0ubuntu26.1) oneiric-proposed; urgency=low

  * SRU (LP: #899283):
    - debian/patches/47_ubuntu_add_oneiric_codename.patch: Updated to add
      'precise' as a importable/supported release.
 -- Andres Rodriguez <email address hidden> Fri, 02 Dec 2011 12:31:21 -0500

Changed in cobbler (Ubuntu Oneiric):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments