Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-19990

Unable to delete config group.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • ambari-server
    • None

    Description

      Currently deleting config group from Ambari does not work.

      Deleting and saving will show it is gone however on checking again it will show up with name Deleted.

      Following can be seen in ambari-server.log if trying to rename deleted config group:

      org.apache.ambari.server.AmbariException: Config group not found, clusterName = xyz, groupId = 2

      Workaround is to delete all references of group id from ambari database manually.

      Backup ambari-server database and run below queries.

      delete from ambari."serviceconfighosts" where service_config_id in (select service_config_id from serviceconfig where group_id=2);

      delete from ambari."serviceconfigmapping" where service_config_id in (select service_config_id from serviceconfig where group_id=2);

      delete from ambari.serviceconfig where group_id=2;

      Here 2 is group id for which ambari is throwing error.

      Restart ambari-server. It will not display Deleted config group anymore.

      Rahul

      Attachments

        Activity

          People

            Unassigned Unassigned
            rahulp Rahul Pathak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: