Jayush Luniya created AMBARI-6361:
-------------------------------------
Summary: Component status cannot be changed from INSTALL_FAIL to
Disabled state
Key: AMBARI-6361
URL: https://issues.apache.org/jira/browse/AMBARI-6361
Project: Ambari
Issue Type: Bug
Components: controller
Affects Versions: 1.6.1
Reporter: Jayush Luniya
Fix For: 1.7.0
If Component is in INSTALL_FAILED state, via api call, it cannot be changed to
DISABLED state
{code}
[root@amb-m20-ha2-1 ~]# curl -u admin:admin -H "X-Requested-By:ambari" -i -X
PUT -d '{"RequestInfo":{"context":"NN
maintenance"},"Body":{"HostRoles":{"state":"DISABLED"}}}'
http://172.18.145.221:8080/api/v1/clusters/cl1/hosts/amb-m20-ha2-1.cs1cloud.internal/host_components/NAMENODE
HTTP/1.1 500 Server Error
Set-Cookie: AMBARISESSIONID=vjn9z1hzcj3vo442rfczq4i3;Path=/
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 349
Server: Jetty(7.6.7.v20120910)
{
"status" : 500,
"message" : "org.apache.ambari.server.controller.spi.SystemException: An
internal system exception occurred: Invalid transition for
servicecomponenthost, clusterName=cl1, clusterId=2, serviceName=HDFS,
componentName=NAMENODE, hostname=amb-m20-ha2-1.cs1cloud.internal,
currentState=INSTALL_FAILED, newDesiredState=DISABLED"
}
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)