azure: add udev rules needed by k8s cloudprovider#1618
azure: add udev rules needed by k8s cloudprovider#1618alexsomesan merged 2 commits intocoreos:masterfrom
Conversation
|
Can one of the admins verify this patch? |
1 similar comment
|
Can one of the admins verify this patch? |
|
I'm not sure if it would be more appropriate to add this to Container Linux itself, but this seems like a potentially desirable fix in the case of expediency. Also, this was tested with: https://gist.github.com/colemickens/0cd6a12fdbf5a8b5040724a0b8e900fd. |
|
@colemickens, thanks for contributing this. In order to reduce code duplication, could you implement this in a module following the pattern that the tx-off.service uses? |
| ENV{DEVTYPE}=="disk", SYMLINK+="disk/azure/$env{fabric_name}" | ||
| ENV{DEVTYPE}=="partition", SYMLINK+="disk/azure/$env{fabric_name}-part%n" | ||
|
|
||
| LABEL="azure_end" No newline at end of file |
There was a problem hiding this comment.
This should probably have a newline
|
@squat Both requested changes have been made. Let me know and I can squash. |
|
@colemickens I'm giving this a quick manual test and will then merge if everything works fine. |
|
How does this work on other distros? |
| ENV{DEVTYPE}=="disk", SYMLINK+="disk/azure/$env{fabric_name}" | ||
| ENV{DEVTYPE}=="partition", SYMLINK+="disk/azure/$env{fabric_name}-part%n" | ||
|
|
||
| LABEL="azure_end" No newline at end of file |
|
I was able to confirm this is working by spinning up a cluster from this branch. |
|
@philips In the latest 16.04 images (in Azure at least), these udev rules are included. On the upstream issue I've commented that this issue is likely to affect other distros and older ubuntu images. |
alexsomesan
left a comment
There was a problem hiding this comment.
This looks good so far. I'm going to merge it.
Thanks a lot, Cole!
Just FYI, there is a pending overhaul of the ignition modules into a single generic one, on which occasion this change will also go through a bit of refactoring.
azure: add udev rules needed by k8s cloudprovider (#1618)
* azure: add udev rules needed by k8s cloudprovider * respond to feedback
Fixes #1614 by adding udev rules needed by the Azure cloudprovider. See this comment for context: kubernetes/kubernetes#50150 (comment)