-
Notifications
You must be signed in to change notification settings - Fork 40k
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
cloudprovider/aws: EBS attachment fails: /dev/sdba is not a valid EBS device name (v1.3.0-beta.0) #27534
Comments
I have just found this, I think we could get this information from AWS:
|
That code is supposed to check, but it is quite possible I got it backwards looking at it. Also I agree that the logic is going to be problematic anyway with mixed instance types etc if we've moved attachment to KCM. What AMI are you using? I may have just been "lucky" so far in the AMIs I've used, in that the heuristics have worked correctly. Also, if you have time, would be great to know:
I like the describe-images approach! I'm marking this as 1.3 P1 (sorry @davidopp) as for now my working hypothesis is that this was introduced when we moved disk attachment to KCM (I believe previously the kubelet did it, but want to double-check) |
@justinsb I tried to get a such environments with CoreOS amis: (all eu-west1)
The describe instances returns different rootdevicenames:
But if I ssh into the two instances, the devices are called the same for both:
I think we have to somehow signal the devicename from the Kubelet to the KCM to solve this properly. My understanding is to get the sdX names we have to use an pretty old kernel. Maybe it'a good idea to change the default behaviour, see PR #27545. So fallback to '/dev/xvdX' |
I don't see any indication that this is a regression. I am kicking it out of milestone 1.3. Explain how it is a regression or otherwise super-important to get it back on the milestone. |
It is a regression: volume mounting is broken on AWS. My believe is that it happens because we have moved volume mounting to KCM, and/or KCM runs in a container. Between those two, volume mounting just doesn't work right now. |
We are using HVM style names, which cannot be paravirtual style names. See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html This also fixes problems introduced when moving volume mounting to KCM. Fix kubernetes#27534
Automatic merge from submit-queue AWS volumes: Use /dev/xvdXX names with EC2 We are using HVM style names, which cannot be paravirtual style names. See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html This also fixes problems introduced when moving volume mounting to KCM. Fix #27534
I am having trouble on my AWS 1.3.0beta0 cluster to attach EBS with the controller-manager based attacher.
There problem is here: https://github.com/kubernetes/kubernetes/blob/release-1.3/pkg/cloudprovider/providers/aws/aws.go#L1302
This is failing as the kube-controller-manager is running in a pod via kubelet manifests. I think if you have a cluster with different instance types mixed you ran into trouble as well, as the device names will be either (sdX or xvdX) and the cluster will do it based on the state of the master (controller-manager).
My work around for now is to enable a host mount of
/dev
for the controller manager. But this need to be addressed at some point.xvdX
orsdX
device names
@justinsb maybe you can help me get a proper solution for this. I am happy to contribute a PR
The text was updated successfully, but these errors were encountered: