ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dai Xiang <xiang....@sky-data.cn>
Subject register ok in log but web fail
Date Fri, 12 Jan 2018 09:40:05 GMT
Hi!

I met a confused issue since i do a typo:

I add a host using ip, and the log is right but web shows it failed:

INFO 2018-01-12 09:36:12,235 main.py:437 - Connecting to Ambari server at https://172.17.0.2:8440
(172.17.0.2)
INFO 2018-01-12 09:36:12,236 NetUtil.py:70 - Connecting to https://172.17.0.2:8440/ca
INFO 2018-01-12 09:36:12,291 main.py:447 - Connected to Ambari server 172.17.0.2
INFO 2018-01-12 09:36:12,292 hostname.py:67 - agent:hostname_script configuration not defined
thus read hostname 'agent' using socket.getfqdn().
INFO 2018-01-12 09:36:12,292 threadpool.py:58 - Started thread pool with 3 core threads and
20 maximum threads
WARNING 2018-01-12 09:36:12,293 AlertSchedulerHandler.py:280 - [AlertScheduler] /var/lib/ambari-agent/cache/alerts/definitions.json
not found or invalid. No alerts will be scheduled until registration occurs.
INFO 2018-01-12 09:36:12,293 AlertSchedulerHandler.py:175 - [AlertScheduler] Starting <ambari_agent.apscheduler.scheduler.Scheduler
object at 0x184e8d0>; currently running: False
INFO 2018-01-12 09:36:14,300 hostname.py:106 - Read public hostname 'agent' using socket.getfqdn()
INFO 2018-01-12 09:36:14,303 Hardware.py:48 - Initializing host system information.
INFO 2018-01-12 09:36:14,346 Hardware.py:176 - Some mount points were ignored: /dev, /sys/fs/cgroup,
/etc/hosts, /dev/shm, /run, /run/user/0
INFO 2018-01-12 09:36:14,368 hostname.py:67 - agent:hostname_script configuration not defined
thus read hostname 'agent' using socket.getfqdn().
INFO 2018-01-12 09:36:14,372 Facter.py:202 - Directory: '/etc/resource_overrides' does not
exist - it won't be used for gathering system resources.
INFO 2018-01-12 09:36:14,378 Hardware.py:54 - Host system information: {'kernel': 'Linux',
'domain': '', 'physicalprocessorcount': 4, 'kernelrelease': '4.8.0-59-generic', 'uptime_days':
'0', 'memorytotal': 8066540, 'swapfree': '7.85 GB', 'memorysize': 8066540, 'osfamily': 'redhat',
'swapsize': '7.90 GB', 'processorcount': 4, 'netmask': '255.255.0.0', 'timezone': 'UTC', 'hardwareisa':
'x86_64', 'memoryfree': 168340, 'operatingsystem': 'centos', 'kernelmajversion': '4.8', 'kernelversion':
'4.8.0', 'macaddress': '02:42:AC:11:00:03', 'operatingsystemrelease': '7.2.1511', 'ipaddress':
'172.17.0.3', 'hostname': 'agent', 'uptime_hours': '3', 'fqdn': 'agent', 'id': 'root', 'architecture':
'x86_64', 'selinux': False, 'mounts': [{'available': '15304824', 'used': '72398584', 'percent':
'83%', 'device': 'none', 'mountpoint': '/', 'type': 'aufs', 'size': '92442272'}], 'hardwaremodel':
'x86_64', 'uptime_seconds': '13434', 'interfaces': 'eth0,lo'}
INFO 2018-01-12 09:36:14,450 Controller.py:170 - Registering with agent (172.17.0.3) (agent='{"hardwareProfile":
{"kernel": "Linux", "domain": "", "physicalprocessorcount": 4, "kernelrelease": "4.8.0-59-generic",
"uptime_days": "0", "memorytotal": 8066540, "swapfree": "7.85 GB", "memorysize": 8066540,
"osfamily": "redhat", "swapsize": "7.90 GB", "processorcount": 4, "netmask": "255.255.0.0",
"timezone": "UTC", "hardwareisa": "x86_64", "memoryfree": 168340, "operatingsystem": "centos",
"kernelmajversion": "4.8", "kernelversion": "4.8.0", "macaddress": "02:42:AC:11:00:03", "operatingsystemrelease":
"7.2.1511", "ipaddress": "172.17.0.3", "hostname": "agent", "uptime_hours": "3", "fqdn": "agent",
"id": "root", "architecture": "x86_64", "selinux": false, "mounts": [{"available": "15304824",
"used": "72398584", "percent": "83%", "device": "none", "mountpoint": "/", "type": "aufs",
"size": "92442272"}], "hardwaremodel": "x86_64", "uptime_seconds": "13434", "interfaces":
"eth0,lo"}, "currentPingPort": 8670, "prefix": "/var/lib/ambari-agent/data", "agentVersion":
"2.6.0.0", "agentEnv": {"transparentHugePage": "", "hostHealth": {"agentTimeStampAtReporting":
1515749774448, "activeJavaProcs": [], "liveServices": [{"status": "Unhealthy", "name": "ntpd
or chronyd", "desc": "\\u25cf ntpd.service\\n   Loaded: not-found (Reason: No such file or
directory)\\n   Active: inactive (dead)\\n\\u25cf chronyd.service\\n   Loaded: not-found (Reason:
No such file or directory)\\n   Active: inactive (dead)"}]}, "reverseLookup": true, "alternatives":
[], "hasUnlimitedJcePolicy": null, "umask": "18", "firewallName": "iptables", "stackFoldersAndFiles":
[], "existingUsers": [], "firewallRunning": false}, "timestamp": 1515749774379, "hostname":
"agent", "responseId": -1, "publicHostname": "agent"}')
INFO 2018-01-12 09:36:14,451 NetUtil.py:70 - Connecting to https://172.17.0.2:8440/connection_info
INFO 2018-01-12 09:36:14,510 security.py:93 - SSL Connect being called.. connecting to the
server
INFO 2018-01-12 09:36:14,563 security.py:60 - SSL connection established. Two-way SSL authentication
is turned off on the server.
INFO 2018-01-12 09:36:14,577 Controller.py:196 - Registration Successful (response id = 0)
INFO 2018-01-12 09:36:14,577 AmbariConfig.py:316 - Updating config property (agent.check.remote.mounts)
with value (false)
INFO 2018-01-12 09:36:14,577 AmbariConfig.py:316 - Updating config property (agent.auto.cache.update)
with value (true)
INFO 2018-01-12 09:36:14,577 AmbariConfig.py:316 - Updating config property (java.home) with
value (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/jre)
INFO 2018-01-12 09:36:14,577 AmbariConfig.py:316 - Updating config property (agent.check.mounts.timeout)
with value (0)
WARNING 2018-01-12 09:36:14,577 AlertSchedulerHandler.py:123 - There are no alert definition
commands in the heartbeat; unable to update definitions
INFO 2018-01-12 09:36:14,577 Controller.py:516 - Registration response from 172.17.0.2 was
OK  <===
INFO 2018-01-12 09:36:14,577 Controller.py:521 - Resetting ActionQueue...
INFO 2018-01-12 09:36:24,579 Controller.py:304 - Heartbeat (response id = 0) with server is
running...
INFO 2018-01-12 09:36:24,580 Controller.py:311 - Building heartbeat message
INFO 2018-01-12 09:36:24,585 Heartbeat.py:90 - Adding host info/state to heartbeat message.
INFO 2018-01-12 09:36:24,684 logger.py:75 - Testing the JVM's JCE policy to see it if supports
an unlimited key length.
INFO 2018-01-12 09:36:24,799 Hardware.py:176 - Some mount points were ignored: /, /dev, /sys/fs/cgroup,
/etc/hosts, /dev/shm, /run, /run/user/0
INFO 2018-01-12 09:36:24,800 Controller.py:320 - Sending Heartbeat (id = 0)
INFO 2018-01-12 09:36:24,802 Controller.py:333 - Heartbeat response received (id = 1)
INFO 2018-01-12 09:36:24,802 Controller.py:342 - Heartbeat interval is 10 seconds
INFO 2018-01-12 09:36:24,803 Controller.py:380 - Updating configurations from heartbeat
INFO 2018-01-12 09:36:24,803 Controller.py:389 - Adding cancel/execution commands
INFO 2018-01-12 09:36:24,803 Controller.py:406 - Adding recovery commands
INFO 2018-01-12 09:36:24,803 Controller.py:475 - Waiting 9.9 for next heartbeat
INFO 2018-01-12 09:36:34,703 Controller.py:482 - Wait for next heartbeat over

So does it means that i get a bug or i miss something?
-- 
Best Regards
Dai Xiang

Mime
View raw message