fence_vmware_soap fails with a python exception "Permission denied: '/tmp/suds'" when executed by fenced, but not by fence_node, in RHEL 6 cluster

Solution In Progress - Updated -

Issue

  • fence_vmware_soap fails with a python exception captured by abrtd when executed by fenced, but works with fence_node. The backtrace captured by abrtd shows:
cache.py:246:clear:OSError: [Errno 13] Permission denied: '/tmp/suds'

Traceback (most recent call last):
  File "/usr/sbin/fence_vmware_soap", line 204, in <module>
    main()
  File "/usr/sbin/fence_vmware_soap", line 189, in main
    conn = soap_login(options)
  File "/usr/sbin/fence_vmware_soap", line 24, in soap_login
    conn = Client(url + "/vimService.wsdl")
  File "/usr/lib/python2.6/site-packages/suds/client.py", line 109, in __init__
    options.cache = ObjectCache(days=1)
  File "/usr/lib/python2.6/site-packages/suds/cache.py", line 145, in __init__
    self.checkversion()
  File "/usr/lib/python2.6/site-packages/suds/cache.py", line 278, in checkversion
    self.clear()
  File "/usr/lib/python2.6/site-packages/suds/cache.py", line 246, in clear
    for fn in os.listdir(self.location):
OSError: [Errno 13] Permission denied: '/tmp/suds'

Local variables in innermost frame:
self: <suds.cache.ObjectCache instance at 0x2659050>
Mar 13 15:48:40 node1 fenced[5818]: fencing node node2
Mar 13 15:48:41 node1 abrt: detected unhandled Python exception in '/usr/sbin/fence_vmware_soap'
Mar 13 15:48:41 node1: New client connected
Mar 13 15:48:41 node1 abrtd: Directory 'pyhook-2013-03-13-15:48:41-9688' creation detected
Mar 13 15:48:41 node1 abrt-server[9689]: Saved Python crash dump of pid 9688 to /var/spool/abrt/pyhook-2013-03-13-15:48:41-9688
Mar 13 15:48:41 node1 fenced[5818]: fence rhel63cl-y dev 0.0 agent fence_vmware_soap result: error from agent
Mar 13 15:48:41 node1 fenced[5818]: fence rhel63cl-y failed
Mar 13 15:48:44 node1 fenced[5818]: fencing node rhel63cl-y
Mar 13 15:48:44 node1 abrt: detected unhandled Python exception in '/usr/sbin/fence_vmware_soap'

Environment

  • Red Hat Enterprise Linux (RHEL) 6 with the High Availability Add On
  • One or more nodes configured with fence_vmware_soap as the fence agent
  • SELinux in enforcing mode

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content