-
Notifications
You must be signed in to change notification settings - Fork 462
DR: add validate_environment to openshift-recovery tools #793
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
Conversation
|
/hold holding for manual validation and @vrutkovs review |
|
/test e2e-aws |
|
/approve |
templates/master/00-master/_base/files/usr-local-bin-etcd-snapshot-restore-sh.yaml
Outdated
Show resolved
Hide resolved
|
/hold cancel Verified that it works correctly (with a fix for #793 (comment) applied) |
vrutkovs
left a comment
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.
Typo in a function name
Signed-off-by: Sam Batschelet <[email protected]>
vrutkovs
left a comment
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.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, hexfusion, vrutkovs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/run/etcd/environment contains important ENV variables required by most of the DR scripts. This file is populated by the discovery container in the etcd-member init. In some circumstances such as the node rebooting this file can be missing.
validate_environmentnow checks for the existence of the file and if it is missing we populate.The second part of this PR makes $SNAPSHOT_FILE a required parameter. Currently, we default to the local members DB file backup. This I feel is not a good default and could result in unexpected results.
/cc @vrutkovs