equinixmetal: Exclude weird devices from flatcar installation #364
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
s3.xlarge.x86
has some nvme disks attached, which have the smallest size in bytes from all the available disks. Since we are passing the-s
flag toflatcar-install
(so the scripts find the smallest disk to install flatcar), they get picked. For some reason, they can't be booted. The nvme devices have major 259, whereas other disks - 8.I had two ways of fixing the issue - either exclude 259, or include only 8. Went with the former.
During trying to find the fix I did some small cleanup.
The commit messages still need to be rewritten.
I also had a commit that drops fiddling with AlwaysPXE flag, and uses reinstall action instead. This might be something to consider, but it's certainly slower, since all the disks seem to be zeroed. So in case of
s3.xlarge.x86
instance, the reinstallation caused the timeout to be triggered. Maybe something for follow-up PR.Fixes flatcar/Flatcar#834
changelog/
directory (user-facing change, bug fix, security fix, update)