Cluster renaming not reflected properly in luci gui/cannot add GFS2 filesystem
Issue
-
During the cluster configuration, it was noted that the cluster was initially setup via
luciand there was a typo with cluster name (testclus). -
For consistencies sake, we renamed the cluster name in
/etc/cluster/cluster.conftotestclusterand incremented theconfig_versionand things seemed good. However, now we are unable to add a new GFS2 resource to cluster and following errors are observed in/var/log/luci/luci.log:10:28:18,063 INFO [luci.controllers.cluster] User "ricci" Created global resource "resource1" in cluster "testclus" 10:28:18,065 ERROR [luci.lib.db_helpers] Database object for cluster "testclus" not found Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/luci/lib/db_helpers.py", line 30, in get_cluster_db_obj db_obj = DBSession.query(Cluster).filter_by(name=unicode(cluster_name)).one() File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/query.py", line 1257, in one raise orm_exc.NoResultFound("No row was found for one()") NoResultFound: No row was found for one() Error - <type 'exceptions.KeyError'>: u'pg01' [...] -
It was also noticed that within the
lucigui, it's still going by the old misspelled cluster name, and this seems to be causing trouble in adding resources. What's the best way to fix this?
Environment
- Red Hat Enterprise Linux Server 6 (with the High Availability and Resilient Storage Add Ons)
- Conga/Luci
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
