Red Hat Bugzilla – Bug 1198640
[WebUI] spaces not allowed in resource agent options fields
Last modified: 2015-11-19 04:36:02 EST
Description of problem: Unable to enter string containing spaces into resource agent optional arguments fields. Tested with Apache RA and 'options' field (extra CLI options to pass to httpd). Version-Release number of selected component (if applicable): pcs-0.9.137-13.el7.x86_64 How reproducible: always Steps to Reproduce: 1. open pcs web ui with running cluster, go to resources tab 2. click add, select 'ocf:heartbeat:apache' resource 3. try to set 'options' in 'optional arguments' section to eg. '-D name -d /server_root' Actual results: Unable to input space character into any RA optional argument field, even when it should be possible/allowed (like extra apache CLI options). Expected results: Be able to enter strings containing spaces into applicable fields. Additional info: none
Cf. http://clusterlabs.org/pipermail/users/2015-May/000403.html
Fixed in a complex rewrite of the resources page in the web UI, patches in bz1189857 Before Fix: [root@rh71-node1 ~]# rpm -q pcs pcs-0.9.142-2.el7.x86_64 It is not possible to type a space character in a resource's attribute value in Optional Arguments form. After Fix: [root@rh71-node1:~]# rpm -q pcs pcs-0.9.143-1.el7.x86_64 It is possible to type a space character in a resource's attribute value in Optional Arguments form. The value is displayed correctly in the web UI after the form is submitted.
upstream patch: https://github.com/feist/pcs/commit/c737d2795c3c62d3353732c2b0c826e795453d62
After Fix: [root@rh71-node1:~]# rpm -q pcs pcs-0.9.143-9.el7.x86_64 It is possible to enter a space character into an attribute value input in the "Add resource" dialog. The attribute value of the created resource is correct - the same as entered.
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. https://rhn.redhat.com/errata/RHSA-2015-2290.html