Red Hat Bugzilla – Bug 902460
traceback on invalid data supplied on command line
Last modified: 2013-11-21 06:50:58 EST
Description of problem: $ pcs resource create dummystateful nonsense op monitor="5s" Traceback (most recent call last): File "/usr/sbin/pcs", line 87, in <module> main(sys.argv[1:]) File "/usr/sbin/pcs", line 69, in main resource.resource_cmd(argv) File "/usr/lib/python2.6/site-packages/pcs/resource.py", line 46, in resource_cmd resource_create(res_id, res_type, ra_values, op_values) File "/usr/lib/python2.6/site-packages/pcs/resource.py", line 218, in resource_create op_attributes = convert_args_to_operations(op_values, ra_id) File "/usr/lib/python2.6/site-packages/pcs/resource.py", line 459, in convert_args_to_operations op_attrs.append(("id",ra_id+"-"+a+"-"+b)) UnboundLocalError: local variable 'a' referenced before assignment Version-Release number of selected component (if applicable): pcs-0.9.26-9.el6.noarch How reproducible: always Steps to Reproduce: 1. pcs resource create dummystateful nonsense op monitor="5s" 2. 3. Actual results: traceback Expected results: error message with complaint what it does not like (if possible). Exit code > 0. Additional info:
Fixed upstream: https://github.com/feist/pcs/commit/18978481c7f1c59b24f8af392d07ac7f5db63d6c
[root@ask-02 ~]# pcs resource create dummystateful nonsense op monitor="5s" Error: Unable to create resource 'nonsense', it is not installed on this system (use --force to override)
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1633.html