Closed rijesh-purayil closed 2 months ago
HI @rijesh-purayil Noobaa is not supporting upgrade between n to n+2 Upgrading from 5.13.z to 5.15.z might (will) not work. You first need to upgrade from 5.13.z to 5.14.z, then to 5.15.z If you then encounter an issue, let us know.
@liranmauda - We want to upgrade noobaa from 5.13.2 (operator and core) by keeping existing Postgres 12 version, but to replace postgresql-12-centos7 to postgresql-12-rhel8. We found a way to get this working. The issues we identified are:-
For 1, we added ENV NOOBAA_PSQL_12_IMAGE by patching noobaa operator.
For 2, We added additional permission
For 3, We patch existing nooba to have postgresUpdatePhase: NoUpgrade
.
@rijesh-purayil Why do you want to keep postgress 12 and not move to postgress 15? @dannyzaken @jackyalbo is postgress 12 supported on 5.15?
@liranmauda - We already use another PostgreSQL version 12 (Stolon) for a few microservices, and for Noobaa, we have this separate PostgreSQL version 12 in place. Next, we want to use Noobaa to use PostgreSQL v12 (Stolon) as an external database. The Postgres version upgrade can then go later, along with the services, which we will plan.
For now we don't use any Postgresql-15 only features, so Postgres-12 is still supported. There is no guarantee that this will remain the case in the future, and we don't run any tests to verify the compatibility with Postgres 12
@dannyzaken - Thanks.
I want to know the manual steps to get the noobaa running on OpenShift updated.
Curent version - 5.13.2 (nooba-operator:5.13.2, nooba-core:5.13.2, postgresql-12-centos7) Desired version - 5.15.2 (nooba-operator:5.15.2, nooba-core:5.15.2, postgresql-12-rhel8)
Observation - Once we update the CRD and then update the nooba-operator to 5.15.2 , then the existing noobaa goes into Rejected state. What we expect is the noobaa should get into good state till the upgrade is complete. The document https://github.com/noobaa/noobaa-operator/blob/master/doc/noobaa-crd.md talks about
In any case when using custom images, you will have to make sure the operator and core images are compatible with each other.
Is that because the nooba-opertor:5.15.2 (new) is incompatible with nooba-core:5.13.2 (existing)?
In the Rejected state, then we update the noobaa CR with specific dbimage and nooba-core image, still its not able to recover from Rejected state. What we observe is that, the moment nooba-opertor updates to 5.15.2, then it detects pg upgrades and complains with Missing critical env variable for pg upgrade - NOOBAA_PSQL_12_IMAGE.
How to resolve this issue?
Nooba CR that is currently Running.
Error
Update steps followed.
Missing critical env variable for pg upgrade - NOOBAA_PSQL_12_IMAGE