ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jun Zhang (JIRA)" <>
Subject [jira] [Created] (AMBARI-10410) Server refused to accept agent due to agentOsType
Date Thu, 09 Apr 2015 02:04:13 GMT
Jun Zhang created AMBARI-10410:

             Summary: Server refused to accept agent due to agentOsType
                 Key: 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

View raw message