Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-37544

[OLMV1] the cluster-olm-operator doesn't output version info

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.17.0
    • 4.17.0
    • OLM
    • Low
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • Done

      Description of problem:

      The version info is useful, however, I couldn't get the cluster-olm-operator's. As follows,

          jiazha-mac:~ jiazha$ oc rsh cluster-olm-operator-7cc6c89999-hql9m
      Defaulted container "cluster-olm-operator" out of: cluster-olm-operator, copy-catalogd-manifests (init), copy-operator-controller-manifests (init), copy-rukpak-manifests (init)
      sh-5.1$ ps -elf|cat
      F S UID          PID    PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY          TIME CMD
      4 S 1000790+       1       0  0  80   0 - 490961 futex_ 04:39 ?       00:00:28 /cluster-olm-operator start -v=2
      4 S 1000790+      15       0  0  80   0 -  1113 do_wai 07:33 pts/0    00:00:00 /bin/sh
      4 R 1000790+      22      15  0  80   0 -  1787 -      07:33 pts/0    00:00:00 ps -elf
      4 S 1000790+      23      15  0  80   0 -  1267 pipe_r 07:33 pts/0    00:00:00 /usr/bin/coreutils --coreutils-prog-shebang=cat /usr/bin/cat
      sh-5.1$ ./cluster-olm-operator -h
      OpenShift Cluster OLM Operator
      
      
      Usage:
        cluster-olm-operator [command]
      
      
      Available Commands:
        completion  Generate the autocompletion script for the specified shell
        help        Help about any command
        start       Start the Cluster OLM Operator
      
      
      Flags:
        -h, --help                           help for cluster-olm-operator
            --log-flush-frequency duration   Maximum number of seconds between log flushes (default 5s)
        -v, --v Level                        number for the log level verbosity
            --vmodule moduleSpec             comma-separated list of pattern=N settings for file-filtered logging (only works for the default text log format)
      
      
      Use "cluster-olm-operator [command] --help" for more information about a command.
      
      sh-5.1$ ./cluster-olm-operator start -h
      Start the Cluster OLM Operator
      
      
      Usage:
        cluster-olm-operator start [flags]
      
      
      Flags:
            --config string                    Location of the master configuration file to run from.
        -h, --help                             help for start
            --kubeconfig string                Location of the master configuration file to run from.
            --listen string                    The ip:port to serve on.
            --namespace string                 Namespace where the controller is running. Auto-detected if run in cluster.
            --terminate-on-files stringArray   A list of files. If one of them changes, the process will terminate.
      
      
      Global Flags:
            --log-flush-frequency duration   Maximum number of seconds between log flushes (default 5s)
        -v, --v Level                        number for the log level verbosity
            --vmodule moduleSpec             comma-separated list of pattern=N settings for file-filtered logging (only works for the default text log format)

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

          jiazha-mac:~ jiazha$ oc get clusterversion
      NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.17.0-0.nightly-2024-07-20-191204   True        False         9h      Cluster version is 4.17.0-0.nightly-2024-07-20-191204

      How reproducible:

          always

      Steps to Reproduce:

          1. build an OCP cluster and Enable TP.
      $ oc patch featuregate cluster -p '{"spec": {"featureSet": "TechPreviewNoUpgrade"}}' --type=merge
      
           2. Check cluster-olm-operator version info.
        

      Actual results:

      Couldn't get it.

          

      Expected results:

      The cluster-olm-operator should have a global flag to output the version info.

        

      Additional info:

          

              agreene1991 Alexander Greene (Inactive)
              rhn-support-jiazha Jian Zhang
              Jian Zhang Jian Zhang
              Alex Dellapenta Alex Dellapenta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: