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

[must-gather] oc adm must-gather execution hangs indefinitely when collecting information for Cluster Logging.

    XMLWordPrintable

Details

    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Hide
      Before this change, the must-gather script take a long time to complete, because `oc` needs a folder with write permission to build its cache.

      After this change a folder with write permissions is provided, and must gather script completes in time.
      Show
      Before this change, the must-gather script take a long time to complete, because `oc` needs a folder with write permission to build its cache. After this change a folder with write permissions is provided, and must gather script completes in time.

    Description

      Description of problem:

      When oc adm must-gather is run to collect information from Cluster Logging, the command execution hangs indefinitely.

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

      Client Version: 4.11.0-202206151603.p0.g63bee3e.assembly.stream-63bee3e

      Kustomize Version: v4.5.4

      Server Version: 4.11.0-0.nightly-2022-12-19-042947

      Kubernetes Version: v1.24.6+5658434

      Cluster-logging.v5.6.0

      Elasticsearch-operator.v5.6.0

      How reproducible:

      Always

      Steps to Reproduce:

      *Create a Cluster Logging instance.

      apiVersion: "logging.openshift.io/v1"
      kind: "ClusterLogging"
      metadata:
        name: "instance" 
        namespace: "openshift-logging"
      spec:
        managementState: "Managed"  
        logStore:
          type: "elasticsearch"  
          retentionPolicy: 
            application:
              maxAge: 10h
            infra:
              maxAge: 10h
            audit:
              maxAge: 10h
          elasticsearch:
            nodeCount: 3 
            storage: {} 
            resources: 
                limits:
                  memory: "4Gi"
                requests:
                  memory: "1Gi"
            proxy: 
              resources:
                limits:
                  memory: 256Mi
                requests:
                  memory: 256Mi
            redundancyPolicy: "SingleRedundancy"
        visualization:
          type: "kibana"  
          kibana:
            replicas: 1
        collection:
          type: "fluentd"
      

      *Run the must-gather to collect Cluster Logging data.

      oc adm must-gather --image=$(oc -n openshift-logging get deployment.apps/cluster-logging-operator -o jsonpath='{.spec.template.spec.containers[?(@.name == "cluster-logging-operator")].image}')
      

      *Check that the command execution is hung indefinitely.

      $ oc adm must-gather --image=$(oc -n openshift-logging get deployment.apps/cluster-logging-operator -o jsonpath='{.spec.template.spec.containers[?(@.name == "cluster-logging-operator")].image}')
      [must-gather      ] OUT Using must-gather plug-in image: registry.redhat.io/openshift-logging/cluster-logging-rhel8-operator@sha256:7b17ceb5a190e7d496103fa0f3a37786c18bda4cc5f8847a486bfdaa0421702f
      When opening a support case, bugzilla, or issue please include the following summary data along with any other requested information:
      ClusterID: ef202076-5ceb-4f49-b393-9be7fc75a805
      ClusterVersion: Stable at "4.11.0-0.nightly-2022-12-19-042947"
      ClusterOperators:
      All healthy and stable
      
      
      
      [must-gather      ] OUT namespace/openshift-must-gather-tztmq created
      [must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-7x6ql created
      Warning: would violate PodSecurity "restricted:latest": allowPrivilegeEscalation != false (containers "gather", "copy" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (containers "gather", "copy" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or containers "gather", "copy" must set securityContext.runAsNonRoot=true), seccompProfile (pod or containers "gather", "copy" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
      [must-gather      ] OUT pod for plug-in image registry.redhat.io/openshift-logging/cluster-logging-rhel8-operator@sha256:7b17ceb5a190e7d496103fa0f3a37786c18bda4cc5f8847a486bfdaa0421702f created
      

      Attachments

        Activity

          People

            vimalkum@redhat.com Vimal Kumar
            rhn-support-ikanse Ishwar Kanse
            Ishwar Kanse Ishwar Kanse
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: