Karthik Palaniappan created AMBARI-15312:
--------------------------------------------
Summary: Agent Registration qequest doesn't match any pattern
Key: AMBARI-15312
URL: https://issues.apache.org/jira/browse/AMBARI-15312
Project: Ambari
Issue Type: Bug
Components: ambari-agent
Affects Versions: 2.1.2
Environment: $ uname -a
Linux VNODE0602 2.6.32-504.30.3.el6.centos.plus.x86_64 #1 SMP Wed Jul 15
00:52:19 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (rhel-2.6.4.0.el6_7-x86_64 u95-b00)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
This is a one node cluster.
Reporter: Karthik Palaniappan
Priority: Minor
After starting the ambari server and ambari agent, this strange log message
appears on the server.
{quote}
04 Mar 2016 15:21:58,114 WARN [qtp-ambari-agent-54] SecurityFilter:103 -
Request https://localhost:8440/ca doesn't match any pattern.
04 Mar 2016 15:21:58,114 WARN [qtp-ambari-agent-54] SecurityFilter:62 - This
request is not allowed on this port: https://localhost:8440/ca
04 Mar 2016 15:22:00,609 INFO [qtp-ambari-agent-54] HeartBeatHandler:901 -
agentOsType = centos6
04 Mar 2016 15:22:00,618 INFO [qtp-ambari-agent-54] HostImpl:285 - Received
host registration,
host=[hostname=vnode0602,fqdn=vnode0602.domain.com,domain=domain.com,architecture=x86_64,processorcount=8,physicalprocessorcount=8,osname=centos,osversion=6.6,osfamily=redhat,memory=8057612,uptime_hours=0,mounts=(available=13125148,mountpoint=/,used=3895804,percent=23%,size=17938864,device=/dev/mapper/vg_centos66-lv_root,type=ext4)(available=4028804,mountpoint=/dev/shm,used=0,percent=0%,size=4028804,device=tmpfs,type=tmpfs)(available=427928,mountpoint=/boot,used=34124,percent=8%,size=487652,device=/dev/sda1,type=ext4)]
, registrationTime=1457133720609, agentVersion=2.1.2
{quote}
The agent is making a request to an endpoint "/ca" that does not exist on the
server.
- On the agent:
https://github.com/apache/ambari/blob/branch-2.1/ambari-agent/src/main/python/ambari_agent/NetUtil.py#L105
- On the server:
https://github.com/apache/ambari/blob/branch-2.1/ambari-server/src/main/java/org/apache/ambari/server/security/SecurityFilter.java#L75
It looks like the agent should be hitting "/cert/ca" rather than just "/ca".
However, if this request fails consistently on the server side, a) why does the
server return a 200 code, and b) what's the point of the request?
Regardless of this request failing, the agent successfully registers with the
server.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)