Jira (PDB-5352) Re-allow branched migrations

0 weergaven
Naar het eerste ongelezen bericht

Austin Blatt (Jira)

ongelezen,
9 nov 2021, 16:31:0209-11-2021
aan puppe...@googlegroups.com
Austin Blatt created an issue
 
PuppetDB / Improvement PDB-5352
Re-allow branched migrations
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2021/11/09 1:30 PM
Priority: Normal Normal
Reporter: Austin Blatt

Our work to manage upgrades in multi-PuppetDB environments broke our migration model because it only check the most recent migration number and assumes we have all the others. This could result in a PuppetDB misidentifying a Postgres as having "valid schema" when in reality an upgrade is required.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Austin Blatt (Jira)

ongelezen,
10 nov 2021, 13:03:0210-11-2021
aan puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Our migration code properly distinguishes between "pending" migrations that it recognizes and has yet to apply, and unrecognized migrations, migrations that have been applied that it doesn't know about. But other parts of the migration orchestration code only look at the highest numbered migration. So in a world where we apply a migration to an old branch (6.x) you might have a set of migrations like

...
78
79
__
81

and this version would not notice that the schema was out of sync when the db is upgraded to the new branch (main) with the migrations

...
78
79
80
81

It's important to keep in mind that we have done migration "roll-ups" as well. This means that migrations lower than the lowest number in our migration map should not be treated as "unrecognized" migrations.

Our
work to manage upgrades in multi-PuppetDB environments broke our migration model because it only check the most recent migration number and assumes we have all the others. This could result in a PuppetDB misidentifying a Postgres as having "valid schema" when in reality an upgrade is required.

David McTavish (Jira)

ongelezen,
9 feb 2022, 14:53:0209-02-2022
aan puppe...@googlegroups.com
David McTavish updated an issue
Change By: David McTavish
Sprint: HAHA/Grooming
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

David McTavish (Jira)

ongelezen,
10 feb 2022, 09:40:0110-02-2022
aan puppe...@googlegroups.com
David McTavish updated an issue
Change By: David McTavish
Priority: Normal Low
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten