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

Remove CSI NodeUnpublish lstat and attachment check #1379

Merged
merged 3 commits into from
Jan 24, 2020

Conversation

ggriffiths
Copy link
Contributor

@ggriffiths ggriffiths commented Jan 21, 2020

This check was originally in place due to container-storage-interface/spec#285, which appears to be fixed.

We also use the file info to check for if a path is a block path or not. We may need to perform a different check when we implement CSI Raw block.

Signed-off-by: Grant Griffiths <grant@portworx.com>
@ggriffiths ggriffiths requested review from lpabon and adityadani and removed request for adityadani and lpabon January 21, 2020 23:48
@ggriffiths ggriffiths changed the title Remove CSI NodeUnpublish lstat WIP: Remove CSI NodeUnpublish lstat Jan 22, 2020
@ggriffiths
Copy link
Contributor Author

Testing this change now.

@ggriffiths ggriffiths changed the title WIP: Remove CSI NodeUnpublish lstat Remove CSI NodeUnpublish lstat Jan 22, 2020
Copy link
Contributor

@adityadani adityadani left a comment

Choose a reason for hiding this comment

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

lgtm

codes.Internal,
"Unknown error while verifying target location %s: %s",
// Mount volume onto the path
if err = s.driver.Unmount(req.GetVolumeId(), req.GetTargetPath(), nil); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Need to check if the that this call is idempotent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

discussed this on the call, it is idempotent with the sched filter

@ggriffiths ggriffiths changed the title Remove CSI NodeUnpublish lstat Remove CSI NodeUnpublish lstat and attachment check Jan 22, 2020
@ggriffiths ggriffiths merged commit e0ac214 into libopenstorage:master Jan 24, 2020
ggriffiths added a commit to ggriffiths/openstorage that referenced this pull request Jan 24, 2020
ggriffiths added a commit to ggriffiths/openstorage that referenced this pull request Jan 24, 2020
ggriffiths added a commit to ggriffiths/openstorage that referenced this pull request Jan 24, 2020
ggriffiths added a commit to ggriffiths/openstorage that referenced this pull request Jan 24, 2020
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.

3 participants