Description of problem: The cds (gofer) plugin fails to load the cdsplugin.conf. Version-Release number of selected component (if applicable): 0.162 How reproducible: Always Steps to Reproduce: 1. Install CDS 2. start goferd 3. Actual results: 2011-04-09 03:25:52,687 [ERROR][MainThread] load() @ plugin.py:277 - /etc/gofer/plugins/cdsplugin.conf Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/gofer/agent/plugin.py", line 273, in load inst = cls(path) File "/usr/lib/python2.6/site-packages/gofer/agent/config.py", line 68, in __init__ fp = Reader(path) File "/usr/lib/python2.6/site-packages/gofer/agent/config.py", line 375, in __init__ self.lines = self.__post(bfr.split('\n')) File "/usr/lib/python2.6/site-packages/gofer/agent/config.py", line 404, in __post for ln in self.__import(ln): File "/usr/lib/python2.6/site-packages/gofer/agent/config.py", line 421, in __import imported, vdict = imp() File "/usr/lib/python2.6/site-packages/gofer/agent/config.py", line 327, in __call__ imported[self.section][k] = v File "/usr/lib/python2.6/site-packages/iniparse/ini.py", line 468, in __getitem__ return self._sections[key] KeyError: 'cds' Expected results: Additional info:
On older versions of iniparse (< 0.4) __getitem__() raises KeyError instead of working like __getattr__(). Fixed in gofer 0.30.
Note: This only fails on RHEL 5/6
Fixed in build 0.163.
[root@rhui-cds1 init.d]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.0 (Santiago) [root@rhui-cds1 init.d]# rpm -qav | grep -e pulp-cds -e gofer python-gofer-0.33-1.el6.noarch gofer-0.33-1.el6.noarch pulp-cds-0.0.171-1.el6.noarch [root@rhui-cds1 init.d]# service goferd restart Stopping goferd [ OK ] Starting goferd [ OK ] [root@rhui-cds1 init.d]# ll /var/log/pulp-cds/gofer.log -rw-r--r--. 1 root root 7761 May 5 07:45 /var/log/pulp-cds/gofer.log
Closing with Community Release 15 pulp-0.0.223-4.