Bug 1006726 - pcs resource describe: Unable to parse xml for: VirtualDomain
Summary: pcs resource describe: Unable to parse xml for: VirtualDomain
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Chris Feist
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-11 07:55 UTC by michal novacek
Modified: 2014-06-17 23:57 UTC (History)
3 users (show)

Fixed In Version: pcs-0.9.91-2.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 10:54:05 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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