Repository navigation
devmapper: udev sync is a requirement - #11412
Conversation
d9d6195 to
0c61277
Compare
|
perhaps this also needs a storage option parameter like |
|
we run tests on a fedora machine on every push to master we could make sure its tested there |
|
@vbatts I think we need a special flag to allow this to be bypassed so that it can be tested. |
|
Will do
|
0c61277 to
58a0021
Compare
|
@jfrazelle @unclejack @rhvgoyal added a flag |
|
Few more suggestions for flag name. "dm.ignore_udev_sync_check" |
|
Can we also modify tests to use above flag by default? |
|
perhaps 'override...', because we are still checking it, so we can log in the daemon that it's an issue. |
|
"dm.override_udev_sync_check" sounds good. |
58a0021 to
6c313c4
Compare
|
@rhvgoyal updated PTAL |
|
and added a default for the tests to override the sync requirement |
|
This patch looks good to me. I have a general question though about tests. Generic tests in docker are run with what graphdriver? For example, say, I want to run integration tests and one of the test is whether container creation is successful or not. Will I run same test against all graph driver or there is a default graph driver which will always be used or something else? |
|
vfs is the driver the Docker-in-docker daemon is running for tests. On Tue, Mar 17, 2015 at 1:35 PM, Vivek Goyal [email protected]
|
|
Ok, thanks. LGTM. |
|
Thinking more about it. Actually this change is not upgrade proof. Those who are using device mapper and when they upgrade docker, suddenly docker daemon will stop running and that's not good. |
|
that's why the storage-opt flag is there. It's not supported in the way On Tue, Mar 17, 2015 at 1:41 PM, Vivek Goyal [email protected]
|
|
Generally I am not a big fan of such approach. Typically first we move users to a different storage driver slowly before switch is made. Given that so many people are complaining, clearly lot of people are using it. They will be upset when upgraded docker suddenly does not start. In kernel, we have a deprecated file where we put a feature which we want to deprecate. Send loud warnings if user is using those features in an effort to migrate them to alternate means. And once we are reasonably sure that most of the user's have migrated, we make the switch. Personally, I would rather continue to give loud warnings and tell users to move to aufs or overlayfs or move to dynamic binary when they complain, instead of breaking working setup. Yes, flag is there, but it is very annoying to figure out that one needs to pass a new flag before one can proceed. All I am saying that existing users might not like this change. |
|
Perhaps calling it something like |
There was a problem hiding this comment.
devicemapper udev ??? The use/non-use is confusing.
10c2d13 to
b5c5d78
Compare
|
@vbatts Did you push an update? Perhaps wait until I get a chance to finish the review? :) Makes it hard to go back and see what's changed. |
|
@jamtur01 sorry! i thought i saw them slow down, so i pushed :-\ |
|
No worries - love the lightning fast fixes! :) |
There was a problem hiding this comment.
There was a problem hiding this comment.
ah, perhaps "supported" would be good there.
b5c5d78 to
757b30b
Compare
This provides an override for forcing the daemon to still attempt running the devicemapper driver even when udev sync is not supported. Intended to be a very clear impairment for those choosing to use it. If udev sync is false, there will still be an error in the daemon logs, even when the override is in place. The docs have an explicit WARNING. Including link to the docs for users that encounter this daemon error during an upgrade. Signed-off-by: Vincent Batts <[email protected]>
757b30b to
0e21782
Compare
|
Notes formatting updated. PTAL |
|
@jamtur01 ping back...let us know if you are satisfied. :D |
|
Docs LGTM |
devmapper: udev sync is a requirement
Rather than disabling devmapper for static builds, this will get more at the root. Udev sync is a prerequisite for devicemapper. That sync is false on static builds as well.