Skip to content

devmapper: udev sync is a requirement - #11412

Merged
tiborvass merged 2 commits into
moby:masterfrom
vbatts:vbatts-dm_sync_is_required
Apr 10, 2015
Merged

tiborvass merged 2 commits into
moby:masterfrom
vbatts:vbatts-dm_sync_is_required

Conversation

@vbatts

@vbatts vbatts commented Mar 16, 2015 •

Copy link
Copy Markdown
Contributor

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.

@vbatts

vbatts commented Mar 16, 2015

Copy link
Copy Markdown
Contributor Author

perhaps this also needs a storage option parameter like dm.use_regardless_of_udev_sync_i_know_what_i_am_asking_for=true
for the folks that are using this on ubuntu and being affected, but we can't help due the version of their udev and libdevmapper...

@jessfraz

Copy link
Copy Markdown
Contributor

we run tests on a fedora machine on every push to master we could make sure its tested there

@jessfraz jessfraz added this to the 1.6.0 milestone Mar 16, 2015
@unclejack

Copy link
Copy Markdown
Contributor

@vbatts I think we need a special flag to allow this to be bypassed so that it can be tested.

@vbatts

vbatts commented Mar 16, 2015

Copy link
Copy Markdown
Contributor Author

Will do
On Mar 16, 2015 5:15 PM, "unclejack" [email protected] wrote:

@vbatts https://github.com/vbatts I think we need a special flag to
allow this to be bypassed so that it can be tested.

—
Reply to this email directly or view it on GitHub
#11412 (comment).

@vbatts

vbatts commented Mar 17, 2015

Copy link
Copy Markdown
Contributor Author

@jfrazelle @unclejack @rhvgoyal added a flag

@rhvgoyal

Copy link
Copy Markdown
Contributor

@vbatts

Few more suggestions for flag name.

"dm.ignore_udev_sync_check"
"dm.override_udev_sync_check"

@rhvgoyal

Copy link
Copy Markdown
Contributor

@vbatts

Can we also modify tests to use above flag by default?

@vbatts

vbatts commented Mar 17, 2015

Copy link
Copy Markdown
Contributor Author

perhaps 'override...', because we are still checking it, so we can log in the daemon that it's an issue.

@rhvgoyal

Copy link
Copy Markdown
Contributor

@vbatts

"dm.override_udev_sync_check" sounds good.

@vbatts
vbatts force-pushed the vbatts-dm_sync_is_required branch from 58a0021 to 6c313c4 Compare March 17, 2015 15:24
@vbatts

vbatts commented Mar 17, 2015

Copy link
Copy Markdown
Contributor Author

@rhvgoyal updated PTAL

@vbatts

vbatts commented Mar 17, 2015

Copy link
Copy Markdown
Contributor Author

and added a default for the tests to override the sync requirement

@rhvgoyal

Copy link
Copy Markdown
Contributor

@vbatts

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?

@vbatts

vbatts commented Mar 17, 2015

Copy link
Copy Markdown
Contributor Author

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]
wrote:

@vbatts https://github.com/vbatts

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?

—
Reply to this email directly or view it on GitHub
#11412 (comment).

@rhvgoyal

Copy link
Copy Markdown
Contributor

Ok, thanks.

LGTM.

@rhvgoyal

Copy link
Copy Markdown
Contributor

@vbatts

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.

@vbatts

vbatts commented Mar 17, 2015

Copy link
Copy Markdown
Contributor Author

that's why the storage-opt flag is there. It's not supported in the way
they're running it presently.
if with the upgrade, they are then required to add the flag, it will be an
explicit indication that they're running it in an unsupported way, but
still have the ability to do so. Even if for migrating to a supported
setup, or switching to a docker binary that supports udev sync.

On Tue, Mar 17, 2015 at 1:41 PM, Vivek Goyal [email protected]
wrote:

@vbatts https://github.com/vbatts

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.

—
Reply to this email directly or view it on GitHub
#11412 (comment).

@rhvgoyal

Copy link
Copy Markdown
Contributor

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.

@unclejack

Copy link
Copy Markdown
Contributor

Perhaps calling it something like unsafe_override_udev_sync_check would send a very clear message that this isn't safe, nor supported. Whatever it's called, we probably want to have something like unsafe or unsupported in the flag itself to make it clear this voids the warranty.

@moxiegirl

Copy link
Copy Markdown
Contributor

ping @fredlf @SvenDowideit @jamtur01

Comment thread daemon/graphdriver/devmapper/README.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

devicemapper udev ??? The use/non-use is confusing.

@vbatts
vbatts force-pushed the vbatts-dm_sync_is_required branch 2 times, most recently from 10c2d13 to b5c5d78 Compare April 10, 2015 18:33
@jamtur01

Copy link
Copy Markdown
Contributor

@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.

@vbatts

vbatts commented Apr 10, 2015

Copy link
Copy Markdown
Contributor Author

@jamtur01 sorry! i thought i saw them slow down, so i pushed :-\

@jamtur01

Copy link
Copy Markdown
Contributor

No worries - love the lightning fast fixes! :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

udev sync is not supported

or

udev sync support is false

Ping @moxiegirl @jamtur01

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ah, perhaps "supported" would be good there.

@vbatts
vbatts force-pushed the vbatts-dm_sync_is_required branch from b5c5d78 to 757b30b Compare April 10, 2015 19:24
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]>
@vbatts
vbatts force-pushed the vbatts-dm_sync_is_required branch from 757b30b to 0e21782 Compare April 10, 2015 19:43
@vbatts

vbatts commented Apr 10, 2015

Copy link
Copy Markdown
Contributor Author

Notes formatting updated. PTAL

@moxiegirl

Copy link
Copy Markdown
Contributor

@jamtur01 ping back...let us know if you are satisfied. :D

@jamtur01

Copy link
Copy Markdown
Contributor

Docs LGTM

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.

docker fails to mount the block device for the container on devicemapper

10 participants