bermuda-sunfish / zfs-localpv

Dynamically provision Stateful Persistent Node-Local Volumes & Filesystems for Kubernetes that is integrated with a backend ZFS data storage stack.
https://openebs.io
Apache License 2.0
0 stars 0 forks source link

Ensure a device node is created and removed when zvol is provioned #5

Closed bermuda-sunfish closed 5 months ago

bermuda-sunfish commented 5 months ago

Why is this PR required? What issue does it fix?: This resolves the issue listed in #3.

What this PR does?: When ZVOLs are provisioned, the driver checks to ensure that the device appears in the /dev file tree. In some environments, specifically, kind clusters running inside of a Docker container, this does not happen, resulting in situations when PVCs are provisioned but cannot be mounted to containers. This PR adds logic to ensure that the device nodes are created every time the ZVOL is provisioned, and removed when ZVOLs are removed.

Does this PR require any upgrade changes?: No.

If the changes in this PR are manually verified, list down the scenarios covered::