-
Notifications
You must be signed in to change notification settings - Fork 621
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] ephemeral volume removal #2602
Conversation
Hi @sergelogvinov. 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 Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
/ok-to-test |
thanks for the PR, could you please update
|
1e47456
to
5f1a600
Compare
/retest-required |
@sergelogvinov from the error seems more clean up needed, maybe sainty test cases? |
5f1a600
to
cce3c2c
Compare
@jichenjc All tests passed. thanks. |
/approve |
_, err := ns.Cloud.GetVolume(volumeID) | ||
if err != nil { | ||
if cpoerrors.IsNotFound(err) { | ||
return nil, status.Error(codes.NotFound, "Volume not found") | ||
} | ||
return nil, status.Errorf(codes.Internal, "GetVolume failed with error %v", 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.
Why do you remove this? This doesn't exactly feel like it's related, with "csi.storage.k8s.io/ephemeral" == "true"
this code won't be exected.
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.
Hi, the main idea is - to remove openstack credentials dependency from node csi daemonset.
We do not need to check the existence of the Volume in the daemonset by openstack api. When the CSI sidecar calls the NodeStageVolume/NodePublishVolume function, the Volume is already attached to the VM. We just need to find the block device in the /dev/* directory. If any issues occur, the block device mounter will return an error.
I believe, this check _, err := ns.Cloud.GetVolume(volumeID)
is not necessary here.
What do you think?
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.
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.
seems last update is commit cc73e20
but didn't find the commit message realted
I am guessing this might prevent some concurrent deletion during the actions here ..
_, err := ns.Cloud.GetVolume(volumeID) | ||
if err != nil { | ||
if cpoerrors.IsNotFound(err) { | ||
klog.V(4).Infof("NodeUnstageVolume: Unable to find volume: %v", err) | ||
return nil, status.Error(codes.NotFound, "Volume not found") | ||
} | ||
return nil, status.Errorf(codes.Internal, "GetVolume failed with error %v", 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.
Same here, I think.
if no objection, let's merge this soon |
5f1a600
to
c714017
Compare
i've rebased the PR... Thanks. |
c714017
to
663ccb5
Compare
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
Disable creating new deprecated ephemeral volumes
What this PR does / why we need it:
Remove deprecated ephemeral volumes.
Which issue this PR fixes(if applicable):
fixes #2599
Special notes for reviewers:
Hi, @dulek i've disabled only ephemeral volume creation stage.
What do you think, we should remove all code or make it in two steps (releases)?
Thanks.
Release note: