Red Hat Bugzilla – Bug 493996
system-config-cluster parses glade widget values incorrectly
Last modified: 2016-04-26 10:39:59 EDT
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:18.104.22.168) Gecko/2009032608 Firefox/3.0.8
When using system-config-cluster the postgres and tomcat resource will not correctly assign the values from the resources widget to the associated cluster.conf field.
It appears that the ResourceHandler.py process_widgets function is pulling in the incorrect widgets entries for each of the corresponding member fields.
For example here is an incorrect cluster.conf resource that is created:
Config File: /etc/tomcat5/tomcat5.conf
Tomcat User: tomcat
Catalina Options: -Dtest.test
Catalina Base: /usr/share/tomcat5
Shutdown Wait: 30
Resulting cluster.conf Fields seen:
Steps to Reproduce:
1.Create a tomcat and postgresql resource
2.Save the the configuration
3.Review the cluster.conf created
Some of the values are associated with incorrect fields.
The glade options should be associated with correct cluster.conf field.
Patch has been created and will be attached to the bz.
Created attachment 338080 [details]
patch to fix tomcat/postgres
~~ Attention - RHEL 5.4 Beta Released! ~~
RHEL 5.4 Beta has been released! There should be a fix present in the Beta release that addresses this particular request. Please test and report back results here, at your earliest convenience. RHEL 5.4 General Availability release is just around the corner!
If you encounter any issues while testing Beta, please describe the issues you have encountered and set the bug into NEED_INFO. If you encounter new issues, please clone this bug to open a new issue and request it be reviewed for inclusion in RHEL 5.4 or a later update, if it is not of urgent severity.
Please do not flip the bug status to VERIFIED. Only post your verification results, and if available, update Verified field with the appropriate value.
Questions can be posted to this bug or your customer or partner representative.
fix verified in system-config-cluster-1.0.57-1.3, the config file is written correctly, with the correct parameters & values for tomcat in cluster.conf.
changing state back to on_qa (from verified) due to a bug report from the field, that the new packages do not contain a full fix. bug is already in needinfo for the same problem.
I just went through the resources glade file by hand, and I found the problem. All of the field names except shutdown wait are out of order. I've got a patch to fix this if it's not too late.
current fix isn't complete, not all values are written. using the info specified above, I get this in cluster.conf:
<apache __independent_subtree="1" config_file="/etc/httpd/conf/httpd.conf" httpd_options="" name="test1" server_root="/var/www/html" shutdown_wait=""/>
at least shutdown_wait is not populated in cluster.conf, after giving it a value. s-c-cluster knows its value (30) until it exits.
Sorry -- that should read system-config-cluster-1.0.57-3 above.