-
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
AWS kube-up: tolerate a lack of ephemeral volumes #23776
Conversation
format-disks used to run with non-strict bash semantics, but this changed in 1.2 as we now merge it into the GCE script, so pipefail and errexit are both set. However, the way we list the ephemeral disks, by piping to grep, would cause an exit code of 2 if there were no ephemeral disks. Tolerate failure here by add `|| true`. The metadata service call is unlikely to fail, so we continue to ignore that possibility.
We rename it to EPHEMERAL_BLOCK_DEVICE_MAPPINGS, and we also change the value so that it starts with a `,`, instead of always inserting a comma before it. In this way the value can be empty. Also, if the user sets the (currently experimental) KUBE_AWS_STORAGE environment variable to be "ebs", then we will not mount any instance storage which will cause the machines to use EBS storage instead.
Labelling this PR as size/S |
GCE e2e build/test passed for commit f43f398. |
@justinsb, I have tested this PR with release 1.2.1, it works great using a cluster composed of 1 master and 2 host nodes all m3.medium. Thanks a lot! |
I'm marking this as a cherrypick-candidate, because it is not very invasive, and because we've had user friction with:
|
Removing label |
Automatic merge from submit-queue |
…76-upstream-release-1.2 Automated cherry pick of #23776
@eparis: Any idea why |
@zmerlynn no, I have no idea. It looks like it should have been found/automatically cleaned up. I'll try to put it on my list of things to looks at. |
…ck-of-#23776-upstream-release-1.2 Automated cherry pick of kubernetes#23776
…ck-of-#23776-upstream-release-1.2 Automated cherry pick of kubernetes#23776
Some users have requested the ability to not use ephemeral volumes (local instance storage), but this also highlighted the fact that we likely fail to start on instance types with no instance storage (e.g. the c4 class instances).
Confirming this fix, and then going to confirm that e.g. c4 is broken. If so this will be a cherry-pick candidate.