• Kiall Mac Innes's avatar
    Don't rely on device name provided by Cinder · ce8eda94
    Kiall Mac Innes authored
    See issue #33128
    
    We can't rely on the device name provided by Cinder, and thus must perform
    detection based on the drive serial number (aka It's cinder ID) on the
    kubelet itself.
    
    This patch re-works the cinder volume attacher to ignore the supplied
    deviceName, and instead defer to the pre-existing GetDevicePath method to
    discover the device path based on it's serial number and /dev/disk/by-id
    mapping.
    
    This new behavior is controller by a config option, as falling back
    to the cinder value when we can't discover a device would risk devices
    not showing up, falling back to cinder's guess, and detecting the wrong
    disk as attached.
    ce8eda94
openstack_test.go 8.39 KB