Bug 695481

Summary: CDS load fails with iniparse exception
Product: [Retired] Pulp Reporter: Jeff Ortel <jortel>
Component: nodesAssignee: Jeff Ortel <jortel>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: kbidarka
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 22   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 14:01:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 641987    

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.