k3s/pkg/cloudprovider
Kubernetes Submit Queue 117e72aeb2 Merge pull request #38818 from jsafrane/aws-device-allocator
Automatic merge from submit-queue (batch tested with PRs 38818, 38813, 38820)

AWS: Add sequential allocator for device names.

On AWS, we should not reuse device names as long as possible, see https://aws.amazon.com/premiumsupport/knowledge-center/ebs-stuck-attaching/

> "If you specify a device name that is not in use by EC2, but is being used by the block device driver within the EC2 instance, the attachment of the EBS volume does not succeed and the EBS volume is stuck in the attaching state."

This patch adds a device name allocator that tries to find a name that's next to the last used device name instead of using the first available one. This way we will loop through all device names ("xvdba" .. "xvdzz") before a device name is reused.

Fixes: #31891

@wongma7, @gnufied, @childsb PTAL
2016-12-15 11:04:17 -08:00
..
providers Merge pull request #38818 from jsafrane/aws-device-allocator 2016-12-15 11:04:17 -08:00
BUILD autoupdate BUILD files 2016-12-12 13:30:07 -08:00
OWNERS update pkg/cloudprovider OWNERS to spread the load 2016-09-08 15:13:21 -07:00
cloud.go providers: Remove long-deprecated Instances.List() 2016-12-10 22:36:12 +11:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
plugins.go more readable 2016-12-07 11:35:50 +08:00