Bug 1307080
Summary: | nspawn catches kill signal only when using jenkins | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | John Walter <jwalter> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED ERRATA | QA Contact: | Frantisek Sumsal <fsumsal> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.2 | CC: | fsumsal, jscotka, lnykryn, matthew, systemd-maint-list, tfrazier |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | systemd-219-22.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-04 00:51:51 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
John Walter
2016-02-12 16:14:11 UTC
The patch is really easy to backport, so devel_ack+ Since the original report doesn't make it clear, this issue impacts RHEL7.2, running systemd-219-19.el7.x86_64. Example: [root@jenkins-slave2 ~]# cat /var/lib/jenkins/nspawn/run.sh #!/bin/bash lxc_root="$(pwd)/nspawn-lxc" systemd-nspawn -q -D "$lxc_root" --bind /var/lib/jenkins "$@" Before patch: + sudo /var/lib/jenkins/nspawn/run.sh yum repolist Container nspawn-lxc-rhel7-x86_64 terminated by signal KILL. After patch + sudo /var/lib/jenkins/nspawn/run.sh yum repolist repo id repo name status optional optional 4385 os os 4656 supplementary supplementary 16 repolist: 9057 pushed to staging -> https://github.com/lnykryn/systemd-rhel/commit/98e5c02b1602eaaac5c63045fa7a06e40249445e -> post Verified with systemd-219-27.el7. Old package: # echo test | systemd-nspawn -D 'cont.TbCGW' dmesg Spawning container cont.TbCGW on /tmp/tmp.yYz3EA2QW3/cont.TbCGW. Press ^] three times within 1s to kill container. [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct <...> Container cont.TbCGW terminated by signal KILL. # echo $? 1 New package: # echo test | systemd-nspawn -D 'cont.CSnRn' dmesg Spawning container cont.CSnRn on /tmp/tmp.CGEoINzReM/cont.CSnRn. Press ^] three times within 1s to kill container. [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct <...> Container cont.CSnRn exited successfully # echo $? 0 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2216.html |