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

Logging must-gather errors out when running on a non-amd64 arch cluster

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Hide
      Before this change the must-gather feature failed when the version of oc it packaged was not compatible with the OS architecture on which it was being executed. This fixes that issue by bundling the specific version of oc that is compatible with the OS architecture
      Show
      Before this change the must-gather feature failed when the version of oc it packaged was not compatible with the OS architecture on which it was being executed. This fixes that issue by bundling the specific version of oc that is compatible with the OS architecture
    • Bug Fix
    • Log Collection - Sprint 257, Log Collection - Sprint 258

      Description of problem:

      Must-gather errors out when running on a cluster using non amd64 architectures.

      $ 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-rlpqw] POD 2024-08-08T10:08:59.415173284Z must-gather logs are located at: '/must-gather/gather-debug.log'
      [must-gather-rlpqw] POD 2024-08-08T10:08:59.420015986Z /usr/bin/gather: line 34: /usr/bin/oc: cannot execute binary file: Exec format error
      [must-gather-rlpqw] POD 2024-08-08T10:08:59.421624647Z Adding namespace '' to cluster_resources list
      [must-gather-rlpqw] POD 2024-08-08T10:08:59.438464449Z /usr/bin/gather: line 34: /usr/bin/oc: cannot execute binary file: Exec format error
      [must-gather-rlpqw] POD 2024-08-08T10:08:59.440682672Z Adding namespace '' to cluster_resources list
      [must-gather-rlpqw] POD 2024-08-08T10:08:59.905463696Z /usr/bin/gather: line 103: /usr/bin/oc: cannot execute binary file: Exec format error
      [must-gather-rlpqw] POD 2024-08-08T10:08:59.909461547Z /usr/bin/gather: line 116: /usr/bin/oc: cannot execute binary file: Exec format error
      [must-gather-rlpqw] POD 2024-08-08T10:08:59.910709431Z /usr/bin/gather: line 117: /usr/bin/oc: cannot execute binary file: Exec format error
      [must-gather-rlpqw] POD 2024-08-08T10:08:59.913726794Z Waiting on subprocesses to finish execution.
      .....
      

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

      Logging 6.0, Logging 5.9 and lower versions possibly. Have not checked on version < 5.9

      How reproducible:

      Always

      Steps to Reproduce:

      1. Deploy CLO on a non-amd64 cluster
      2. Run must-gather command
      3. Check for Exec format error

      Actual results:

      must-gather should complete successfully.

      Expected results:

      must-gather errors out with binary issue.

      Additional info:

            vparfono Vitalii Parfonov
            rhn-support-kbharti Kabir Bharti
            Kabir Bharti Kabir Bharti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: