-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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 volume attacher: use instanceID instead of NodeID when verifying attachment #39998
Cinder volume attacher: use instanceID instead of NodeID when verifying attachment #39998
Conversation
Hi @DukeXar. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with 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. |
@k8s-ci-robot I signed it! |
148bac9
to
c53cf22
Compare
@k8s-bot ok to test |
return volumesAttachedCheck, err | ||
} | ||
|
||
attachedResult, err := attacher.cinderProvider.DisksAreAttached(volumeIDList, instanceid) |
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.
It would be better to have a unit test to verify this change.
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.
Done
c53cf22
to
d1ed363
Compare
832c297
to
0842b90
Compare
0842b90
to
084d801
Compare
test: func(testcase *testcase) (string, error) { | ||
attacher := newAttacher(testcase) | ||
attachments, err := attacher.VolumesAreAttached([]*volume.Spec{spec}, nodeName) | ||
return serializeAttachments(attachments), err |
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.
serializeAttachments
Does not look like the best thing to do, open for suggestions on what is idiomatic in Go
return volumesAttachedCheck, err | ||
} | ||
|
||
attachedResult, err := attacher.cinderProvider.DisksAreAttached(volumeIDList, instanceid) |
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.
Done
Leave rest of this to @saad-ali for final review, thanks a lot! |
@idvoretskyi can you add the sig/openstack label? |
no response from @saad-ali, I reviewed it by myself |
[APPROVALNOTIFIER] This PR is APPROVED The following people have approved this PR: DukeXar, jsafrane Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@k8s-bot node e2e test this |
Automatic merge from submit-queue (batch tested with PRs 41246, 39998) |
@DukeXar Congratulations! ㊗️ ! Enjoy the contribution. |
@resouer Thanks. Do I need to cherry-pick it manually to get into the release 1.5? |
@jsafrane does it need to have a milestone and a release note in order to be cherry-picked into the 1.5? I am a bit confused with the process. |
@DukeXar, I added milestone and cherrypick-candidate label, IMO that should be enough |
Commit found in the "release-1.5" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
Automatic merge from submit-queue (batch tested with PRs 41246, 39998) Cinder volume attacher: use instanceID instead of NodeID when verifying attachment **What this PR does / why we need it**: Cinder volume attacher incorrectly uses NodeID instead of openstack instance id, so that reconciliation fails. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes kubernetes#39978 **Special notes for your reviewer**: **Release note**: ```release-note ```
What this PR does / why we need it: Cinder volume attacher incorrectly uses NodeID instead of openstack instance id, so that reconciliation fails.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #39978Special notes for your reviewer:
Release note: