Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add upgrade process for postgres DB version 15 #1221

Closed
wants to merge 1 commit into from

Conversation

nadavMiz
Copy link
Contributor

@nadavMiz nadavMiz commented Sep 21, 2023

Explain the changes

  1. change the Postgres version from 12 to 15
  2. added upgrade code for ODF

Issues: Fixed #xxx / Gap #xxx

  1. https://issues.redhat.com/browse/RHSTOR-4788

Testing Instructions:

  1. on regular image change database version in noobaa CR. should automatically upgrade and migrate the data to the new database
  2. on ODF should happen automatically on version upgrade
  • Doc added/updated
  • Tests added

@nadavMiz nadavMiz force-pushed the upgrade-postgres-db branch 4 times, most recently from dccde47 to f3a7a25 Compare September 26, 2023 05:52
Copy link
Contributor

@jackyalbo jackyalbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small review for now, once you will update this and especially explain what we expect in what phase we can continue (maybe even together)


case nbv1.UpgradePhasePrepare:

r.Logger.Infof("UpgradePostgresDB phase nbv1.UpgradePhasePrepare")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not take this print out and just print phase variable?

r.NooBaa.Status.BeforeUpgradeDbImage = &oldImage
}

case nbv1.UpgradePhasePrepare:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you maybe add a general comment about what is done in every phase, and what we expect to find?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets add

@liranmauda
Copy link
Contributor

@jackyalbo Can we close this one?

@jackyalbo
Copy link
Contributor

Closing as a fixed PR clone was already merged: #1264

@jackyalbo jackyalbo closed this Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants