Skip to content

Fail when devicemapper doesn't support udev-sync - #21097

Merged
cpuguy83 merged 1 commit into
moby:masterfrom
thaJeztah:dont-run-without-udev-sync
Mar 15, 2016
Merged

cpuguy83 merged 1 commit into
moby:masterfrom
thaJeztah:dont-run-without-udev-sync

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Now what we provide dynamic binaries for all platforms,
we shouldn't try to run docker without udev sync support.

This change changes the previous warning to an Error,
unless the user explicitly overrides the warning, in
which case they're at their own risk.

This is a continuation of the discussions in #14292
and #14415

In #14415 (comment) it was decided to "allow" running without udev sync, because;

The alternative will come in the form of dynamically linked binaries for all distros, which will take some time (but we're hoping to have them for 1.8.0). Once we do have those, we'll reconsider making devicemapper without udev sync an error, but right now it seems premature.

Now that that's in place, I think we should refuse to run without udev sync.

This PR is just to get that discussion started, possibly we can customize the
error based on if the user is running a "dynamic" or "static" binary.

Now what we provide dynamic binaries for all plaforms,
we shouldn't try to run docker without udev sync support.

This change changes the previous warning to an Error,
unless the user explicitly overrides the warning, in
which case they're at their own risk.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah

Copy link
Copy Markdown
Member Author

ping @vbatts @calavera @icecrime ptal

@calavera

Copy link
Copy Markdown
Contributor

design LGTM

@thaJeztah

Copy link
Copy Markdown
Member Author

Adding this to the 1.11 milestone, think we should decide to do (or don't do) this before that.

@thaJeztah thaJeztah added this to the 1.11.0 milestone Mar 10, 2016
@vbatts

vbatts commented Mar 10, 2016

Copy link
Copy Markdown
Contributor

yay. This is good to see. If I remember correctly there was someone (like, only one) who had a custom, minimal linux that did not include udev, and therefore udev-sync would be false, but it would be ok as then the race condition would not be expressed. Though this is certainly a very slim use-case, as even now'a'days most tiny devices are able to run a more complete stack that includes udev.

@thaJeztah

Copy link
Copy Markdown
Member Author

Moving to code review; suggestions for improvements are welcome, I only took the most minimal changes for this PR, so if there's more changes needed, please tell

@thaJeztah

Copy link
Copy Markdown
Member Author

Looks like #20819 isn't resolved yet, just hit this; https://jenkins.dockerproject.org/job/Docker-PRs-WoW-TP4/2450/console

23:22:47 
23:22:47 ----------------------------------------------------------------------
23:22:47 FAIL: docker_cli_ps_test.go:475: DockerSuite.TestPsListContainersFilterExited
23:22:47 
23:22:47 docker_cli_ps_test.go:500:
23:22:47     c.Assert(ids, checker.HasLen, 2, check.Commentf("Should be 2 zero exited containers got %d: %s", len(ids), out))
23:22:47 ... obtained []string = []string{"031a4f94ddb7412b567546332758362338ef476109731d1e834d7de09fb28f0f", "9ccfff5673952b69b25ce11f1b1a38173a6452acd5fbd67c2c7b3845b72c303a", "33cf8753b9d147799d85e215242c112fdbc8243697dbea215b5f290bde0ddb24"}
23:22:47 ... n int = 2
23:22:47 ... Should be 2 zero exited containers got 3: 031a4f94ddb7412b567546332758362338ef476109731d1e834d7de09fb28f0f
23:22:47 9ccfff5673952b69b25ce11f1b1a38173a6452acd5fbd67c2c7b3845b72c303a
23:22:47 33cf8753b9d147799d85e215242c112fdbc8243697dbea215b5f290bde0ddb24
23:22:47 
23:22:47 

@calavera

Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@cpuguy83

Copy link
Copy Markdown
Member

LGTM

cpuguy83 added a commit that referenced this pull request Mar 15, 2016
Fail when devicemapper doesn't support udev-sync
@cpuguy83
cpuguy83 merged commit 37a1fad into moby:master Mar 15, 2016
@thaJeztah
thaJeztah deleted the dont-run-without-udev-sync branch March 15, 2016 07:02
@manoj0077

Copy link
Copy Markdown

@thaJeztah When udev sync is enabled also, we are facing this issue #4036 ... Is there an issue opened on this ?

@thaJeztah

Copy link
Copy Markdown
Member Author

@manoj0077 please open an issue with more details; it's still possible that it's a different issue, but results in a similar error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants