Cobbler errors while importing mini.isos

Bug #828288 reported by Jorge Castro on 2011-08-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cobbler (Ubuntu)
Andres Rodriguez
orchestra (Ubuntu)
Andres Rodriguez

Bug Description

I get this over and over for each iso it tries to import when doing a clean install on an up to date oneiric as of Aug 17, the install never finishes:

mount: warning: /tmp/cobbler-ubuntu-import.NfFK3f/mnt seems to be mounted read-only.
task started: 2011-08-17_150624_import
task started (id=Media import, time=Wed Aug 17 15:06:24 2011)
Found a debian/ubuntu compatible signature: .disk/mini-info
running: rsync -a '/tmp/cobbler-ubuntu-import.NfFK3f/mnt/' /var/www/cobbler/ks_mirror/oneiric-x86_64/ --exclude-from=/etc/cobbler/rsync.exclude --quiet
received on stdout:
received on stderr:
adding distros
creating new distro: oneiric-x86_64
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'Failed to load module for dhcp/module'
Exception Info:
  File "/usr/lib/python2.7/dist-packages/cobbler/", line 93, in run
    rc = self._run(self)
   File "/usr/lib/python2.7/dist-packages/cobbler/", line 227, in runner
   File "/usr/lib/python2.7/dist-packages/cobbler/", line 756, in import_tree
   File "/usr/lib/python2.7/dist-packages/cobbler/modules/", line 275, in run
    os.path.walk(self.path, self.distro_adder, distros_added)
   File "/usr/lib/python2.7/", line 229, in walk
    func(arg, top, names)
   File "/usr/lib/python2.7/dist-packages/cobbler/modules/", line 420, in distro_adder
   File "/usr/lib/python2.7/dist-packages/cobbler/modules/", line 484, in add_entry
   File "/usr/lib/python2.7/dist-packages/cobbler/", line 276, in add
    self.lite_sync = action_litesync.BootLiteSync(self.config, logger=logger)
   File "/usr/lib/python2.7/dist-packages/cobbler/", line 57, in __init__
    self.sync = config.api.get_sync(verbose,logger=self.logger)
   File "/usr/lib/python2.7/dist-packages/cobbler/", line 706, in get_sync
   File "/usr/lib/python2.7/dist-packages/cobbler/", line 825, in get_module_from_file
    return module_loader.get_module_from_file(section,name,fallback)
   File "/usr/lib/python2.7/dist-packages/cobbler/", line 96, in get_module_from_file
    raise CX(_("Failed to load module for %s/%s") % (category,field))

failed to import oneiric-x86_64
profile oneiric-x86_64 not found, inheritance not possible

Dustin Kirkland  (kirkland) wrote :

Subscribing Scott Moser. Perhaps related to moving orchestra-import-isos over to using Scott's cobbler-iso-import as the backend?

Changed in cobbler (Ubuntu):
importance: Undecided → High
Andres Rodriguez (andreserl) wrote :


I don't think this is and issue with the import but rather configuration of cobbler itself.

Jorge, could you please paste your /etc/cobbler/settings and /etc/cobbler/modules.conference

I have an idea of what might have happened and is fixed in orchestra trunk.

Jorge Castro (jorge) wrote :
Jorge Castro (jorge) wrote :
Jorge Castro (jorge) wrote :
Jorge Castro (jorge) wrote :

It appears that cobbler-ubuntu-import is the command causing the problem "cobbler-ubuntu-import natty-x86_64" returns the same error message.

Andres Rodriguez (andreserl) wrote :

Hi Jorge!

On /etc/cobbler/modules.conf look at the lines:
 module = manage_dnsmasq # dns.
 module = manage_dnsmasq # dhcp

For both DNS and dhcp and remove the comments at the end and the trailing whitespaces and restart cobbler :)

Changed in cobbler (Ubuntu):
assignee: nobody → Andres Rodriguez (andreserl)
status: New → Fix Committed
Changed in cobbler (Ubuntu):
status: Fix Committed → Invalid
Changed in orchestra (Ubuntu):
assignee: nobody → Andres Rodriguez (andreserl)
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package orchestra - 2.8-0ubuntu1

orchestra (2.8-0ubuntu1) oneiric; urgency=low

  [ Dustin Kirkland ]
  * debian/control: LP: #825406
    - recommend ntp on both clients and server; arguably, we could point
      orchestra clients at the orchestra server, but if we go that route,
      we'd need to ensure we satisfy #104525
  * === added directory client/etc, === added directory
    client/etc/sudoers.d, client/etc/sudoers.d/orchestra, debian/ubuntu-
    - add the orchestra user to the client, give sudo access to power
      management administrative utilities

  [ Andres Rodriguez ]
  * debian/ubuntu-orchestra-logging-server.postinst: Fix $home path;
    Fix path to certtool cfg file. change ownership of ssl files to
    syslog. (LP: #832335)
  * debian/ubuntu-orchestra-provisioning-server.postinst:
    - Do not comment at end of changed modules settings in
      cobbler. (LP: #828288)
    - Only create ensemble-dav.conf symlink when necessary.
    - Use apache2ctl to restart otherwise it never returns from
      configure. (LP: #832331)
  * debian/ubuntu-orchestra-provisioning-server.postrm:
    - Use apache2ctl to restart otherwise it never returns from purge
      step. (LP: #832337)
  * Change logging server to use TLS instead (LP: #832341):
    - logging-server/etc/rsyslog.d/99-orchestra.conf: Update config file
      to use TLS instead.
    - logging-server/usr/share/orchestra/rsyslog/orchestra-server.conf:
      Update with sample config for TLS.
    - debian/control: Depends/Recommends on rsyslog-gnutls.
  * debian/ubuntu-orchestra-client.postinst: Correctly set server for
    rsyslog and add missing 'fi'.
  * client/etc/rsyslog.d/99-orchestra.conf: Add based on file installed in
    usr/share. This way it will not "cat" a file on postinst. (LP: #832344)
  * orchestra/utils/ Add util to handle zip and encode key to be
    used by rsyslog's cobbler snippet to install keys on client
    machine. (LP: #832347)
    - debian/{control,rules}: Use dh_python2.
    - debian/ubuntu-orchestra-common.install: Add and Install files.
    - provisioning-server/var/lib/cobbler/snippets:
      + orchestra_rsyslog_client_config: Import orchestra python module.
  * Fix some lintian warnings
 -- Andres Rodriguez <email address hidden> Tue, 23 Aug 2011 17:00:43 -0400

Changed in orchestra (Ubuntu):
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