8000 Don't update peer URL when promoting member by aaronfern · Pull Request #506 · gardener/etcd-backup-restore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Don't update peer URL when promoting member #506

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

Merged
merged 2 commits into from
Jul 21, 2022

Conversation

aaronfern
Copy link
Contributor
@aaronfern aaronfern commented Jul 21, 2022

What this PR does / why we need it:
This PR updates member promote logic to not attempt to update peer URL while promoting a member.
Promote member is called only when in multi node case and in that case updated member peer URLs are already used since these are new nodes/pods trying to join the cluster

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

No attempt is made to update member Peer URL when trying to promote a member

@aaronfern aaronfern requested a review from a team as a code owner July 21, 2022 05:01
@gardener-robot gardener-robot added needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) labels Jul 21, 2022
@gardener-robot-ci-2 gardener-robot-ci-2 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jul 21, 2022
@gardener-robot-ci-3 gardener-robot-ci-3 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jul 21, 2022
@timuthy
Copy link
Member
timuthy commented Jul 21, 2022

/assign

Copy link
Member
@timuthy timuthy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍 Please add a proper RELEASE NOTE so that we can merge the PR.

@gardener-robot gardener-robot added the needs/changes Needs (more) changes label Jul 21, 2022
@aaronfern
Copy link
Contributor Author

Thanks for the review @timuthy!
Added a release note, PTAL

@timuthy timuthy merged commit 008a478 into gardener:master Jul 21, 2022
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Jul 21, 2022
aaronfern added a commit to aaronfern/etcd-backup-restore that referenced this pull request Jul 21, 2022
* Don't update peer URL when promoting member

* Update interface name in member package
aaronfern added a commit that referenced this pull request Jul 21, 2022
* Added support to run etcd client calls only when in multi-node case (#504)

* Added support to run etcd client calls only when in multi-node case

* Addressed review comments

* Used values from restoreOpts rather than another func call

* Temp fix: skip single member restoration in case of data-dir invalid. (#501)

* Temp fix: skip single member restoration in case of data-dir invalid.

* Small fixes.

* Improved error log.

* Fixed a bug in scaleup feature which present in func: IsMemberInCluster.

* Fix the unit tests.

* Address the review comments.

* Handle the case of when storageProvider is not configured.

* Address the review comments.

* Address the review comments.

* Assigned the correct Peer Address to Etcd after it restores from the backup-bucket. (#505)

* Assigned the correct Peer address to the Etcd after restoration.

* Fix the unit tests and some refactoring.

* Improve some logs.

* Address the review comments.

* To update the peer address of existing cluster.

* Don't update peer URL when promoting member (#506)

* Don't update peer URL when promoting member

* Update interface name in member package

Co-authored-by: Ishan Tyagi <42602577+ishan16696@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/changes Needs (more) changes needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0