Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-1451

[1927249] fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields...duplicate entries for key [name="POLICY_MAPPING"]

XMLWordPrintable

    • False
    • False
    • NEW
    • NEW
    • Undefined
    • Logging (LogExp) - Sprint 203

      Description of problem:
      kube-apiserver container logs have 8000+ lines of:
      2021-02-10T11:27:45.625925613Z E0210 11:27:45.625568 18 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for /, Kind=: failed to convert new object (batch/v1beta1, Kind=CronJob) to smd typed: .spec.jobTemplate.spec.template.spec.containers[name="indexmanagement"].env: duplicate entries for key [name="POLICY_MAPPING"]

      Version-Release number of selected component (if applicable):
      4.7.0-0.nightly-2021-02-09-024347

      How reproducible:
      Always

      Steps to Reproduce:
      1. Install env (e.g. ipi-on-vsphere/versioned-installer-vmc7-ovn-vsphere_slave-winc-ci matrix)

      2. Check kube-apiserver containers logs of all kube-apiserver pods, found:
      2021-02-10T11:27:45.625925613Z E0210 11:27:45.625568 18 fieldmanager.go:186] [SHOULD NOT HAPPEN] failed to update managedFields for /, Kind=: failed to convert new object (batch/v1beta1, Kind=CronJob) to smd typed: .spec.jobTemplate.spec.template.spec.containers[name="indexmanagement"].env: duplicate entries for key [name="POLICY_MAPPING"]

      $ grep "SHOULD NOT HAPPEN.POLICY_MAPPING" logs/kube-apiserver-aiyengar-shared-0902-nbsll-master-/kube-apiserver.log | wc -l
      8680

      Actual results:
      2. oc get cronjob -A -o yaml, found below 3 cronjobs are the cause:
      name: elasticsearch-im-app
      namespace: openshift-logging
      ...
      name: indexmanagement
      namespace: openshift-logging
      spec:
      containers:

      • args:
      • -c
      • ./delete;delete_rc=$?;./rollover;rollover_rc=$?;$(exit $delete_rc&&exit $rollover_rc)
        command:
      • bash
        env:
      • name: POLICY_MAPPING
        value: app
      • name: MIN_AGE
        value: "43200000"
      • name: PAYLOAD
        value: eyJjb25kaXRpb25zIjp7Im1heF9hZ2UiOiIzNm0iLCJtYXhfZG9jcyI6MTIyODgwMDAwLCJtYXhfc2l6ZSI6IjEyMGdiIn19
      • name: POLICY_MAPPING
        value: app

      name: elasticsearch-im-audit
      namespace: openshift-logging
      ...
      name: indexmanagement
      namespace: openshift-logging
      spec:
      containers:

      • args:
      • -c
      • ./delete;delete_rc=$?;./rollover;rollover_rc=$?;$(exit $delete_rc&&exit $rollover_rc)
        command:
      • bash
        env:
      • name: POLICY_MAPPING
        value: audit
      • name: MIN_AGE
        value: "1209600000"
      • name: PAYLOAD
        value: eyJjb25kaXRpb25zIjp7Im1heF9hZ2UiOiIyaCIsIm1heF9kb2NzIjoxMjI4ODAwMDAsIm1heF9zaXplIjoiMTIwZ2IifX0=
      • name: POLICY_MAPPING
        value: audit

      name: elasticsearch-im-infra
      namespace: openshift-logging
      ...
      name: indexmanagement
      namespace: openshift-logging
      spec:
      containers:

      • args:
      • -c
      • ./delete;delete_rc=$?;./rollover;rollover_rc=$?;$(exit $delete_rc&&exit $rollover_rc)
        command:
      • bash
        env:
      • name: POLICY_MAPPING
        value: infra
      • name: MIN_AGE
        value: "21600000"
      • name: PAYLOAD
        value: eyJjb25kaXRpb25zIjp7Im1heF9hZ2UiOiIxOG0iLCJtYXhfZG9jcyI6MTIyODgwMDAwLCJtYXhfc2l6ZSI6IjEyMGdiIn19
      • name: POLICY_MAPPING
        value: infra

      Expected results:
      2. Should have no duplicate entries which cause such error logs.

      Additional info:
       

              ptsiraki@redhat.com Periklis Tsirakidis
              ptsiraki@redhat.com Periklis Tsirakidis
              Giriyamma Karagere Ramaswamy Giriyamma Karagere Ramaswamy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: