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

[cinder-csi-plugin] define availability zone for snapshot backup #2569

Merged
merged 3 commits into from
Apr 24, 2024

Conversation

zetaab
Copy link
Member

@zetaab zetaab commented Apr 8, 2024

What this PR does / why we need it: Original snapshot backup support was added in #2480. However, it assumes that openstack volume backup zones will match to cinder zones. In our case, that is not true. We have different names for cinder zones than backup zone. That is why availability zone parameter is needed.

Which issue this PR fixes(if applicable):
fixes #

Special notes for reviewers:

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 8, 2024
@k8s-ci-robot k8s-ci-robot requested review from dulek and mdbooth April 8, 2024 15:54
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 8, 2024
backup = &backups[0]
// since backup.VolumeID is not part of ListBackups response
// we need fetch single backup to get the full object.
backup, err = cs.Cloud.GetBackupByID(backups[0].ID)
Copy link
Member Author

Choose a reason for hiding this comment

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

ListBackups filters by Name and the response is https://docs.openstack.org/api-ref/block-storage/v3/index.html#list-backups-for-project

There is another list backups api that will response all of the details https://docs.openstack.org/api-ref/block-storage/v3/index.html#list-backups-with-detail However, that will not support filter by Name. So I think fetching this single backup by id is enough for now.

@zetaab
Copy link
Member Author

zetaab commented Apr 9, 2024

cc @dulek I have now verified the snapshot backup feature. Without changes in this PR the whole feature does not work properly. Its missing Availability zone support and restoring the data itself is broken currently for everyone.

@dulek
Copy link
Contributor

dulek commented Apr 15, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 15, 2024
@zetaab
Copy link
Member Author

zetaab commented Apr 24, 2024

@dulek I would like to see this in 1.30

@dulek
Copy link
Contributor

dulek commented Apr 24, 2024

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dulek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 24, 2024
@k8s-ci-robot k8s-ci-robot merged commit b343c1b into kubernetes:master Apr 24, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants