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 experimental restore plan #250

Merged
merged 11 commits into from
May 6, 2022
Merged

Add experimental restore plan #250

merged 11 commits into from
May 6, 2022

Conversation

reidmv
Copy link
Contributor

@reidmv reidmv commented Apr 20, 2022

This commit holds WIP for the peadm::restore plan.

@reidmv reidmv force-pushed the SOLARCH-581 branch 6 times, most recently from 0b13e7c to b03ac49 Compare May 2, 2022 19:17
reidmv added 9 commits May 5, 2022 14:09
This commit holds WIP for the peadm::restore plan.
This commit refactors the restore plan for style (line folding, variable
names, etc) and flow, mainly an attempt to find a single path that
always works, and eliminate conditional logic.

The plan is not yet validated at this stage. More work is required to
ensure correct functionality.
WIP: doing testing/validation and fixing logic
Because the PuppetDB database exists separately on two PostgreSQL hosts
in a DR configuration, adapt the restore plan to restore the data to
BOTH locations, if they exist
Specifically, make it handle situations where PuppetDB queries return
multiple results for server() queries, which could happen in the event a
database has been backed up on one cluster, and restored into another.
Note what additional action needs to take place when there is dev time
This should help keep current cluster PuppetDB knowledge of cluster
hosts after restoring PuppetDB data from a backup
@davidsandilands davidsandilands marked this pull request as ready for review May 6, 2022 14:55
@davidsandilands davidsandilands requested a review from a team as a code owner May 6, 2022 14:55
@davidsandilands davidsandilands merged commit 9c2ef76 into main May 6, 2022
@davidsandilands davidsandilands deleted the SOLARCH-581 branch May 6, 2022 15:20
@reidmv reidmv changed the title (SOLARCH-581) Implement restore plan Implement experimental restore plan May 11, 2022
@reidmv reidmv changed the title Implement experimental restore plan Add experimental restore plan May 11, 2022
@reidmv reidmv added the feature label May 11, 2022
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.

2 participants