Template fail for orchestra_rsyslog_obtain_keys snippet when logging server is not installed

Bug #891915 reported by Andres Rodriguez on 2011-11-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
orchestra (Ubuntu)
High
Andres Rodriguez

Bug Description

When the logging server is not installed, the rsyslog keys do not get created. This causes that when executing the preseed, the $SNIPPET('orchestra_rsyslog_obtain_keys') causes a template fail given that the module cannot open the key file.

# *** ERROR ***
#
# There is a templating error preventing this file from rendering correctly.
#
# This is most likely not due to a bug in Cobbler and is something you can fix.
#
# Look at the message below to see what things are causing problems.
#
# (1) Does the template file reference a $variable that is not defined?
# (2) is there a formatting error in a Cheetah directive?
# (3) Should dollar signs ($) be escaped that are not being escaped?
#
# Try fixing the problem and then investigate to see if this message goes
# away or changes.
#
#
# [Errno 2] No such file or directory: '/var/lib/orchestra/ssl-cert-orchestra-ca.pem'
# File "/usr/lib/python2.7/dist-packages/cobbler/templar.py", line 135, in render
# data_out = t.respond()
#
# File "cheetah_DynamicallyCompiledCheetahTemplate_1321583439_53_69368.py", line 239, in respond
#
# File "cheetah_DynamicallyCompiledCheetahTemplate_1321583439_53_69368.py", line 98, in __errorCatcher5
#
# File "<string>", line 1, in <module>
#
# File "/usr/lib/python2.7/dist-packages/cobbler/template_api.py", line 170, in SNIPPET
# result = BuiltinTemplate.SNIPPET(self, file)
#
# File "DynamicallyCompiledCheetahTemplate.py", line 88, in SNIPPET
#
# File "/usr/lib/pymodules/python2.7/Cheetah/Template.py", line 1615, in _handleCheetahInclude
# self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
#
# File "cheetah_DynamicallyCompiledCheetahTemplate_1321583439_55_49217.py", line 97, in respond

#
# File "cheetah_DynamicallyCompiledCheetahTemplate_1321583439_55_49217.py", line 71, in __errorCatcher1
#
# File "<string>", line 1, in <module>
#
# File "/usr/lib/python2.7/dist-packages/orchestra/utils/keys.py", line 58, in get_late_command
# content = open_file("/var/lib/orchestra/ssl-cert-orchestra-ca.pem")
#
# File "/usr/lib/python2.7/dist-packages/orchestra/utils/keys.py", line 52, in open_file
# fp = open(file)
#

Changed in orchestra (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Andres Rodriguez (andreserl)
Changed in orchestra (Ubuntu):
status: Confirmed → In Progress
milestone: none → precise-alpha-1
Changed in orchestra (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

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

---------------
orchestra (2.23-0ubuntu1) precise; urgency=low

  [ Andres Rodriguez ]
  * Install preseeds in var/lib/cobbler/kickstarts to make them editable
    in cobbler's webui. Do not create symlinks. (LP: #882943)
  * orchestra-import-isos: Change KSDIR default to /var/lib/cobbler/kickstarts
    instead of /var/lib/orchestra/kickstarts.
  * orchestra/utils/keys.py: Return "true" for preseed not to fail if keys
    are not found or empty. (LP: #891915)
  * debconf question to select whether to run orchestra-import-isos on
    installation. (LP: #892328)

  [ Dustin Kirkland ]
  * debian/control:
    - recommend ccze for log monitoring, it's awesome!
    - package arrangement per UDS-Orlando live session

  [ Adam Gandelman ]
  * Update references to squid directories and config files to point to
    squid3 equivalent
  * squid.conf: Update for squid3 compat. Removed: 'acl all src all' (now
    built-into squid3), broken_vary_encoding (not supported in squid3),
    upgrade_http0.9 + extension_methods (deprecated, no longer necessary)
  * debian/ubuntu-orchestra-provisioning-server.postinst: Backup original
    squid.conf if it exists. Stop squid3 before populating directory structure
    as it won't happen if squid3 is already running, later restart will fail.
    (LP: #892330)
 -- Andres Rodriguez <email address hidden> Fri, 18 Nov 2011 16:25:01 -0500

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