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

Implement host recovery - backend changes

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • ambari-server
    • None

    Description

      Problem Statement:
      Allow user to bring back a host/VM that is dead with the same hostname and allow an action to recover the state of the host to what it was before the incident

      Solution:

      • User gets the host/VM back with same hostname (different IP address is ok)
      • The UI state would be INSTALLED for all host components as soon as the host starts heart beating
      • User will initiate a Recover user action that will do the following (batch operation):
        • Move the state of the components back to INIT (allow this state transition)
          curl -H "X-Requested-By:ambari" -u admin:admin -i -X PUT -d {"RequestInfo":{"context":"Reset All Host Components","operation_level":{"level":"HOST","cluster_name":"c1","host_names":"c6401.ambari.apahe.org"},"query":"HostRoles/component_name.in(DATANODE,NODEMANAGER,METRICS_MONITOR)"},"Body":{"HostRoles":{"state":"INIT"}}} http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/hosts/c6401.ambari.apache.org/host_components
          
        • KERBEROS only steps:
          • Issue an INSTALL operation on KERBEROS_CLIENT hostcomponent
          • Issue PUT request
            PUT http://server:8080/api/v1/clusters/cl1?regenerate_keytabs=all&regenerate_hosts=recover_hostname1,recover_hostname2,...&ignore_config_updates=true
            
            {"Clusters":{"security_type":"KERBEROS"}}
            
        • Issue an INSTALL operation on all hostcomponents (Same call as above with state = "INSTALLED")

      Attachments

        1. AMBARI-21868-trunk.patch
          30 kB
          Eugene Chekanskiy
        2. AMBARI-21868-branch-2.6.patch
          28 kB
          Eugene Chekanskiy
        3. AMBARI-21868.patch
          2 kB
          Dmytro Sen
        4. AMBARI-21868.patch
          11 kB
          Siddharth Wagle
        5. AMBARI-21868_2.patch
          5 kB
          Dmytro Sen

        Issue Links

          Activity

            People

              echekanskiy Eugene Chekanskiy
              dsen Dmytro Sen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: