Skip to content

Conversation

@kiall
Copy link

@kiall kiall commented Sep 21, 2016

See issue kubernetes#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 (the parts executed in
kube-controller-manager) to return the volume ID, rather than the device
name as advertised by Cinder. We then rework the cinder volume attacher
(this time, the parts executed in kubelet) to accept this ID, and call the
pre-existing GetDevicePath method, will will perform the discovery
correctly.

This is a break in the Attacher interface, which explicitly calls for the
Attach method to return a device name.

@kiall kiall force-pushed the macinnek-caps-990 branch 3 times, most recently from 231cc0e to 5208cc6 Compare September 21, 2016 17:55
Copy link
Author

Choose a reason for hiding this comment

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

FYI The above checks are already being performed, elsewhere.. These were duplicates.

@kiall kiall force-pushed the macinnek-caps-990 branch 2 times, most recently from cc13c28 to b3cb7bb Compare September 21, 2016 18:13
@kiall kiall changed the title WIP: Ensure we always detect volume paths Don't rely on device name provided by Cinder (WIP) Sep 21, 2016
See issue kubernetes#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 (the parts executed in
kube-controller-manager) to return the volume ID, rather than the device
name as advertised by Cinder. We then rework the cinder volume attacher
(this time, the parts executed in kubelet) to accept this ID, and call the
pre-existing GetDevicePath method, will will perform the discovery
correctly.

This is a break in the Attacher interface, which explicitly calls for the
Attach method to return a device name.
@kiall kiall changed the title Don't rely on device name provided by Cinder (WIP) Don't rely on device name provided by Cinder Sep 21, 2016
@kiall
Copy link
Author

kiall commented Sep 22, 2016

Upstream patch has changed, hold off

@kiall kiall closed this Sep 22, 2016
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.

2 participants