Repository navigation
Revert shared container rootfs - #13854
Conversation
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]>
|
@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. |
|
LGTM |
1 similar comment
|
LGTM |
|
hold on. he has not isolated it to this |
|
We disagree with this. This is a needed feature, and you are reverting it for an unknown, potentially kernel issue. |
|
@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. |
|
Can't we make this a daemon flag, and then set allow admins to set it. |
|
@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. |
|
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 |
|
With this we get errors when we don't have this set causing mount sharing issues.
|
|
... i'm not seeing where 90% of kernels are broken... |
|
We have seen no breakage in Fedora Rawhide docker-1.7 release, and most of our teams are using docker-1.7. |
|
"the norm" is what I was referring to |
|
as per @rhatdan comment here
|
|
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. |
|
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. |
Revert shared container rootfs
|
cherry-picked |
|
The biggest use case this breaks is using autofs on the host to mount directories into containers. |
|
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. |
|
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. |
|
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. |
|
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 |
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]