Skip to content

Put dm.override_udev_sync_check back. - #14415

Merged
icecrime merged 2 commits into
moby:masterfrom
calavera:warning_on_no_dev_sync
Jul 7, 2015
Merged

icecrime merged 2 commits into
moby:masterfrom
calavera:warning_on_no_dev_sync

Conversation

@calavera

@calavera calavera commented Jul 6, 2015

Copy link
Copy Markdown
Contributor
  • Warn when udev_sync is not enabled either because it's a statically linked binary or an old OS version.-
  • Update the link to the daemon storage options documentation.

This reverts commit 0a37629.

/cc @vbatts, @icecrime

Signed-off-by: David Calavera [email protected]

@icecrime

icecrime commented Jul 6, 2015

Copy link
Copy Markdown
Contributor

For context: this is not only a revert, but also changes this essential line to make it a warning rather than an error.

This is something to avoid blocking users who were historically using devicemapper with a statically linked binary on Ubuntu, which we acknowledge is unreliable, but for which we don't have a solid, actionable alternative to provide right now.

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.

LGTM.

@jessfraz

jessfraz commented Jul 6, 2015

Copy link
Copy Markdown
Contributor

SGTM

@crosbymichael

Copy link
Copy Markdown
Contributor

LGTM

I would probably do things like this in two commits, one for the revert and one for the change so it's clean what was changed.

@icecrime icecrime added this to the 1.7.1 milestone Jul 6, 2015
@calavera
calavera force-pushed the warning_on_no_dev_sync branch from a071820 to 5476f00 Compare July 7, 2015 01:20
@calavera
calavera force-pushed the warning_on_no_dev_sync branch from 5476f00 to ec4b17a Compare July 7, 2015 01:22
@calavera

calavera commented Jul 7, 2015

Copy link
Copy Markdown
Contributor Author

@crosbymichael divided in two commits

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.

the override flag will be unused in this setup, but needed for the 1.8 release. They still need the warning regardless of the override check

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.

what should we do with the check then?

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.

I think what @vbatts means is that the if !devices.overrideUdevSyncCheck { check here is not necessary. I don't think it makes a big difference and I believe we can keep it, but maybe I'm missing something.

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.

good question ... devicemapper.UdevSetSyncSupport(true) is needed, but for 1.7.1 we could can skip/comment-out devices.overrideUdevSyncCheck test here

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.

sounds good.

@calavera
calavera force-pushed the warning_on_no_dev_sync branch 2 times, most recently from c2ab75f to 1e28004 Compare July 7, 2015 19:26
This reverts commit 0a37629.

Signed-off-by: David Calavera <[email protected]>
@calavera
calavera force-pushed the warning_on_no_dev_sync branch from 1e28004 to 802cd53 Compare July 7, 2015 19:45
@icecrime

icecrime commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@vbatts

vbatts commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

LGTM

@cpuguy83

cpuguy83 commented Jul 7, 2015

Copy link
Copy Markdown
Member

I see you are setting the override sync, but I don't see it being used by anything. Am I missing something?

@vbatts

vbatts commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

not missing anything. this is revert of behavior that 1.7.0 blocks for
many. It will be used in 1.8

On Tue, Jul 7, 2015 at 4:30 PM, Brian Goff [email protected] wrote:

I see you are setting the override sync, but I don't see it being used by
anything. Am I missing something?

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

@calavera
calavera force-pushed the warning_on_no_dev_sync branch from 802cd53 to e271315 Compare July 7, 2015 21:10
icecrime pushed a commit that referenced this pull request Jul 7, 2015
Put dm.override_udev_sync_check back.
@icecrime
icecrime merged commit f7ea911 into moby:master Jul 7, 2015
@calavera
calavera deleted the warning_on_no_dev_sync branch July 7, 2015 21:39
@calavera

calavera commented Jul 7, 2015

Copy link
Copy Markdown
Contributor Author

Cherry picked into #14264

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.

7 participants