Bug 1298234
Summary: | systemd-nspawn container fails to boot for the first time when --link-journal=try-guest is used | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Frantisek Sumsal <fsumsal> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED WONTFIX | QA Contact: | qe-baseos-daemons |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.2 | CC: | mscherer, msekleta, systemd-maint-list |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-12-15 07:39:34 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
Frantisek Sumsal
2016-01-13 15:04:38 UTC
So I can reproduce this one, and I can also say this is fixed in Fedora 23. I suspect this work on the first time due to 8054d749c4ad69503b5b2735864f8e72a1b73e62 So I did took a closer look, because it did bother me a lot, but gdb seems to interfere with systemd nspawn, as my error point to "open_console", and I think that's because i run in gdb. I tried with gdbserver, but also didn't got far. So the problem likely come from /etc/machine-id failing to be created in the container. After using strace properly, i see that it fail with "failed to parse machine-id". This was likely fixed by e01ff70a77e78. Ok so the fix/workaround is to run systemd-machine-id-setup --root, or systemd-firstboot --root. We call systemd-machine-id-setup from systemd %post during rpm installation. Hence /etc/machine-id should be present in the container after yum has finished installing packages. yeah, but it is silently ignoring all errors. systemd-machine-id-setup >/dev/null 2>&1 || : I just tried again on a centos 7, and the machine-id file is empty. I've backported 8054d749c4ad69503b5b2735864f8e72a1b73e62. Feel free to grab test packages. http://people.redhat.com/~msekleta/bz1298234/ After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |