cobblerd fails to start: NoSectionError

Bug #891527 reported by Adam Gandelman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cobbler (Ubuntu)
Fix Released
High
Andres Rodriguez

Bug Description

On 12.04 with cobbler 2.2.2-0ubuntu1 on 12.04, package installs fine but upstart cannot start cobblerd. The following traceback occurs when attempting to start manually:

ubuntu@domU-12-31-39-16-39-C3:~$ sudo cobblerd -F
Traceback (most recent call last):
  File "/usr/bin/cobblerd", line 76, in main
    api = cobbler_api.BootAPI(is_cobblerd=True)
  File "/usr/lib/python2.7/dist-packages/cobbler/api.py", line 127, in __init__
    module_loader.load_modules()
  File "/usr/lib/python2.7/dist-packages/cobbler/module_loader.py", line 62, in load_modules
    blip = __import__("modules.%s" % ( modname), globals(), locals(), [modname])
  File "/usr/lib/python2.7/dist-packages/cobbler/modules/serializer_mongodb.py", line 53, in <module>
    host = cp.get("connection","host")
  File "/usr/lib/python2.7/ConfigParser.py", line 599, in get
    raise NoSectionError(section)
NoSectionError: No section: 'connection'

It appears the serializer_mongodb module is attempting to load module-specific config from /etc/cobbler/mongodb.conf. This file is shipped in the upstream cobbler source tree but not installed by package with the rest of the config. Importing the file manually resolves the issue.

Related branches

Dave Walker (davewalker)
Changed in cobbler (Ubuntu):
importance: Undecided → High
milestone: none → precise-alpha-1
Changed in cobbler (Ubuntu):
assignee: nobody → Andres Rodriguez (andreserl)
status: New → In Progress
Changed in cobbler (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cobbler - 2.2.2-0ubuntu2

---------------
cobbler (2.2.2-0ubuntu2) precise; urgency=low

  * debian/cobbler-common.install: Install missing files.
    - etc/cobbler/mongodb.conf (LP: #891527)
    - etc/cobbler/ldap/ldap_authconfig.template
    - etc/cobbler/iso/buildiso.template
    - etc/cobbler/pxe/gpxemenu.template exists
    - etc/cobbler/pxe/pxeprofile_esxi.template
    - etc/cobbler/pxe/pxesystem_esxi.template
 -- Andres Rodriguez <email address hidden> Thu, 17 Nov 2011 10:38:58 -0500

Changed in cobbler (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.