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

Unable to cleanly delete host using ambari 2.2 rest API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0
    • 2.2-next
    • ambari-server, blueprints
    • None
    • Cluster with every host being a container

    • Important

    Description

      I have a 7 node (7 containers) HDP 2.4 cluster with ambari 2.2

      I am trying to delete a host using the following steps -

      I am using ambari rest apis-

      1) Decommission data node and node manager on the host
      2) Stop all services running on the host
      3) Delete all services on the host
      uptill this point everything is fine
      4) Delete host using the api
      5) stop ambari-agent on the deleted host.

      The problem is in step 4 , which always gives me "server error" while trying to delete and the ambari logs gives "No Host" exception.

      Interestingly the host disappears from Ambari UI however the db is in an inconsistent state and there are alerts complaining for dead data nodes.

      Even tried the same from Ambari UI but I get the same error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kmathur Kartik Mathur
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: