cloudnative-pg icon indicating copy to clipboard operation
cloudnative-pg copied to clipboard

Single replica breaking OCP upgrade

Open aaronmcohen opened this issue 1 year ago • 2 comments

When running a single replica POC the PDB will not allow eviction. This means OCP cannot upgrade the cluster unless the it is in a maintenance window. The problem with this logic is OCP administration and Postgres administration may not be in sync. The proposal is to separate the single replica logic from the maintenance window logic.

Signed-off-by: Aaron M. Cohen [email protected]

aaronmcohen avatar Jul 26 '22 20:07 aaronmcohen

Hi @aaronmcohen

A couple of things to notice:

  • Please create an issue so we can talk an discuss it there and assign a responsible for this PR
  • Fix the linter issue
  • Please run the E2E test on this on your repo

On the other hand, this will basically delete the PDB on every cluster that we create, but we may not want that since this protects the node from being drained and this needs to be done with during maintenance window and knowing that we can reuse the PVC, otherwise, this may turn everything into a possible mess, do you have some examples that you can mention in the issue?

Regards

sxd avatar Jul 27 '22 20:07 sxd

Created https://github.com/cloudnative-pg/cloudnative-pg/issues/498 to continue the discussion.

aaronmcohen avatar Jul 28 '22 01:07 aaronmcohen

This is happening in a discussion and this PR it's not valid anymore since looks like we can take another path or there was a solution already for this

sxd avatar Nov 22 '22 15:11 sxd

By default, the pull request is supposed to backport to all release branches.

github-actions[bot] avatar Nov 22 '22 15:11 github-actions[bot]