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
luci
and there was a typo with cluster name (testclus
). -
For consistencies sake, we renamed the cluster name in
/etc/cluster/cluster.conf
totestcluster
and incremented theconfig_version
and 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
luci
gui, 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, tools, and much more.