Red Hat Bugzilla – Bug 973255
spacewalk-splice-checkin default config missing logging section causes a traceback
Last modified: 2013-10-01 06:56:12 EDT
Description of problem:
Logging section missing in /etc/splice/checkin.conf causes a stack trace in spacewalk-splice-checkin.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. remove logging entry from /etc/splice/checkin.conf (or just install splice tools --- the default checkin.conf doesn't contain logging entry)
2. run /usr/bin/spacewalk-splice-checkin --splice-sync
Missing logging entry in /etc/splice/checkin.conf prevents spacewalk-splice-checkin from running
missing logging entry handled by default settings
Traceback (most recent call last):
File "/usr/bin/spacewalk-splice-checkin", line 51, in <module>
File "/usr/bin/spacewalk-splice-checkin", line 29, in init_logging
log_config = CONFIG.get("logging", "config")
File "/usr/lib64/python2.6/ConfigParser.py", line 532, in get
ConfigParser.NoSectionError: No section: 'logging'
Defaults for all of the config values for spacewalk-splice-tool are not hard coded, and I don't think they need to be. This file will always exist due to packaging.
The file is provided by splice-common-config, which is required by splice-common, which is required by spacewalk-splice-tool:
[root@rhel-sst ~]# rpm -qf /etc/splice/logging/basic.cfg
[root@rhel-sst ~]# rpm -q --requires spacewalk-splice-tool | grep splice
config(spacewalk-splice-tool) = 0.20-1.el6sam
splice-common >= 0.77
[root@rhel-sst ~]# rpm -q --requires splice-common | grep splice
config(splice-common) = 0.126-1.git.2.4fbb00a.el6
splice-common-config = 0.126-1.git.2.4fbb00a.el6
Should this be moved to CLOSED NOTABUG?
i'll move to ON_QA. not sure how sst was installed without this file, so maybe the deps were wrong before. it needs to be verified that installing sst also (indirectly) creates /etc/splice/logging/basic.cfg
The packaging is ok:
[root@ec2-46-137-24-190 ~]# rpm -qf /etc/splice/logging/basic.cfg
[root@ec2-46-137-24-190 ~]# rpm -q --requires spacewalk-splice-tool | grep splice
config(spacewalk-splice-tool) = 0.24-1.el6sam
splice-common >= 0.77
[root@ec2-46-137-24-190 ~]# rpm -q --requires splice-common | grep splice
config(splice-common) = 0.130-1.el6sam
splice-common-config = 0.130-1.el6sam
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.