← Back to team overview

orchestra team mailing list archive

[Bug 891915] [NEW] Template fail for orchestra_rsyslog_obtain_keys snippet when logging server is not installed

 

Public bug reported:

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)
#

** Affects: orchestra (Ubuntu)
     Importance: High
     Assignee: Andres Rodriguez (andreserl)
         Status: Confirmed

** Changed in: orchestra (Ubuntu)
       Status: New => Confirmed

** Changed in: orchestra (Ubuntu)
   Importance: Undecided => High

** Changed in: orchestra (Ubuntu)
     Assignee: (unassigned) => Andres Rodriguez (andreserl)

-- 
You received this bug notification because you are a member of
orchestra, which is subscribed to orchestra in Ubuntu.
https://bugs.launchpad.net/bugs/891915

Title:
  Template fail for orchestra_rsyslog_obtain_keys snippet when logging
  server is not installed

Status in “orchestra” package in Ubuntu:
  Confirmed

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)
  #

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/orchestra/+bug/891915/+subscriptions


Follow ups

References