Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-7613

OMR 2.0 upgrade fails due to python3 command not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • omr-v2.0.0
    • omr-v2.0.0
    • OMR
    • False
    • None
    • False
    • Critical

       

      Description

      OMR Upgrade fails due to python3 command not found

      Reproduced steps

      1.using OMR 1.3 setup quay without any custom flag

      ./mirror-registry install --initUser quay --initPassword password --quayHostname 10.0.0.0 --sslCert ssl.cert --sslKey ssl.key -v 

      2. upgrade quay by OMR 2.0

      ./mirror-registry upgrade --quayHostname 10.0.0.0 -v 

       

      Actual results

      Above issues logs:
       

      TASK [mirror_appliance : Check if sqlite cli image is loaded] ********************************************************************************************************************************************************************************
      changed: [cloud-user@quay-omr-rhel-47]
      TASK [mirror_appliance : Fail if sqlite cli image is not found] ******************************************************************************************************************************************************************************
      skipping: [cloud-user@quay-omr-rhel-47]
      TASK [mirror_appliance : Create Sqlite storage named volume] *********************************************************************************************************************************************************************************
      ok: [cloud-user@quay-omr-rhel-47]
      TASK [mirror_appliance : Create necessary directory for storing quay postgres db snapshot] ***************************************************************************************************************************************************
      changed: [cloud-user@quay-omr-rhel-47]
      TASK [mirror_appliance : Verify sqlite3 cli binary is available as entrypoint command from the container] ************************************************************************************************************************************
      changed: [cloud-user@quay-omr-rhel-47]
      TASK [mirror_appliance : Fail if sqlite cli binary is not found] *****************************************************************************************************************************************************************************
      skipping: [cloud-user@quay-omr-rhel-47]
      TASK [mirror_appliance : Check for Python 3 command] *****************************************************************************************************************************************************************************************
      fatal: [cloud-user@quay-omr-rhel-47]: FAILED! => {"changed": true, "cmd": ["which", "python3"], "delta": "0:00:00.006374", "end": "2024-08-09 04:38:43.384033", "msg": "non-zero return code", "rc": 1, "start": "2024-08-09 04:38:43.377659", "stderr": "which: no python3 in (/home/cloud-user/.local/bin:/home/cloud-user/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin)", "stderr_lines": ["which: no python3 in (/home/cloud-user/.local/bin:/home/cloud-user/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin)"], "stdout": "", "stdout_lines": []}
      ...ignoring
      TASK [mirror_appliance : Fail if Python 3 is not installed] **********************************************************************************************************************************************************************************
      fatal: [cloud-user@quay-omr-rhel-47]: FAILED! => {"changed": false, "msg": "Python 3 is not installed, cannot proceed with upgrade"}
      PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
      cloud-user@quay-omr-rhel-47 : ok=43   changed=16   unreachable=0    failed=1    skipped=12   rescued=0    ignored=1   ERRO[2024-08-09 04:38:43] An error occurred: exit status 2

       

       

              hgovinda Harish Govindarajulu
              rhn-support-dyan Dongbo Yan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: