integr8ly / application-monitoring-operator

Operator for installing the Application Monitoring Stack on OpenShift (Prometheus, AlertManager, Grafana)
Apache License 2.0
30 stars 44 forks source link

Installation v1.3.0 doesn't work #145

Open mkralik3 opened 4 years ago

mkralik3 commented 4 years ago

I am not able to install a successfully v1.3.0 version on my OCP 3.11 nor OCP 4.5 clusters. After run make cluster/install command, the installation finished successfully,

[mkralik@localhost application-monitoring-operator_master]$ make cluster/install
./scripts/install.sh  v0.34.0 v3.5.0
Now using project "application-monitoring" on server "https://master.fo-311-c.dos.fuse-qe.eng.rdu2.redhat.com:8443".

You can add applications to this project with the 'new-app' command. For example, try:

    oc new-app ruby~https://github.com/sclorg/ruby-ex.git

to build a new example application in Python. Or use kubectl to deploy a simple Kubernetes application:

    kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node

namespace/application-monitoring labeled
customresourcedefinition.apiextensions.k8s.io/applicationmonitorings.applicationmonitoring.integreatly.org configured
clusterrole.authorization.openshift.io/alertmanager-application-monitoring configured
clusterrolebinding.authorization.openshift.io/alertmanager-application-monitoring created
clusterrole.rbac.authorization.k8s.io/grafana-operator unchanged
clusterrolebinding.authorization.openshift.io/grafana-operator unchanged
clusterrole.rbac.authorization.k8s.io/prometheus-application-monitoring unchanged
clusterrolebinding.rbac.authorization.k8s.io/prometheus-application-monitoring configured
clusterrole.rbac.authorization.k8s.io/prometheus-application-monitoring-operator unchanged
clusterrolebinding.rbac.authorization.k8s.io/prometheus-application-monitoring-operator configured
clusterrole.rbac.authorization.k8s.io/grafana-proxy unchanged
clusterrolebinding.authorization.openshift.io/grafana-proxy configured
serviceaccount/application-monitoring-operator created
role.rbac.authorization.k8s.io/application-monitoring-operator created
rolebinding.rbac.authorization.k8s.io/application-monitoring-operator created
customresourcedefinition.apiextensions.k8s.io/blackboxtargets.applicationmonitoring.integreatly.org configured
customresourcedefinition.apiextensions.k8s.io/grafanas.integreatly.org unchanged
customresourcedefinition.apiextensions.k8s.io/grafanadashboards.integreatly.org unchanged
customresourcedefinition.apiextensions.k8s.io/grafanadatasources.integreatly.org unchanged
Warning: oc apply should be used on resource created by either oc create --save-config or oc apply
customresourcedefinition.apiextensions.k8s.io/podmonitors.monitoring.coreos.com configured
Warning: oc apply should be used on resource created by either oc create --save-config or oc apply
customresourcedefinition.apiextensions.k8s.io/prometheuses.monitoring.coreos.com configured
Warning: oc apply should be used on resource created by either oc create --save-config or oc apply
customresourcedefinition.apiextensions.k8s.io/alertmanagers.monitoring.coreos.com configured
Warning: oc apply should be used on resource created by either oc create --save-config or oc apply
customresourcedefinition.apiextensions.k8s.io/prometheusrules.monitoring.coreos.com configured
Warning: oc apply should be used on resource created by either oc create --save-config or oc apply
customresourcedefinition.apiextensions.k8s.io/servicemonitors.monitoring.coreos.com configured
yes
deployment.apps/application-monitoring-operator created
applicationmonitoring.applicationmonitoring.integreatly.org/example-applicationmonitoring created

however, only two pods are created

application-monitoring-operator-7574f69755-rdlpd   1/1     Running   0          6m
prometheus-operator-86467cc6d8-zsrqh               1/1     Running   0          5m

Pods logs: application-monitoring-operator

{"level":"info","ts":1596104703.666083,"logger":"cmd","msg":"Go Version: go1.13.14"}
{"level":"info","ts":1596104703.6662054,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1596104703.6662192,"logger":"cmd","msg":"operator-sdk Version: v0.15.2"}
{"level":"info","ts":1596104703.6672153,"logger":"leader","msg":"Trying to become the leader."}
{"level":"info","ts":1596104704.6974154,"logger":"leader","msg":"No pre-existing lock was found."}
{"level":"info","ts":1596104704.7026434,"logger":"leader","msg":"Became the leader."}
{"level":"info","ts":1596104705.7206311,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":"0.0.0.0:8383"}
{"level":"info","ts":1596104705.7220647,"logger":"cmd","msg":"Registering Components."}
{"level":"info","ts":1596104705.7246423,"logger":"cmd","msg":"amoGVK: [applicationmonitoring.integreatly.org/v1alpha1, Kind=ApplicationMonitoring applicationmonitoring.integreatly.org/v1alpha1, Kind=BlackboxTarget integreatly.org/v1alpha1, Kind=Grafana integreatly.org/v1alpha1, Kind=GrafanaDashboard integreatly.org/v1alpha1, Kind=GrafanaDataSource]"}
{"level":"info","ts":1596104711.864813,"logger":"metrics","msg":"Metrics Service object created","Service.Name":"application-monitoring-operator-metrics","Service.Namespace":"application-monitoring"}
{"level":"info","ts":1596104712.9669402,"logger":"cmd","msg":"Starting the Cmd."}
{"level":"info","ts":1596104712.9723122,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"blackboxtarget-controller","source":"kind source: /, Kind="}
{"level":"info","ts":1596104712.972807,"logger":"controller-runtime.controller","msg":"Starting Controller","controller":"blackboxtarget-controller"}
{"level":"info","ts":1596104712.9730158,"logger":"controller-runtime.manager","msg":"starting metrics server","path":"/metrics"}
{"level":"info","ts":1596104712.9731624,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"applicationmonitoring-controller","source":"kind source: /, Kind="}
{"level":"info","ts":1596104712.973311,"logger":"controller-runtime.controller","msg":"Starting Controller","controller":"applicationmonitoring-controller"}
{"level":"info","ts":1596104713.0730612,"logger":"controller-runtime.controller","msg":"Starting workers","controller":"blackboxtarget-controller","worker count":1}
{"level":"info","ts":1596104713.07352,"logger":"controller-runtime.controller","msg":"Starting workers","controller":"applicationmonitoring-controller","worker count":1}
{"level":"info","ts":1596104713.073891,"logger":"controller_applicationmonitoring","msg":"Reconciling ApplicationMonitoring","Request.Namespace":"application-monitoring","Request.Name":"example-applicationmonitoring"}
{"level":"info","ts":1596104713.073935,"logger":"controller_applicationmonitoring","msg":"Phase: Install PrometheusOperator"}
{"level":"info","ts":1596104713.180039,"logger":"controller_applicationmonitoring","msg":"can't find secret 'integreatly-additional-scrape-configs'"}

prometheus-operator

ts=2020-07-30T10:25:19.667893523Z caller=main.go:199 msg="Starting Prometheus Operator version '0.34.0'."
ts=2020-07-30T10:25:19.731047462Z caller=main.go:96 msg="Staring insecure server on :8080"

Last version which I was using was 1.1.6 which I was able to install without any issues.