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
[3.7] etcd migrate: instead of scaleup playbook etcd server should be started back #7313
[3.7] etcd migrate: instead of scaleup playbook etcd server should be started back #7313
Conversation
roles: | ||
- openshift_etcd_facts | ||
|
||
- name: Re-configure etcd and bring the cluster up |
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.
This looks okay to me. Please update with test results.
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.
Had to add a few more vars, now migrates 3.7 cluster correctly
…ed back master doesn't need to be restarted and etcd URLs updated as new etcd nodes are being added. There is no need to run scaleup playbook, as etcd nodes are already added to the cluster. The migrate procedure now does the following: * checks if the etcd data needs to be migrated * makes etcd backup * stops etcd services on all nodes except the first one * migrates etcd data on first etcd node * clears data on other etcd nodes * updates etcd cluster configuration, updating ETCD_INITIAL_CLUSTER and ETCD_INITIAL_CLUSTER_STATE * starts the etcd service again one by one on etcd nodes Now the only copy of migrated data is on the first etcd cluster, which would replicate it to other nodes. After migration is done master configs are updated and services restarted if needed
b53a096
to
7e30cda
Compare
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
/retest |
1 similar comment
/retest |
/test install |
@vrutkovs: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Backport of #7226
Replaces #7297
Verified to be working on 3.7 cluster