Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1441998

Summary: Warnings thrown by hawkular agent installed via RPM on RHEL 6
Product: [JBoss] Middleware Manager Reporter: Filip Brychta <fbrychta>
Component: Agent, download agentAssignee: John Mazzitelli <mazz>
Status: CLOSED WONTFIX QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: mmahoney
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-04 15:35:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Filip Brychta 2017-04-13 09:25:00 UTC
Description of problem:
Following warnings are visible in server.log:
2017-04-13 05:12:46,728 WARN  [org.hawkular.agent.monitor.util.Util] (Hawkular WildFly Agent Full Discovery Scan-platform-1) /etc/machine-id does not exist or is unreadable
2017-04-13 05:12:46,732 WARN  [org.hawkular.agent.monitor.util.Util] (Hawkular WildFly Agent Full Discovery Scan-platform-1) /proc/self/cgroup exists but could not find a container ID in it
2017-04-13 05:17:48,093 WARN  [org.hawkular.agent.monitor.scheduler.MetricsCollector] (Hawkular-WildFly-Agent-Scheduler-Metrics-1) Unexpected error caught in MetricsCollector for endpoint [PlatformEndpointService[Endpoint[platform]:[null]]]: java.lang.UnsatisfiedLinkError: /tmp/jna-100923095/jna7956655664195997964.tmp: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /tmp/jna-100923095/jna7956655664195997964.tmp)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
	at java.lang.Runtime.load0(Runtime.java:809)
	at java.lang.System.load(System.java:1086)
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851)
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826)
	at com.sun.jna.Native.<clinit>(Native.java:140)
	at oshi.jna.platform.linux.Libc.<clinit>(Libc.java:38)
	at oshi.hardware.platform.linux.LinuxCentralProcessor.getSystemLoadAverage(LinuxCentralProcessor.java:269)
	at oshi.hardware.common.AbstractCentralProcessor.getSystemLoadAverage(AbstractCentralProcessor.java:429)
	at org.hawkular.agent.monitor.protocol.platform.OshiPlatformCache.getOperatingSystemMetric(OshiPlatformCache.java:358)
	at org.hawkular.agent.monitor.protocol.platform.OshiPlatformCache.getMetric(OshiPlatformCache.java:377)
	at org.hawkular.agent.monitor.protocol.platform.PlatformDriver.fetchAttribute(PlatformDriver.java:105)
	at org.hawkular.agent.monitor.protocol.EndpointService.measureMetrics(EndpointService.java:475)
	at org.hawkular.agent.monitor.scheduler.MetricsCollector.run(MetricsCollector.java:60)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
	at org.jboss.threads.JBossThread.run(JBossThread.java:320)

2017-04-13 05:22:49,093 WARN  [org.hawkular.agent.monitor.scheduler.MetricsCollector] (Hawkular-WildFly-Agent-Scheduler-Metrics-1) Unexpected error caught in MetricsCollector for endpoint [PlatformEndpointService[Endpoint[platform]:[null]]]: java.lang.NoClassDefFoundError: Could not initialize class oshi.jna.platform.linux.Libc
	at oshi.hardware.platform.linux.LinuxCentralProcessor.getSystemLoadAverage(LinuxCentralProcessor.java:269)
	at oshi.hardware.common.AbstractCentralProcessor.getSystemLoadAverage(AbstractCentralProcessor.java:429)
	at org.hawkular.agent.monitor.protocol.platform.OshiPlatformCache.getOperatingSystemMetric(OshiPlatformCache.java:358)
	at org.hawkular.agent.monitor.protocol.platform.OshiPlatformCache.getMetric(OshiPlatformCache.java:377)
	at org.hawkular.agent.monitor.protocol.platform.PlatformDriver.fetchAttribute(PlatformDriver.java:105)
	at org.hawkular.agent.monitor.protocol.EndpointService.measureMetrics(EndpointService.java:475)
	at org.hawkular.agent.monitor.scheduler.MetricsCollector.run(MetricsCollector.java:60)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
	at org.jboss.threads.JBossThread.run(JBossThread.java:320)





Version-Release number of selected component (if applicable):
mm DR04
eap7-middleware-manager-agent-0.29.3-1.Final_redhat_1.1.ep7.el6.noarch.rpm

How reproducible:
Always

Steps to Reproduce:
1. install EAP 7 (yum groupinstall jboss-eap7)
2. install hawkular wildfly agent (yum install eap7-middleware-manager-agent-0.29.3-1.Final_redhat_1.1.ep7.el6.noarch.rpm
3. configure the agent:
export JBOSS_HOME=/opt/rh/eap7/root/usr/share/wildfly/
java -jar ${JBOSS_HOME}/bin/hawkular-wildfly-agent-installer.^Cr --target-location=${JBOSS_HOME} --server-url=http://hawkular.bc.jonqe.lab.eng.bos.redhat.com:8080 --username=jdoe --password=password --config-only=true
4. start eap (service eap7-standalone start)

Actual results:
Warnings above

Expected results:


Additional info: