Bug 695481 - CDS load fails with iniparse exception
Summary: CDS load fails with iniparse exception
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: nodes
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: Sprint 22
Assignee: Jeff Ortel
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: pulp-verified
TreeView+ depends on / blocked
 
Reported: 2011-04-11 20:25 UTC by Jeff Ortel
Modified: 2011-08-16 14:01 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:01:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Jeff Ortel 2011-04-11 20:25:39 UTC
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:

Comment 1 Jeff Ortel 2011-04-11 20:36:58 UTC
On older versions of iniparse (< 0.4) __getitem__() raises KeyError instead of working like __getattr__().

Fixed in gofer 0.30.

Comment 2 Jeff Ortel 2011-04-11 20:37:41 UTC
Note: This only fails on RHEL 5/6

Comment 3 Jay Dobies 2011-04-13 19:22:56 UTC
Fixed in build 0.163.

Comment 4 Kedar Bidarkar 2011-05-12 14:56:26 UTC
[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

Comment 5 Preethi Thomas 2011-08-16 14:01:55 UTC
Closing with Community Release 15

pulp-0.0.223-4.


Note You need to log in before you can comment on or make changes to this bug.