-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/39354/#review102814
-----------------------------------------------------------

Ship it!


Ship It!

- Jonathan Hurley


On Oct. 15, 2015, 2:55 p.m., Robert Levas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/39354/
> -----------------------------------------------------------
> 
> (Updated Oct. 15, 2015, 2:55 p.m.)
> 
> 
> Review request for Ambari, Jonathan Hurley, Nate Cole, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-13436
>     https://issues.apache.org/jira/browse/AMBARI-13436
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> In Enable Kerberos Wizard, after request to Kerberize cluster, when trying to 
> get logs server returns:
> ```
> {
> href: "http://c6401.ambari.apache.org:8080/api/v1/clusters/c/requests/9";,
> Requests: {
> aborted_task_count: 0,
> cluster_name: "c",
> completed_task_count: 8,
> create_time: 1443112783418,
> end_time: 1443112805735,
> exclusive: false,
> failed_task_count: 0,
> id: 9,
> inputs: null,
> operation_level: null,
> progress_percent: 100,
> queued_task_count: 0,
> request_context: "Preparing Operations",
> request_schedule: null,
> request_status: "COMPLETED",
> resource_filters: [ ],
> start_time: 1443112783459,
> task_count: 8,
> timed_out_task_count: 0,
> type: "INTERNAL_REQUEST"
> },
> tasks: [
> {
> href: 
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c/requests/9/tasks/77";,
> Tasks: {
> cluster_name: "c",
> command: "EXECUTE",
> command_detail: "Preparing Operations",
> end_time: 1443112783549,
> exit_code: 0,
> host_name: null,
> id: 77,
> request_id: 9,
> role: "AMBARI_SERVER_ACTION",
> stage_id: 0,
> start_time: 1443112783463,
> status: "COMPLETED",
> structured_out: { }
> }
> }
> ]
> }
> ```
> 
> So inputs, operation_level, request_schedule, host_name have value null. UI 
> cannot parse properly these logs and user is unable to see logs.
> 
> # Solution
> Ensure that task resouce responses have the proper hostname set in the event 
> the hostname value is null.  This will occur when the task is executed on the 
> Ambari Server host as the hostname designation for this scenario is set to 
> null. The replacement value for null is the hostname of the relelvant Ambari 
> Server.
> 
> 
> Diffs
> -----
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/ShortTaskStatus.java
>  6fe4db2 
>   
> ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
>  528d343 
> 
> Diff: https://reviews.apache.org/r/39354/diff/
> 
> 
> Testing
> -------
> 
> Manually tested. 
> 
> # Local test results:  
> Relevant tests passed. A few unrelated tests failed.
> 
> # Jenkins test results: PENDING
> 
> 
> Thanks,
> 
> Robert Levas
> 
>

Reply via email to