Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1419390 - hawkular-openshift-agent do not work on OCP 3.5
hawkular-openshift-agent do not work on OCP 3.5
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Hawkular (Show other bugs)
3.5.0
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Matt Wringe
Peng Li
: TestBlocker
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-05 21:44 EST by Peng Li
Modified: 2017-07-24 10 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-04-12 15:11:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0884 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 18:50:07 EDT

  None (edit)
Description Peng Li 2017-02-05 21:44:45 EST
Description of problem:
Deploy hawkular-openshift-agent on OCP 3.5 failed, from the log can see error like  stat /opt/hawkular/hawkular-openshift-agent: no such file or directory

Version-Release number of selected component (if applicable):
openshift v3.5.0.16+a26133a
metrics-hawkular-openshift-agent   3.5.0   0896d559ade3        11 days ago

How reproducible:
always

Steps to Reproduce:
1. deploy Metrics 3.5(since there is bug using ansible, I'm using deployer) and check all pods works well

oc create -f - <<API
apiVersion: v1
kind: ServiceAccount
metadata:
  name: metrics-deployer
secrets:
- name: metrics-deployer
API

oadm policy add-role-to-user edit system:serviceaccount:openshift-infra:metrics-deployer

oc secrets new metrics-deployer nothing=/dev/null

oadm policy add-cluster-role-to-user cluster-reader system:serviceaccount:openshift-infra:heapster

oadm policy add-role-to-user view system:serviceaccount:openshift-infra:hawkular -n openshift-infra

oc new-app -f metrics.yaml --as=system:serviceaccount:openshift-infra:metrics-deployer \
-p IMAGE_PREFIX=$PREFIX \
-p IMAGE_VERSION=3.5.0 \
-p HAWKULAR_METRICS_HOSTNAME=hawkular-metrics.$SUBDOMAIN \
-p MODE=deploy \
-p USE_PERSISTENT_STORAGE=false \
-p MASTER_URL=$MASTERURL \
-p DYNAMICALLY_PROVISION_STORAGE=false \
-p CASSANDRA_NODES=1 \
-p CASSANDRA_PV_SIZE=10Gi \
-p USER_WRITE_ACCESS=false

]# oc get pod
NAME                         READY     STATUS      RESTARTS   AGE
hawkular-cassandra-1-t48j3   1/1       Running     0          14m
hawkular-metrics-34287       1/1       Running     0          14m
heapster-rpjx0               1/1       Running     0          14m
metrics-deployer-ndhb6       0/1       Completed   0          14m


2.git clone https://github.com/hawkular/hawkular-openshift-agent.git, modify 
hawkular-openshift-agent.yaml, change IMAGE_VERSION and registry

3.deploy the agent

oc create -f deploy/openshift/hawkular-openshift-agent-configmap.yaml -n openshift-infra
oc process -f deploy/openshift/hawkular-openshift-agent.yaml | oc create -n openshift-infra -f -
oc adm policy add-cluster-role-to-user hawkular-openshift-agent system:serviceaccount:openshift-infra:hawkular-openshift-agen

Actual results:
hawkular-openshift-agent never getting to Running status.
# oc get pod
NAME                             READY     STATUS             RESTARTS   AGE
hawkular-cassandra-1-t48j3       1/1       Running            0          27m
hawkular-metrics-34287           1/1       Running            0          27m
hawkular-openshift-agent-14dts   0/1       CrashLoopBackOff   7          12m
hawkular-openshift-agent-3x7t0   0/1       CrashLoopBackOff   7          12m
heapster-rpjx0                   1/1       Running            0          27m
metrics-deployer-ndhb6           0/1       Completed          0          28m


Expected results:
Agent is deployed, hence use could get application level metrics.

Additional info:
Event attached.
This blocks test for https://trello.com/c/ZQTYWrCD/154-8-support-application-level-metrics-hawkular-evg-epic-ois-met-ux
Comment 1 Peng Li 2017-02-05 21:47 EST
Created attachment 1247927 [details]
event.yaml
Comment 6 Peng Li 2017-02-10 00:54:12 EST
verified with 3.5.0

metrics-hawkular-openshift-agent   3.5.0               a74520aaa07f        12 hours ago        234.8 MB

# oc get pod
NAME                             READY     STATUS      RESTARTS   AGE
hawkular-cassandra-1-z7pn0       1/1       Running     0          37m
hawkular-metrics-gdkp7           1/1       Running     0          31m
hawkular-openshift-agent-2lvgf   1/1       Running     0          2m
hawkular-openshift-agent-n2dcg   1/1       Running     0          2m
heapster-d4svp                   1/1       Running     0          2h
metrics-deployer-x4n6w           0/1       Completed   0          2h
Comment 8 errata-xmlrpc 2017-04-12 15:11:29 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0884

Note You need to log in before you can comment on or make changes to this bug.