Skip to content

Revert shared container rootfs - #13854

Merged
icecrime merged 1 commit into
moby:masterfrom
crosbymichael:revert-shared-root
Jun 10, 2015
Merged

icecrime merged 1 commit into
moby:masterfrom
crosbymichael:revert-shared-root

Conversation

@crosbymichael

Copy link
Copy Markdown
Contributor

This is breaking various setups where the host's rootfs is mount shared
correctly and breaks live migration with bind mounts.

Fixes #13775

Signed-off-by: Michael Crosby [email protected]

This is breaking various setups where the host's rootfs is mount shared
correctly and breaks live migration with bind mounts.

Signed-off-by: Michael Crosby <[email protected]>
@icecrime

Copy link
Copy Markdown
Contributor

@rhatdan @vbatts We're gonna take this in for 1.7.0 instead of reverting docker-archive/libcontainer#520, but you're probably going to have to take this into account.

@icecrime

Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

@vbatts

vbatts commented Jun 10, 2015

Copy link
Copy Markdown
Contributor

hold on. he has not isolated it to this

@rhatdan

rhatdan commented Jun 10, 2015

Copy link
Copy Markdown
Contributor

We disagree with this. This is a needed feature, and you are reverting it for an unknown, potentially kernel issue.

@calavera

Copy link
Copy Markdown
Contributor

@vbatts I think @crosbymichael found other broken cases due to making the root slave. We should keep the old behavior until we can ensure that slave works 100% of the times.

@rhatdan

rhatdan commented Jun 10, 2015

Copy link
Copy Markdown
Contributor

Can't we make this a daemon flag, and then set allow admins to set it.

@icecrime

Copy link
Copy Markdown
Contributor

@rhatdan We're not contesting the feature in itself, we're just saying that we can't ship 1.7.0 with the new default, and right now we're blocked by this.

@calavera

Copy link
Copy Markdown
Contributor

@rhatdan we can do that, or even try to detect it, like #13849 did, but we need to keep the option that's stable for now.

@jessfraz

Copy link
Copy Markdown
Contributor

in 1.8 we can have a daemon flag possibly (mo flags mo problems) but for 1.7 we are going back to original behavior we are not going to break 90% of kernels for some new thing

@crosbymichael

Copy link
Copy Markdown
Contributor Author

With this we get errors when we don't have this set causing mount sharing issues.

Error (mount.c:681): Mount 197 (master_id: 1 shared_id: 0) has unreachable sharing

@vbatts

vbatts commented Jun 10, 2015

Copy link
Copy Markdown
Contributor

... i'm not seeing where 90% of kernels are broken...

@rhatdan

rhatdan commented Jun 10, 2015

Copy link
Copy Markdown
Contributor

We have seen no breakage in Fedora Rawhide docker-1.7 release, and most of our teams are using docker-1.7.

@jessfraz

Copy link
Copy Markdown
Contributor

"the norm" is what I was referring to

@jessfraz

Copy link
Copy Markdown
Contributor

as per @rhatdan comment here
#13775 (comment)

"I believe the opposite is true for regular kernels."

@rhatdan

rhatdan commented Jun 10, 2015

Copy link
Copy Markdown
Contributor

The default for the kernel is file systems with private. On systemd based systemd the default is changed to rshared.

rprivate surpises Admins. In that if you setup a file system mount namespace, most users would expect mounts on the host to show up in the container, but they don't unless / is rshared with its children.

We have been running rhel/Fedora kernels like this since before RHEL6 arrived. Probably back to Fedora 4 or 5.

@icecrime

Copy link
Copy Markdown
Contributor

The current situation is that we introduced a regression that was reported in #13775, and noticed by @crosbymichael in his CRIU experiments. It's blocking the 1.7.0 release process, and we need to move forward, which is why I'm merging this.

That being said, I understand how mounts not propagating can be surprising, and we probably shouldn't stop there. I'm gonna be honest, I don't see many use cases for it, but if you want to submit a PR adding a daemon flag to offer that choice, I think we'd take it.

So to sum up, this PR is not us disagreeing with you, it's just us being in a code freeze and having a regression that needs fixing :-/ Sorry.

icecrime pushed a commit that referenced this pull request Jun 10, 2015
@icecrime
icecrime merged commit 9da65ed into moby:master Jun 10, 2015
@crosbymichael
crosbymichael deleted the revert-shared-root branch June 10, 2015 21:13
@jessfraz

Copy link
Copy Markdown
Contributor

cherry-picked

@rhatdan

rhatdan commented Jun 11, 2015

Copy link
Copy Markdown
Contributor

The biggest use case this breaks is using autofs on the host to mount directories into containers.

@rhatdan

rhatdan commented Jun 11, 2015

Copy link
Copy Markdown
Contributor

But other use cases like using SPC container on the host where you have / mounted into the container, if mounts on the host don't show up in this environment, then users see breakage.

@rhatdan

rhatdan commented Jun 11, 2015

Copy link
Copy Markdown
Contributor

CRIU issue would seem to be breakage in the kernel, I don't know what CRIU would care about the way the shareing is setup for mount points.

@ghost

ghost commented Jun 27, 2015

Copy link
Copy Markdown

This revert broke sharing new namespaces from host to container. We use (used?) that in Kolla to split all of the Openstack Neutron components into separate containers.

We would love to see a way to turn off private namespaces, even if the default remains on. A daemon argument would be fine with me.

@pmorie

pmorie commented Jun 29, 2015

Copy link
Copy Markdown
Contributor

This also breaks running the kubernetes kubelet and the OpenShift node controller (or all-in-one) binary in a container.

It would be great if we could control the propagation mode of the mount with a flag on the bindmount spec a la :Z .

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.

8 participants