You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Chris mildebrandt (JIRA)" <ji...@apache.org> on 2013/12/10 01:34:07 UTC

[jira] [Updated] (AMBARI-4023) Server returns HTTP 200 on certain operations when the agent is no longer running

     [ https://issues.apache.org/jira/browse/AMBARI-4023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris mildebrandt updated AMBARI-4023:
--------------------------------------

    Description: 
An agent on one of my machines died. When I tried to use the REST services to start a host component, the service returned an HTTP code of 200:

curl -i -X PUT -d '{"HostRoles":{"state":"INSTALL"}}' --user admin:admin "http://hadoop1.robinsystems.com:8080/api/v1/clusters/cl1/hosts/hadoop5.robinsystems.com/host_components/GANGLIA_MONITOR"

No operation has been done since the agent has lost connection. Here are the relevant server log entries:

12:24:02,319  WARN [Thread-2] HeartbeatMonitor:123 - Heartbeat lost from host hadoop5.robinsystems.com
12:24:04,686  INFO [qtp1340276317-184] AmbariLocalUserDetailsService:62 - Loading user by name: admin
12:24:04,690  INFO [qtp1340276317-184] AmbariManagementControllerImpl:3123 - Received a updateHostComponent request, clusterName=cl1, serviceName=GANGLIA, componentName=GANGLIA_MONITOR, hostname=hadoop5.robinsystems.com, request={ clusterName=cl1, serviceName=GANGLIA, componentName=GANGLIA_MONITOR, hostname=hadoop5.robinsystems.com, desiredState=INSTALLED, desiredStackId=null}  
12:24:04,694  INFO [qtp1340276317-184] AmbariManagementControllerImpl:2040 - Command is not created for servicecomponenthost , clusterName=cl1, clusterId=2, serviceName=GANGLIA, componentName=GANGLIA_MONITOR, hostname=hadoop5.robinsystems.com, hostState=HEARTBEAT_LOST, targetNewState=INSTALLED  
12:24:08,966  INFO [Thread-22] ActionScheduler:309 - Host:hadoop5.robinsystems.com, role:GANGLIA_MONITOR, actionId:8-1 timed out  

I would expect an error since it's unable to perform the operation.

  was:
An agent on one of my machines died. When I tried to use the REST services to start a host component, the service returned an HTTP code of 200. Though nothing has been done since the agent has lost connection. Here are the relevant server log entries:

12:24:02,319  WARN [Thread-2] HeartbeatMonitor:123 - Heartbeat lost from host hadoop5.robinsystems.com
12:24:04,686  INFO [qtp1340276317-184] AmbariLocalUserDetailsService:62 - Loading user by name: admin
12:24:04,690  INFO [qtp1340276317-184] AmbariManagementControllerImpl:3123 - Received a updateHostComponent request, clusterName=cl1, serviceName=GANGLIA, componentName=GANGLIA_MONITOR, hostname=hadoop5.robinsystems.com, request={ clusterName=cl1, serviceName=GANGLIA, componentName=GANGLIA_MONITOR, hostname=hadoop5.robinsystems.com, desiredState=INSTALLED, desiredStackId=null}  
12:24:04,694  INFO [qtp1340276317-184] AmbariManagementControllerImpl:2040 - Command is not created for servicecomponenthost , clusterName=cl1, clusterId=2, serviceName=GANGLIA, componentName=GANGLIA_MONITOR, hostname=hadoop5.robinsystems.com, hostState=HEARTBEAT_LOST, targetNewState=INSTALLED  
12:24:08,966  INFO [Thread-22] ActionScheduler:309 - Host:hadoop5.robinsystems.com, role:GANGLIA_MONITOR, actionId:8-1 timed out  

I would expect an error since it's unable to perform the operation.


> Server returns HTTP 200 on certain operations when the agent is no longer running
> ---------------------------------------------------------------------------------
>
>                 Key: AMBARI-4023
>                 URL: https://issues.apache.org/jira/browse/AMBARI-4023
>             Project: Ambari
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.4.1
>         Environment: CentOS 6.4
>            Reporter: Chris mildebrandt
>
> An agent on one of my machines died. When I tried to use the REST services to start a host component, the service returned an HTTP code of 200:
> curl -i -X PUT -d '{"HostRoles":{"state":"INSTALL"}}' --user admin:admin "http://hadoop1.robinsystems.com:8080/api/v1/clusters/cl1/hosts/hadoop5.robinsystems.com/host_components/GANGLIA_MONITOR"
> No operation has been done since the agent has lost connection. Here are the relevant server log entries:
> 12:24:02,319  WARN [Thread-2] HeartbeatMonitor:123 - Heartbeat lost from host hadoop5.robinsystems.com
> 12:24:04,686  INFO [qtp1340276317-184] AmbariLocalUserDetailsService:62 - Loading user by name: admin
> 12:24:04,690  INFO [qtp1340276317-184] AmbariManagementControllerImpl:3123 - Received a updateHostComponent request, clusterName=cl1, serviceName=GANGLIA, componentName=GANGLIA_MONITOR, hostname=hadoop5.robinsystems.com, request={ clusterName=cl1, serviceName=GANGLIA, componentName=GANGLIA_MONITOR, hostname=hadoop5.robinsystems.com, desiredState=INSTALLED, desiredStackId=null}  
> 12:24:04,694  INFO [qtp1340276317-184] AmbariManagementControllerImpl:2040 - Command is not created for servicecomponenthost , clusterName=cl1, clusterId=2, serviceName=GANGLIA, componentName=GANGLIA_MONITOR, hostname=hadoop5.robinsystems.com, hostState=HEARTBEAT_LOST, targetNewState=INSTALLED  
> 12:24:08,966  INFO [Thread-22] ActionScheduler:309 - Host:hadoop5.robinsystems.com, role:GANGLIA_MONITOR, actionId:8-1 timed out  
> I would expect an error since it's unable to perform the operation.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)