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

Handled properly potential of wrong prefix formation in Azure. #371

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

abdasgupta
Copy link
Contributor

What this PR does / why we need it:
This a PR fixes a potential bug that may create wrong prefix in Azure backup storage for ETCD.

With v2 directory structure introduced with Compaction PR, it was observed that the blobName comes with the prefix concatenated to it. So if store prefix is set with --store-prefix=prefix then the blobName would be prefix/Name and with that Join prefix/prefix/Name, which points to a snapshot that does not exists. This PR resolves this bug.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:


@abdasgupta abdasgupta requested a review from a team as a code owner August 11, 2021 13:35
@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 Aug 11, 2021
@gardener-robot-ci-1 gardener-robot-ci-1 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 Aug 11, 2021
@krgostev
Copy link
Contributor

/lgtm

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Aug 11, 2021
@amshuman-kr amshuman-kr changed the title Added a fix for potential bug of wrong prefix formation in Azure. Handle properly potential of wrong prefix formation in Azure. Aug 11, 2021
Copy link
Collaborator

@amshuman-kr amshuman-kr left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @abdasgupta @kris94! LGTM

@amshuman-kr amshuman-kr added this to the v0.13.0 milestone Aug 11, 2021
Copy link
Collaborator

@shreyas-s-rao shreyas-s-rao left a comment

Choose a reason for hiding this comment

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

@abdasgupta @kris94 Thanks for the fix! Please rebase the PR on latest master.

@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Aug 12, 2021
@abdasgupta abdasgupta changed the title Handle properly potential of wrong prefix formation in Azure. Handled properly potential of wrong prefix formation in Azure. Aug 12, 2021
@gardener-robot-ci-1 gardener-robot-ci-1 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Aug 12, 2021
@shreyas-s-rao shreyas-s-rao added the needs/rebase Needs git rebase label Aug 12, 2021
@gardener-robot gardener-robot removed the reviewed/lgtm Has approval for merging label Aug 12, 2021
@shreyas-s-rao shreyas-s-rao added merge/squash Should be merged via 'Squash and merge' reviewed/lgtm Has approval for merging labels Aug 12, 2021
@gardener-robot gardener-robot removed the needs/rebase Needs git rebase label Aug 12, 2021
@shreyas-s-rao shreyas-s-rao added the needs/rebase Needs git rebase label Aug 12, 2021
@gardener-robot gardener-robot removed the reviewed/lgtm Has approval for merging label Aug 12, 2021
@abdasgupta abdasgupta merged commit 0c5e6e3 into gardener:master Aug 12, 2021
@abdasgupta abdasgupta deleted the working branch August 12, 2021 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge/squash Should be merged via 'Squash and merge' needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/rebase Needs git rebase size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants