-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
FC volume plugin should support World Wide Identifier (WWID) parameter as an unique volume identifier #48639
Comments
@mtanino There are no sig labels on this issue. Please add a sig label by: |
/sig storage |
This PR adds World Wide Identifier (WWID) parameter to FCVolumeSource as an unique volume identifier. fixes kubernetes#48639
Automatic merge from submit-queue FC volume plugin: Support WWID for volume identifier **What this PR does / why we need it**: This PR adds World Wide Identifier (WWID) parameter to FCVolumeSource as an unique volume identifier. **Which issue this PR fixes**: fixes kubernetes#48639 **Special notes for your reviewer**: /cc @rootfs @jsafrane @msau42 **Release note**: ``` FC volume plugin: Support WWID for volume identifier ```
@mtanino - I'm curious as to why the wwids field was made to be an array of strings, as opposed to a string. An FC volume only has one WWID, to my understanding. Can you elaborate on this? Thanks in advance for your help. |
Is this a BUG REPORT or FEATURE REQUEST?: BUG
/kind bug
/kind feature
What happened:
Currently FC volume plugin supports two parameters "targetWWNs" and "lun" to specify volume from the /dev/disk/by-path/ directory. However as mentioned on the Red Hat's persistent naming documentation, devices referenced by by-path might be changed.
This means that volume for Pod A is potentially used by Pod B on the same node and this causes security problem and also deta destruction.
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/persistent_naming.html
Also LUN format can be contained hex value, but current LUN of FC plugin only permits integer value. Therefore LUN is restricted the value between 0 and 255 inclusive.
or
LUN specification for FC Persistent Volumes #45024
What you expected to happen:
Instead of using "targetWWNs" and "lun", "WWID" is recommended to be used in reliably identifying devices. (See following documents)
WWID can be obtained by SCSI Inquiry page 0x83 as mentioned on the following documents. The symlink including WWID for /dev/sdX is exposed under the /dev/disk/by-id/ directory. Therefore we can use "by-id" instead of "by-path".
Anything else we need to know?:
I'll push a PR to support "WWID" for FC volume plugin. Current target version is v1.8.
The text was updated successfully, but these errors were encountered: