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

Add _netdev as default mount options for both cepfs and rbd #809

Merged
merged 2 commits into from
Jan 28, 2020

Conversation

Madhu-1
Copy link
Collaborator

@Madhu-1 Madhu-1 commented Jan 23, 2020

Add _netdev as default mount options in plugins. This value will be added at both node stage and node publish for RBD, NBD and ceph kernel client.
As cephfs fuse doesn't support this value, this is added only during the node publish.

Add run host path to daemonset pods. /run/mount need to be shared between the host and csi-plugin containers for /run/mount/utab this is required to ensure that the network is not stopped prior to unmounting the network devices.

Signed-off-by: Madhu Rajanna madhupr007@gmail.com

Resolves #756

@Madhu-1 Madhu-1 requested review from humblec, nixpanic and ShyamsundarR and removed request for humblec January 23, 2020 08:42
@Madhu-1 Madhu-1 force-pushed the netdev branch 2 times, most recently from 1da5960 to 266663e Compare January 23, 2020 09:04
@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Jan 23, 2020

E2E is failing for LUKS encrypted PVC. will check can we pass _netdev for mounting encrypted device of not

@Madhu-1 Madhu-1 force-pushed the netdev branch 2 times, most recently from 264aa2a to ea45337 Compare January 24, 2020 10:58
@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Jan 24, 2020

This values will be added at both nodestage
and nodepublish for rbd, nbd and ceph kernel client.

As cephfs fuse doesnot support this value,
this is added only during the nodepublish.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
`/run/mount` need to be share between host and
csi-plugin containers for `/run/mount/utab`

this is required to ensures that the network
is not stopped prior to unmounting the network devices.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
Copy link
Contributor

@ShyamsundarR ShyamsundarR left a comment

Choose a reason for hiding this comment

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

Wanted to check why /run was mapped yesterday, nice that it is already changed to /run/mount to reduce what we need mapped to the nodeplugin.

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Jan 24, 2020

Wanted to check why /run was mapped yesterday, nice that it is already changed to /run/mount to reduce what we need mapped to the nodeplugin.

Mounting '/run' cause more issues related to udev, '/run/mount' what we need for netdev

@humblec
Copy link
Collaborator

humblec commented Jan 28, 2020

LGTM. Approved.. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass "_netdev" mount option by default for RBD/CephFS mounts
4 participants