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

run sos collect for OCP with --transport=control_persist option failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • 4.12, 4.11
    • none
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      run sos collect for OCP with --transport=control_persist option failed, when there is no oc client installed

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

      OCP version: 4.11.0-0.nightly-2022-10-27-150454 / 4.12.0-0.nightly-2022-10-25-210451
      sos version: sos-4.2-20.el8_6.noarch

      How reproducible:

      100%

      Steps to Reproduce:

      1. run sos collect on local host with --transport=control_persist option, the host does not install oc client
      $ sos collect --transport=control_persist --ssh-user=core --nopasswd-sudo -i /var/tmp/openshift-qe.pem --no-local -vvv

      Actual results:

      Failed as below error:
      [preserved-qiowang:run_command] Running command oc whoami
      [preserved-qiowang:_run_command_with_pexpect] The command was not found or was not executable: oc.
      Cluster type could not be determined and no nodes provided
      Aborting...

      Expected results:

      run sos collect successfully, connecting nodes with ssh

      Additional info:

      
      

      The output of sos collect is:
      $ sos collect --transport=control_persist --ssh-user=core --nopasswd-sudo -i /var/tmp/openshift-qe.pem --no-local -vvv
      [sos_collector:__init__] Executing /usr/sbin/sos collect --transport=control_persist --ssh-user=core --nopasswd-sudo -i /var/tmp/openshift-qe.pem --no-local -vvv
      [sos_collector:__init__] Found cluster profiles: dict_keys(['jbon', 'kubernetes', 'ocp', 'ovirt', 'rhhi_virt', 'rhv', 'pacemaker', 'satellite'])
      sos-collector (version 4.2)
      This utility is used to collect sos reports from multiple nodes simultaneously.
      Remote connections are made and/or maintained to those nodes via well-known
      transport protocols such as SSH.
      An archive of sos report tarballs collected from the nodes will be generated in
      /var/tmp/sos.7otne2tl and may be provided to an appropriate support
      representative.
      The generated archive may contain data considered sensitive and its content
      should be reviewed by the originating organization before being passed to any
      third party.
      No configuration changes will be made to the system running this utility or
      remote systems that it connects to.
      Press ENTER to continue, or CTRL-C to quit
      Optionally, please enter the case id you are collecting reports for: 
      [sos_collector:configure_sos_cmd] Initial sos cmd set to sosreport --batch -c auto
      [sos_collector:prep] password not specified, assuming SSH keys
      sos-collector ASSUMES that SSH keys are installed on all nodes unless the
      --password option is provided.
      Optionally, please enter the case id that you are generating this report for []: 
      [localhost:run_command] Running command hostname
      [preserved-qiowang:_get_hostname] Hostname set to preserved-qiowang
      [localhost:determine_host_policy] using local policy Red Hat Enterprise Linux
      [ocp] Use of exec_master_cmd() is deprecated and will be removed. Use exec_primary_cmd() instead
      [preserved-qiowang:run_command] Running command oc whoami
      [preserved-qiowang:_run_command_with_pexpect] The command was not found or was not executable: oc.
      Cluster type could not be determined and no nodes provided
      Aborting...
      [cloud-user@preserved-qiowang 4.11]${code}
       

              npinaeva@redhat.com Nadia Pinaeva (Inactive)
              rh-ee-qiowang Qiong Wang
              None
              None
              Qiong Wang Qiong Wang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: