Skip to content

[release/1.4] backport: Support adding devices by dir#5232

Closed
cpuguy83 wants to merge 1 commit intocontainerd:release/1.4from
cpuguy83:1.4_devices_by_dir
Closed

[release/1.4] backport: Support adding devices by dir#5232
cpuguy83 wants to merge 1 commit intocontainerd:release/1.4from
cpuguy83:1.4_devices_by_dir

Conversation

@cpuguy83
Copy link
Copy Markdown
Member

This enables cases where devices exist in a subdirectory of /dev,
particularly where those device names are not portable across machines,
which makes it problematic to specify from a runtime such as cri.

Added this to ctr as well so I could test that the code at least
works.


This is a backport of #4847 which is fixing a problem for us where Docker supports devices by path, but the same pod spec on containerd errors out.

@cpuguy83 cpuguy83 requested review from fuweid and mikebrow March 19, 2021 16:54
@cpuguy83
Copy link
Copy Markdown
Member Author

cpuguy83 commented Mar 19, 2021

Oh I guess I need to open a PR to containerd/cri do the vendoring dance to get all the changes in.

@estesp estesp changed the title Support adding devices by dir [release/1.4] backport: Support adding devices by dir Mar 22, 2021
@fuweid
Copy link
Copy Markdown
Member

fuweid commented Mar 23, 2021

@cpuguy83 yeah. backport to release/1.4, vendor into containerd/cri and then vendor back into release/1.4 😂

This enables cases where devices exist in a subdirectory of /dev,
particularly where those device names are not portable across machines,
which makes it problematic to specify from a runtime such as cri.

Added this to `ctr` as well so I could test that the code at least
works.

--

This commit is slightly modifified from the original due to cri
vendoring.

Signed-off-by: Brian Goff <[email protected]>
(cherry picked from commit 7776e5e)
Signed-off-by: Brian Goff <[email protected]>
@cpuguy83 cpuguy83 force-pushed the 1.4_devices_by_dir branch from 505581a to 3bdff0c Compare March 23, 2021 18:03
@cpuguy83
Copy link
Copy Markdown
Member Author

Updated this to remove vendor changes.

@kzys
Copy link
Copy Markdown
Member

kzys commented May 27, 2021

@estesp @mikebrow @fuweid Can you take a look, since you've reviewed the original PR?

Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpuguy83
Copy link
Copy Markdown
Member Author

I think this is too risky to take in such a late stage for 1.4
1.5 has been out for some time now and has this already, so closing.

@cpuguy83 cpuguy83 closed this Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants