Bug 1006726

Summary: pcs resource describe: Unable to parse xml for: VirtualDomain
Product: Red Hat Enterprise Linux 7 Reporter: michal novacek <mnovacek>
Component: pcsAssignee: Chris Feist <cfeist>
Status: CLOSED CURRENTRELEASE QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: agk, cluster-maint, rsteiger
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.9.91-2.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 10:54:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description michal novacek 2013-09-11 07:55:23 UTC
Description of problem:
Unable to print paramaters for resource ocf:heartbeat:VirtualDomain

Version-Release number of selected component (if applicable):
resource-agents-3.9.5-12.el7.x86_64

Steps to Reproduce:
1. pcs resource describe VirtualDomain

Actual results: error printed

Expected results: help text printed

Additional info:

# pcs resource list VirtualDomain
ocf:heartbeat:VirtualDomain

# pcs resource describe VirtualDomain
Resource options for: ocf:heartbeat:VirtualDomain
Error: Unable to parse xml for: VirtualDomain

Comment 2 David Vossel 2013-09-13 21:03:46 UTC
This can be fixed in pcs with the following patch.

-------------------
diff --git a/pcs/utils.py b/pcs/utils.py
index 35f2a73..c263901 100644
--- a/pcs/utils.py
+++ b/pcs/utils.py
@@ -543,7 +543,7 @@ def get_metadata(resource_agent_script):
     if (not os.path.isfile(resource_agent_script)) or (not os.access(resource_agent_script, os.X_OK)):
         return False
 
-    (metadata, retval) = run([resource_agent_script, "meta-data"])
+    (metadata, retval) = run([resource_agent_script, "meta-data"], True)
     if retval == 0:
         return metadata
     else:

Comment 7 Ludek Smid 2014-06-13 10:54:05 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.