Cobbler errors while importing mini.isos

Bug #828288 reported by Jorge Castro
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cobbler (Ubuntu)
Invalid
High
Andres Rodriguez
orchestra (Ubuntu)
Fix Released
Undecided
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/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 484, in add_entry
    self.distros.add(distro,save=True)
   File "/usr/lib/python2.7/dist-packages/cobbler/collection.py", line 276, in add
    self.lite_sync = action_litesync.BootLiteSync(self.config, logger=logger)
   File "/usr/lib/python2.7/dist-packages/cobbler/action_litesync.py", line 57, in __init__
    self.sync = config.api.get_sync(verbose,logger=self.logger)
   File "/usr/lib/python2.7/dist-packages/cobbler/api.py", line 706, in get_sync
    "manage_isc"
   File "/usr/lib/python2.7/dist-packages/cobbler/api.py", 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/module_loader.py", line 96, in get_module_from_file
    raise CX(_("Failed to load module for %s/%s") % (category,field))

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

Revision history for this message
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
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Howdy!!

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.

Revision history for this message
Jorge Castro (jorge) wrote :
Revision history for this message
Jorge Castro (jorge) wrote :
Revision history for this message
Jorge Castro (jorge) wrote :
Revision history for this message
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.

Revision history for this 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 :)

Revision history for this message
Jorge Castro (jorge) wrote : Re: [Bug 828288] Re: Cobbler errors while importing mini.isos

Yep, that did the trick!

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
Revision history for this message
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-
    orchestra-client.postinst:
    - 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/keys.py: 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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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