Bug 1441447
Summary: | Error Moving Cluster Resources | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | vlad.socaciu |
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> |
Status: | CLOSED DUPLICATE | QA Contact: | cluster-qe <cluster-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.2 | CC: | abeekhof, cfeist, cluster-maint, idevat, omular, rsteiger, tojeline |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-04-26 10:59:15 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
vlad.socaciu
2017-04-12 00:26:39 UTC
Reassigning to pcs component. I don't think it's related to the specific script here; it looks like something internal to pcs, possibly in combination with some environmental settings here. [vm-rhel72-1 ~] $ rpm -q pcs pcs-0.9.157-1.el7.x86_64 [vm-rhel72-1 ~] $ pcs cluster cib cib.xml [vm-rhel72-1 ~] $ pcs cluster cib-push cib.xml --wait=300 CIB updated Traceback (most recent call last): File "/usr/sbin/pcs", line 9, in <module> load_entry_point('pcs==0.9.157', 'console_scripts', 'pcs')() File "/usr/lib/python2.7/site-packages/pcs/app.py", line 191, in main cmd_map[command](argv) File "/usr/lib/python2.7/site-packages/pcs/cluster.py", line 157, in cluster_cmd cluster_push(argv) File "/usr/lib/python2.7/site-packages/pcs/cluster.py", line 1355, in cluster_push output, retval = utils.run(cmd) File "/usr/lib/python2.7/site-packages/pcs/utils.py", line 1000, in run universal_newlines=(not PYTHON2 and not binary_output) File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception TypeError: coercing to Unicode: need string or buffer, int found The problem is with the --wait flag: it is internally converted to an int and then this int is put into subprocess.Popen. Support for --wait in the cib-push command has been added in pcs 0.9.152 and the bug was introduced in the very same patch. Therefore this is not a regression. Before pcs 0.9.152 the --wait flag was completely ignored in the cib-push command. *** This bug has been marked as a duplicate of bug 1422667 *** |