Uploaded image for project: 'OpenShift Monitoring'
  1. OpenShift Monitoring
  2. MON-2837

values for logLevel are wrong

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • NEW
    • MON Sprint 226, MON Sprint 227
    • Moderate

      Description of problem:

      followed https://github.com/rhobs/observability-operator, and installed observability-operator 0.0.15 from console, then create MonitoringStack instance from console, the "Create MonitoringStack" page, values in the dropdown list for logLevel settings are debug/info/warning, which should be debug/info/warn/error if we rsh to the alertmanager pod and check help there

      $ oc -n openshift-operators rsh -c alertmanager alertmanager-sample-monitoring-stack-0
      /alertmanager $ /bin/alertmanager --help        
      --log.level=info           Only log messages with the given severity or above. One of: [debug, info, warn, error]
      

      Version-Release number of selected component (if applicable):

      observability-operator 0.0.15

      How reproducible:

      always

      Steps to Reproduce:

      1. see the description
      2.
      3.
      

      Actual results:

      values for logLevel are wrong

      Expected results:

      should be debug/info/warn/error

      Additional info:
      also could see the supported logLevel from observability-operator pod logs

      $ oc -n openshift-operators logs observability-operator-6bb7b6fdfc-wzvbx 
      2022-10-14T06:39:09Z    ERROR    Reconciler error    {"controller": "monitoringstack", "controllerGroup": "monitoring.rhobs", "controllerKind": "MonitoringStack", "monitoringStack": {"name":"sample-monitoring-stack","namespace":"openshift-operators"}, "namespace": "openshift-operators", "name": "sample-monitoring-stack", "reconcileID": "fbc8897a-d5e6-40ab-bb15-2dd2ab659e32", "error": "openshift-operators/sample-monitoring-stack (monitoring.rhobs/v1, Kind=Prometheus): updater failed to patch: Prometheus.monitoring.rhobs \"sample-monitoring-stack\" is invalid: spec.logLevel: Unsupported value: \"warning\": supported values: \"\", \"debug\", \"info\", \"warn\", \"error\""}
      

       

              tremes1@redhat.com Tomas Remes
              juzhao@redhat.com Junqi Zhao
              Junqi Zhao Junqi Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: