[Pacemaker] crm configure error in RHEL5

Andrew Beekhof andrew at beekhof.net
Fri Jul 8 00:32:54 EDT 2011


On Thu, Jul 7, 2011 at 5:20 PM, Zhidong She <zhidong.she at gmail.com> wrote:
> Hi Guys, I installed pacemaker 1.0.11, heartbeat in my RHEL5, and when
> I tried to configure the resource, I got below error.
> Do you encounter this issue before and how to resolve?

I'm guessing your version of python-libs is to old to include
/usr/lib*/python2.*/xml/parsers/expat.py

> Appriciate your response.
>
> Br,
> Zhidong
>
>
> root at 3wbu-ucs104-1 ~]# crm configure
> Traceback (most recent call last):
>  File "/usr/sbin/crm", line 41, in ?
>    crm.main.run()
>  File "/usr/lib64/python2.4/site-packages/crm/main.py", line 243, in run
>    parse_line(levels,["configure"])
>  File "/usr/lib64/python2.4/site-packages/crm/main.py", line 123, in parse_line
>    lvl.new_level(pt[token],token)
>  File "/usr/lib64/python2.4/site-packages/crm/levels.py", line 73, in new_level
>    self.current_level = level_obj()
>  File "/usr/lib64/python2.4/site-packages/crm/ui.py", line 1293, in __init__
>    cib_factory.initialize()
>  File "/usr/lib64/python2.4/site-packages/crm/cibconfig.py", line
> 1726, in initialize
>    if not self.import_cib():
>  File "/usr/lib64/python2.4/site-packages/crm/cibconfig.py", line
> 1401, in import_cib
>    self.doc,cib = read_cib(cibdump2doc)
>  File "/usr/lib64/python2.4/site-packages/crm/xmlutil.py", line 72, in read_cib
>    doc = fun(params)
>  File "/usr/lib64/python2.4/site-packages/crm/xmlutil.py", line 53,
> in cibdump2doc
>    doc = xmlparse(p.stdout)
>  File "/usr/lib64/python2.4/site-packages/crm/xmlutil.py", line 30, in xmlparse
>    except xml.parsers.expat.ExpatError,msg:
> AttributeError: 'module' object has no attribute 'expat'
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>




More information about the Pacemaker mailing list