Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 24769200CFE for ; Fri, 8 Sep 2017 22:55:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 22C8B1609D7; Fri, 8 Sep 2017 20:55:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 697361609C1 for ; Fri, 8 Sep 2017 22:55:11 +0200 (CEST) Received: (qmail 85776 invoked by uid 500); 8 Sep 2017 20:55:10 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 85767 invoked by uid 99); 8 Sep 2017 20:55:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Sep 2017 20:55:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 56CF41A7BFB for ; Fri, 8 Sep 2017 20:55:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id a8uEstB9EDHe for ; Fri, 8 Sep 2017 20:55:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 870A260CE2 for ; Fri, 8 Sep 2017 20:55:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C0E22E0EEA for ; Fri, 8 Sep 2017 20:55:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 70A6F24143 for ; Fri, 8 Sep 2017 20:55:00 +0000 (UTC) Date: Fri, 8 Sep 2017 20:55:00 +0000 (UTC) From: "Siddharth Wagle (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-21868) Implement host recovery - backend changes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Sep 2017 20:55:12 -0000 [ https://issues.apache.org/jira/browse/AMBARI-21868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Siddharth Wagle updated AMBARI-21868: ------------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) Pushed to 2.6 and trunk. > Implement host recovery - backend changes > ----------------------------------------- > > Key: AMBARI-21868 > URL: https://issues.apache.org/jira/browse/AMBARI-21868 > Project: Ambari > Issue Type: Task > Components: ambari-server > Affects Versions: 2.6.0 > Reporter: Dmytro Sen > Assignee: Eugene Chekanskiy > Priority: Blocker > Fix For: 2.6.0 > > Attachments: AMBARI-21868_2.patch, AMBARI-21868-branch-2.6.patch, AMBARI-21868.patch, AMBARI-21868.patch, AMBARI-21868-trunk.patch > > > *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) > {code} > 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 > {code} > -- KERBEROS only steps: > --- Issue an INSTALL operation on KERBEROS_CLIENT hostcomponent > --- Issue PUT request > {code} > PUT http://server:8080/api/v1/clusters/cl1?regenerate_keytabs=all®enerate_hosts=recover_hostname1,recover_hostname2,...&ignore_config_updates=true > {"Clusters":{"security_type":"KERBEROS"}} > {code} > -- Issue an INSTALL operation on all hostcomponents (Same call as above with state = "INSTALLED") -- This message was sent by Atlassian JIRA (v6.4.14#64029)