You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jun Zhang (JIRA)" <ji...@apache.org> on 2015/04/09 04:04:13 UTC

[jira] [Created] (AMBARI-10410) Server refused to accept agent due to agentOsType

Jun Zhang created AMBARI-10410:
----------------------------------

             Summary: Server refused to accept agent due to agentOsType
                 Key: AMBARI-10410
                 URL: https://issues.apache.org/jira/browse/AMBARI-10410
             Project: Ambari
          Issue Type: Bug
          Components: ambari-agent
    Affects Versions: 1.7.0
         Environment: Server OS Type: centos linux
Agent OS Type: centos linux
            Reporter: Jun Zhang
             Fix For: 1.7.0


When adding a new host to the cluster, the server refused to accept the agent registration with following error logs:

16:05:41,438  WARN [qtp899098054-67] HeartBeatHandler:646 - Received registration request from host with not supported os type, hostname=10.1
49.27.95, serverOsType=redhat6, agentOsType=centos linux6

Both the agent and the server have the same OsType "centos linux". While the server converts it to os family "redhat", the agent doesn't, as you can see from the log. The problem is the server only accepts the following osTypes:

private static final List<String> ALL_SUPPORTED_OS = Arrays.asList(
      "centos5", "redhat5", "centos6", "redhat6", "oraclelinux5",
      "oraclelinux6", "suse11", "sles11", "ubuntu12");

To fix this, we either have to add "centos linux" to the ALL_SUPPORTED_OS list or convert it to "redhat" family on the agent side.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)