-
Notifications
You must be signed in to change notification settings - Fork 45
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
Schedule and replicate bootstrap daily backup #3557
Schedule and replicate bootstrap daily backup #3557
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Instead of making a backup in one place, then replicating the backup(s) to all Could we instead work on that, which would also further lead towards 'Bootstrap HA'? |
d1160f7
to
69bdfe8
Compare
This comment has been minimized.
This comment has been minimized.
We also miss the configuration files ( 🤔 |
@NicolasT Yes, it is mainly the certificates and metalk8s/solutions configuration files. |
69bdfe8
to
40214fb
Compare
This comment has been minimized.
This comment has been minimized.
2b1b3a6
to
1547888
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments
I think you should add a changelog entry and btw I'm not sure it should be in 2.10
pillar/metalk8s/roles/ca.sls
Outdated
@@ -23,6 +23,10 @@ mine_functions: | |||
- mine_function: hashutil.base64_encodefile | |||
- /etc/metalk8s/pki/nginx-ingress/ca.crt | |||
|
|||
backup_ca_b64: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit weird to me to have a "backup" CA but ... I have no better idea in mind, maybe just rename everywhere so that we know that it's "backup_server" CA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw wondering if we really need a CA for this backup server ? shouldn't we use just a self-signed server certificate ? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it would be sufficient, I don't know.
1547888
to
3fa4a32
Compare
This comment has been minimized.
This comment has been minimized.
/reset |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
af4a836
to
f3366f6
Compare
This comment has been minimized.
This comment has been minimized.
/approve |
This comment has been minimized.
This comment has been minimized.
f3366f6
to
e9e78c5
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This HTTP server is used to serve the backups generated on the bootstrap node.
e9e78c5
to
746c52b
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go for it
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Build failedThe build for commit did not succeed in branch w/2.11/improvement/schedule-bootstrap-backup. The following options are set: approve |
Build failedThe build for commit did not succeed in branch improvement/schedule-bootstrap-backup. The following options are set: approve |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve |
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue None. Goodbye alexandre-allard-scality. |
Component: salt, backup
Context:
Actually we do backups only when performing an action on the cluster (bootstrap, upgrade, downgrade and restore) and we keep this backup locally.
It means that if we do not do any actions for a long time, the latest backup will be very old if we need it at some point.
Also, since the backup is not copied to other nodes, if we really lose the bootstrap node 💥 we will be unable to restore a new one.
Summary:
Schedule daily backups on the bootstrap node and copy this archive on the master nodes.
Acceptance criteria: