-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop /dev/pts from bind mount locations #2692
Conversation
@Conan-Kudo Hmm, this is an unexpected effect of the change that I don't see with the builds in obs. Can you give me a bit more details what exactly is causing trouble ? Thanks |
According to @nirik, it is unmounting the real |
For what it's worth, this would be a problem with OBS deployments in the public cloud, since nested virtualization isn't a thing there and OBS falls back to chroots in that case and works just like Koji does. |
Hmm, ok but that would then be a problem for everybody building with kiwi locally right ? I do not see this behavior when I build an image just with kiwi on my system. I tested this with
So my system /dev/pts was not touched and I'm not aware that umounting a bind location will umount the origin too. So before we revert this I would really like to understand why kiwi is causing this trouble Thanks |
Yes, this is very weird. :( I have been unable to duplicate it here in just mock with old-chroot. :( The /dev/pts mount is weird though. It's hard coded into systemd to mount it, it has no fstab entry or mount unit that I can find. systemd-nspawn (the 'default' mock chroot) mounts it's own:
I will try and duplicate in a old mock chroot with a kiwi task. I think thats the interaction that somehow causes it |
I can definitely duplicate it in koji / old-mock-chroot. I wonder if it could be something around using lazy unmounts and /dev and /dev/pts are both umounted and there's some kind of race there with a submount? Also, seems like mock is doing some umounting too...
Happy to try and get more detailed info... |
@Conan-Kudo @nirik Thanks for digging into this. I'm fine with the revert to avoid issues on your side. I believe image builds that requires /dev/pts in some script coding could also temporary @Conan-Kudo I saw you just reverted the complete commit, can you please make sure the test stays (reduced by the dev/pts mount) because I don't want to loose that. Thanks |
e1a0759
to
d4c41b9
Compare
This has created havoc in the Fedora build environments by fully unmounting /dev/pts and breaking the builders for subsquent tasks. This is a partial revert of commit daf1323.
d4c41b9
to
7d0edaa
Compare
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, looks good to me.
@nirik if you happen to find the root cause and it's not kiwi let's try to fix that part. If you or @Conan-Kudo believe it's better to revert and merge this PR I'm fine if you go ahead and merge it.
Yeah, will let you know. I am still not sure whats happening. ;( I do note that with sudo you can drop in a file in /etc/sudoers.d/ with: Defaults !requiretty and it won't need a pty. But I suppose it depends on your use case there... |
Well, you shouldn't need |
Yeah, it was a customer use case and I did not took a closer look what they are doing. I just thought it can't hurt to map another common kernel filesystem to the build process... that assumption was pretty wrong as we see ;) |
This has created havoc in the Fedora build environments by fully unmounting /dev/pts and breaking the builders for subsquent tasks.
This is a partial revert of commit daf1323.