Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1575027
Summary: | Cannot start exited container if disabled : false for oci-register-machine | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | aalba6675 <ascanio.alba7> |
Component: | podman | Assignee: | Brent Baude <bbaude> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 28 | CC: | dwalsh, lsm5, mheon |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | podman-0.6.4-1.gitd5beb2f.fc28 podman-0.6.4-1.gitd5beb2f.fc27 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-06-28 14:08:43 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
aalba6675
2018-05-04 14:57:01 UTC
Any information in the journal? Enable register machine - encountered a different problem. Some podman actions kill the whole desktop session 1. Run container: podman run --name alice_gold --entrypoint /sbin/init fedora:28 2. Stop gracefully: podman stop alice_gold 3. Now start again podman start alice_gold or even podman rm alice_gold Wow - this can actually kill the whole Wayland desktop; in fact some random podman actions like podman rm kill the whole session. It's like something is confused between the real desktop user session and the podman session. This killed Wayland and sent me back to gdm. In a root console session, this can happen to and dump me back to the login prompt. These session deaths don't happen if register machine is off May 05 10:48:59 localhost.localdomain oci-register-machine[11004]: 2018/05/05 10:48:59 Register machine: poststop 330018251ce5deafe9480f2d17885a4636c> May 05 10:48:59 localhost.localdomain systemd[1]: Stopping User Manager for UID 1050... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Virtual filesystem service - GNOME Online Accounts monitor... May 05 10:48:59 localhost.localdomain systemd[3258]: dbus.service: Failed to kill control group /user.slice/user-1050.slice/user/dbus.se> May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping D-Bus User Message Bus... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Virtual filesystem service - digital camera monitor... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Tracker metadata database store and lookup manager... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopped target Default. May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Evolution address book service... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Virtual filesystem metadata service... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping sandboxed app permission store... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Sound Service... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Virtual filesystem service - Media Transfer Protocol monitor... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Virtual filesystem service... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Evolution source registry... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Virtual filesystem service - Apple File Conduit monitor... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Virtual filesystem service - disk device monitor... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Accessibility services bus... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopping Evolution calendar service... May 05 10:48:59 localhost.localdomain systemd[3258]: Stopped Virtual filesystem metadata service. May 05 10:48:59 localhost.localdomain systemd[3258]: Stopped Virtual filesystem service - GNOME Online Accounts monitor. May 05 10:48:59 localhost.localdomain systemd[3258]: Stopped Virtual filesystem service - Media Transfer Protocol monitor. May 05 10:48:59 localhost.localdomain systemd[3258]: Stopped sandboxed app permission store. May 05 10:48:59 localhost.localdomain systemd[3258]: Stopped Virtual filesystem service - digital camera monitor. May 05 10:48:59 localhost.localdomain gnome-session[3287]: gnome-session-binary[3287]: WARNING: Lost name on bus: org.gnome.SessionManager May 05 10:48:59 localhost.localdomain gnome-session-binary[3287]: WARNING: Lost name on bus: org.gnome.SessionManager oci-register-machine disable: false seems to be badly broken :( Yes I saw the same thing. A couple of problems I am seeing. The failure of the runing of oci-register-machine the second time is caused because for some reason, when you do a podman stop, it looks like runc is not calling the poststop branch of oci-register-machine to remove the enter in machinectl. Then when you run podman start, oci-register-machine tries to register the container a second time, and fails to realize it is already registered. If you then run the machine in permissive mode after the failure, runc does call the post install script. This reveals a second problem in oci-register-machine's running, it is not running inside the containers cgroup, it is running in the users cgroup, and systemd tries to kill all processes in the users cgroup when it calls poststop. For now we need to keep oci-register-machine disabled when running podman. This is pretty broken, and oci-register-machine does not add much value at this time. podman-0.6.4-1.gitd5beb2f.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5142d70592 podman-0.6.4-1.gitd5beb2f.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-2b96ea9fec podman-0.6.4-1.gitd5beb2f.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-5142d70592 podman-0.6.4-1.gitd5beb2f.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-2b96ea9fec podman-0.6.4-1.gitd5beb2f.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report. podman-0.6.4-1.gitd5beb2f.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |