Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-8893

[Results] Operator upgrade failing from 1.19.3 to 1.20.0 facing CrashLoopBackOff with tekton-results-postgres-0 pod

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Approved

      Description of problem:

      The operator upgrade is failing at upgrade-pipelines-operator step

      $ oc get tektonconfig
      NAME     VERSION   READY   REASON
      config   1.20.0    False   Components not in ready state: TektonResult reconcile again and proceed 

      While performing upgrade from 1.19.3 to 1.20, facing CrashLoopBackOff with tekton-results-postgres-0 because of the postgres bump

      $ oc describe po tekton-results-postgres-0 -n openshift-pipelines | awk '/^Events:/,/^$/'
      Events:
        Type     Reason          Age                  From               Message
        ----     ------          ----                 ----               -------
        Normal   Scheduled       26m                  default-scheduler  Successfully assigned openshift-pipelines/tekton-results-postgres-0 to test1-mhc78-worker-0-5cwlt
        Normal   AddedInterface  26m                  multus             Add eth0 [10.128.2.59/23] from ovn-kubernetes
        Normal   Pulled          25m (x5 over 26m)    kubelet            Container image "registry.redhat.io/rhel9/postgresql-16@sha256:1dbb6d28b453f8f1b5bc52f4b3281c3d5c40500ad0a2f12a5b154e1774166b55" already present on machine
        Normal   Created         25m (x5 over 26m)    kubelet            Created container postgres
        Normal   Started         25m (x5 over 26m)    kubelet            Started container postgres
        Warning  BackOff         72s (x117 over 26m)  kubelet            Back-off restarting failed container postgres in pod tekton-results-postgres-0_openshift-pipelines(36f52bb9-823b-48b7-b4df-2b34d02be703) 

      Getting Incompatible data directory error in logs

      smanthin@smanthin-thinkpadp16vgen1:~/Automation/plumbing$ oc logs -f tekton-results-postgres-0 -n openshift-pipelines
      Incompatible data directory.  This container image provides
      PostgreSQL '16', but data directory is of
      version '13'.
      
      This image supports automatic data directory upgrade from
      '15', please _carefully_ consult image documentation
      about how to use the '$POSTGRESQL_UPGRADE' startup option. 

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

       # <steps>

       

      Actual results:

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

              rh-ee-abghosh Abhishek Ghosh
              priyjain Priyanka Jain
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: