Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA2B018DE6 for ; Fri, 11 Dec 2015 04:30:37 +0000 (UTC) Received: (qmail 85141 invoked by uid 500); 11 Dec 2015 04:30:37 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 85103 invoked by uid 500); 11 Dec 2015 04:30:37 -0000 Mailing-List: contact dev-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 dev@ambari.apache.org Received: (qmail 85082 invoked by uid 99); 11 Dec 2015 04:30:37 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2015 04:30:37 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id C991B2932B3; Fri, 11 Dec 2015 04:30:36 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6506090272386298370==" MIME-Version: 1.0 Subject: Re: Review Request 41238: Kerberos: all ambari server host ops are broken From: "Sumit Mohanty" To: "Mahadev Konar" , "Sumit Mohanty" , "Alejandro Fernandez" , "Myroslav Papirkovskyy" , "Jonathan Hurley" , "Nate Cole" Cc: "Robert Levas" , "Ambari" Date: Fri, 11 Dec 2015 04:30:36 -0000 Message-ID: <20151211043036.1619.5050@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Sumit Mohanty" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/41238/ X-Sender: "Sumit Mohanty" References: <20151211042436.1619.15518@reviews.apache.org> In-Reply-To: <20151211042436.1619.15518@reviews.apache.org> Reply-To: "Sumit Mohanty" X-ReviewRequest-Repository: ambari --===============6506090272386298370== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/41238/#review109915 ----------------------------------------------------------- Ship it! Ship It! - Sumit Mohanty On Dec. 11, 2015, 4:24 a.m., Robert Levas wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/41238/ > ----------------------------------------------------------- > > (Updated Dec. 11, 2015, 4:24 a.m.) > > > Review request for Ambari, Alejandro Fernandez, Jonathan Hurley, Mahadev Konar, Myroslav Papirkovskyy, Nate Cole, and Sumit Mohanty. > > > Bugs: AMBARI-14327 > https://issues.apache.org/jira/browse/AMBARI-14327 > > > Repository: ambari > > > Description > ------- > > 1) Test Kerberos Client dialog shows an "n/a" entry and when you click on it, throws a JS error. See attached. The n/a appears to represent the command run on the Ambari Server itself. > 2) All Ambari server ops throw JS error. On other places in the wizard, it shows "Ambari Server Host" but that throws JS. > 3) same for regen keytabs. basically all over the place > > See attached. > > ``` > { > "Requests" : { > "aborted_task_count" : 0, > "cluster_name" : "MyCluster", > "completed_task_count" : 10, > "create_time" : 1449759400223, > "end_time" : 1449759448232, > "exclusive" : false, > "failed_task_count" : 0, > "id" : 17, > "inputs" : "{}", > "operation_level" : "CLUSTER", > "progress_percent" : 100.0, > "queued_task_count" : 0, > "request_context" : "Kerberos Service Check", > "request_schedule" : null, > "request_status" : "COMPLETED", > "resource_filters" : [ > { > "service_name" : "KERBEROS" > } > ], > "start_time" : 1449759400313, > "task_count" : 10, > "timed_out_task_count" : 0, > "type" : "COMMAND" > }, > "stages" : [ > { }, > { }, > { }, > { }, > { }, > { }, > { }, > { }, > { }, > { } > ], > "tasks" : [ > { > "Tasks" : { > "command" : "EXECUTE", > "command_detail" : "Preparing Operations", > "host_name" : null, > "id" : 153, > "request_id" : 17, > "role" : "AMBARI_SERVER_ACTION", > "status" : "COMPLETED" > } > }, > { > "Tasks" : { > "command" : "EXECUTE", > "command_detail" : "Create Principals", > "host_name" : null, > "id" : 154, > "request_id" : 17, > "role" : "AMBARI_SERVER_ACTION", > "status" : "COMPLETED" > } > }, > { > "Tasks" : { > "command" : "EXECUTE", > "command_detail" : "Create Keytabs", > "host_name" : null, > "id" : 155, > "request_id" : 17, > "role" : "AMBARI_SERVER_ACTION", > "status" : "COMPLETED" > } > }, > { > "Tasks" : { > "command" : "CUSTOM_COMMAND", > "command_detail" : "SET_KEYTAB KERBEROS/KERBEROS_CLIENT", > "host_name" : "c6402.ambari.apache.org", > "id" : 156, > "request_id" : 17, > "role" : "KERBEROS_CLIENT", > "status" : "COMPLETED" > } > }, > { > "Tasks" : { > "command" : "EXECUTE", > "command_detail" : "Finalize Operations", > "host_name" : null, > "id" : 157, > "request_id" : 17, > "role" : "AMBARI_SERVER_ACTION", > "status" : "COMPLETED" > } > }, > { > "Tasks" : { > "command" : "SERVICE_CHECK", > "command_detail" : "SERVICE_CHECK KERBEROS", > "host_name" : "c6402.ambari.apache.org", > "id" : 158, > "request_id" : 17, > "role" : "KERBEROS_SERVICE_CHECK", > "status" : "COMPLETED" > } > }, > { > "Tasks" : { > "command" : "EXECUTE", > "command_detail" : "Preparing Operations", > "host_name" : null, > "id" : 159, > "request_id" : 17, > "role" : "AMBARI_SERVER_ACTION", > "status" : "COMPLETED" > } > }, > { > "Tasks" : { > "command" : "EXECUTE", > "command_detail" : "Destroy Principals", > "host_name" : null, > "id" : 160, > "request_id" : 17, > "role" : "AMBARI_SERVER_ACTION", > "status" : "COMPLETED" > } > }, > { > "Tasks" : { > "command" : "CUSTOM_COMMAND", > "command_detail" : "REMOVE_KEYTAB KERBEROS/KERBEROS_CLIENT", > "host_name" : "c6402.ambari.apache.org", > "id" : 161, > "request_id" : 17, > "role" : "KERBEROS_CLIENT", > "status" : "COMPLETED" > } > }, > { > "Tasks" : { > "command" : "EXECUTE", > "command_detail" : "Finalize Operations", > "host_name" : null, > "id" : 162, > "request_id" : 17, > "role" : "AMBARI_SERVER_ACTION", > "status" : "COMPLETED" > } > } > ] > } > ``` > > # Solution > On the backend, convert `null` host name values to the FQDN of the Ambari server before returning response. > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/TaskResourceProvider.java 72977d5 > > Diff: https://reviews.apache.org/r/41238/diff/ > > > Testing > ------- > > Manually tested > > # Local test results: > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 59:09.415s > [INFO] Finished at: Thu Dec 10 22:55:23 EST 2015 > [INFO] Final Memory: 68M/1663M > [INFO] ------------------------------------------------------------------------ > > # Jenkins test results: PENDING > > > Thanks, > > Robert Levas > > --===============6506090272386298370==--