Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLM log level #47

Open
zetti12345 opened this issue Nov 20, 2023 · 1 comment
Open

OLM log level #47

zetti12345 opened this issue Nov 20, 2023 · 1 comment

Comments

@zetti12345
Copy link

Hi,

the OLM Pod is logging like crazy, because its default log level Debug. How can I disable this, it fills up my log storage with 100s of GB for nothing?

1.7004691735061865e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "clusterissuers.cert-manager.io-v1-view", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.700469173506191e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "bfdprofiles.metallb.io-v1beta1-view", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735061958e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "challenges.acme.cert-manager.io-v1-edit", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735061998e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "openshift-kube-descheduler-operator-pmt9c-view", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062044e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "system:discovery", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062082e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "bfdprofiles.metallb.io-v1beta1-admin", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062132e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "clusterlogforwarders.logging.openshift.io-v1-edit", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062172e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "system:openshift:openshift-controller-manager:image-trigger-controller", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062215e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "argocds.argoproj.io-v1alpha1-edit", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062256e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "grafanafolders.integreatly.org-v1alpha1-view", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062304e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "argocds.argoproj.io-v1beta1-admin", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.700469173506235e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "aggregate-olm-view", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062394e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "orders.acme.cert-manager.io-v1-edit", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062432e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "system:node-admin", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062478e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "alertingrules.loki.grafana.com-v1-crdview", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062525e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "console", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062568e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "clusterloggings.logging.openshift.io-v1-admin", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062606e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "applicationsets.argoproj.io-v1alpha1-crdview", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062659e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "system:controller:disruption-controller", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.70046917350627e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "system:kube-scheduler", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062747e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "kubedeschedulers.operator.openshift.io-v1-view", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.700469173506279e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "system:build-strategy-custom", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062833e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "gitopsservices.pipelines.openshift.io-v1alpha1-edit", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062873e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "whereabouts-cni", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062916e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "system:openshift:aggregate-snapshots-to-storage-admin", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735062964e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "alertingrules.loki.grafana.com-v1-view", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.700469173506301e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "system:openshift:discovery", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735063047e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "net-attach-def-project", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735063093e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "system:openshift:controller:podsecurity-admission-label-syncer-controller", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"} 1.7004691735063133e+09 DEBUG predicate Skipping reconciliation for dependent resource creation {"name": "prometheus-user-workload-operator", "namespace": "", "apiVersion": "rbac.authorization.k8s.io/v1", "kind": "ClusterRole"}

Thx and BR
Peter

@fgiloux
Copy link
Contributor

fgiloux commented Nov 20, 2023

Hi Peter,

it seems that the debug flag is embedded in the deployment configuration. We would need to use something like --zap-log-level=$LOG_LEVEL instead so that it can be configured in the Subscription.

As a workaround you can delete the line in the ClusterServiceVersion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants