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

fix issue with injector #7

Merged
merged 2 commits into from
Feb 18, 2022
Merged

fix issue with injector #7

merged 2 commits into from
Feb 18, 2022

Conversation

JacobGros
Copy link
Collaborator

@JacobGros JacobGros commented Feb 15, 2022

grpc 1.39 + introduced a change to metadata.FromIncomingContext. Instead of returning md, it would return a copy. This caused an issue for CSI-PowerFlex (and possibly other drivers) because we ended up injecting the request ID into the metadata's copy, and not the metadata itself. This resulted in logs appearing like:
"time="2022-02-07T17:01:52Z" level=info msg="/csi.v1.Controller/ControllerUnpublishVolume: : VolumeId=4d4a2e5a36080e0f-a23ae0a7000001c0, NodeId=63C568BC-7F0B-5151-B989-EEACA0293D70, XXX_NoUnkeyedLiteral={}, XXX_sizecache=0""

instead of:

"time="2022-02-07T17:01:52Z" level=info msg="/csi.v1.Controller/ControllerUnpublishVolume: REQ 2515: VolumeId=4d4a2e5a36080e0f-a23ae0a7000001c0, NodeId=63C568BC-7F0B-5151-B989-EEACA0293D70, XXX_NoUnkeyedLiteral={}, XXX_sizecache=0"

Issue: dell/csm#189

@nb950
Copy link

nb950 commented Feb 15, 2022

do you need to update the grpc v1.38.0 go.mod to latest ?

@JacobGros
Copy link
Collaborator Author

do you need to update the grpc v1.38.0 go.mod to latest ?

No, issue was with driver go.mod using grpc 1.43

@jooseppi-luna jooseppi-luna requested a review from nb950 February 17, 2022 15:14
@JacobGros JacobGros merged commit b18545e into main Feb 18, 2022
@anandrajak1 anandrajak1 deleted the injector-fix branch October 17, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants