glassfish
  1. glassfish
  2. GLASSFISH-17273

asadmin delete-cluster does not delete elastic-service

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: elasticity
    • Labels:
      None

      Description

      asadmin delete-cluster does not delete elastic-service config so subsequent create-cluster with the same name will fail with "A ElasticService instance with a "clusterA" name already exist in the configuration|"

      asadmin create-cluster clusterA
      asadmin delete-cluster clusterA

      I still see the following elastic-service in the domain.xml

      <elastic-services>
      <elastic-service name="clusterA">
      <metric-gatherers>
      <metric-gatherer name="memory"></metric-gatherer>
      </metric-gatherers>
      <actions>
      <scale-up-action name="scale-up-action"></scale-up-action>
      </actions>
      </elastic-service>
      </elastic-services>

      and subsequent create-cluster clusterA will fail

      [#|2011-09-06T14:02:51.624-0700|SEVERE|glassfish3.2|javax.enterprise.system.tools.admin.org.glassfish.config.support|_ThreadID=12;_ThreadName=Thread-2;|A ElasticService instance with a "clusterA" name already exist in the configuration|#]

      [#|2011-09-06T14:02:51.626-0700|SEVERE|glassfish3.2|javax.enterprise.system.tools.admin.org.glassfish.config.support|_ThreadID=12;_ThreadName=Thread-2;|Exception while adding the new configuration : A ElasticService instance with a "clusterA" name already exist in the configuration|#]

      [#|2011-09-06T14:02:51.626-0700|SEVERE|glassfish3.2|javax.enterprise.system.tools.admin.org.glassfish.config.support|_ThreadID=12;_ThreadName=Thread-2;|Exception while adding the new configuration : Can not create elastic config info|#]

        Activity

        Hide
        Tom Mueller added a comment -

        Increasing the priority of this issue because it is causing the admin devtests to fail.

        Show
        Tom Mueller added a comment - Increasing the priority of this issue because it is causing the admin devtests to fail.
        Hide
        carlavmott added a comment -

        I moved the elasticity elements out of the cluster element since it did not belong there.

        Show
        carlavmott added a comment - I moved the elasticity elements out of the cluster element since it did not belong there.

          People

          • Assignee:
            carlavmott
            Reporter:
            Amy Roh
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: