Description of problem: Cannot create new cluster in luci, python syntax error Version-Release number of selected component (if applicable): luci-0.11.1-5.el4 How reproducible: 100% Steps to Reproduce: 1. On a new machine start luci 2. Try to create a new cluster 3. It will generate a python error Actual results: Python error Expected results: Create the cluster Additional info: Here is the code diff from 'refried' on IRC #cluster /var/lib/luci/Extensions/HelperFunctions.py < if not os_str or os_str.find('Tikanga') != (-1) or os_str.find('Zod') != (-1) or os_str.find('Moonshine') != (-1) or os_str.find('Werewolf') != (-1) or os.str_find('Sulphur') != (-1): --- > if not os_str or os_str.find('Tikanga') != (-1) or os_str.find('Zod') != (-1) or os_str.find('Moonshine') != (-1) or os_str.find('Werewolf') != (-1) or os_str.find('Sulphur') != (-1):
Just to make the intent of the diff clear, the problem is around the check for "Sulphur." The code should read "os_str.find" instead of "os.str_find"
You can find updated packages at /mnt/redhat/brewroot/scratch/rmccabe/task_1607985 for clustermon and /mnt/redhat/brewroot/scratch/rmccabe/task_1608000 for luci and ricci
fix verified in luci-0.11.2-2.el4 clusters are created without syntax errors
*** Bug 497437 has been marked as a duplicate of this bug. ***
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-1063.html