lxc-attach command does not return error exit code if the command is failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Debian) |
Fix Released
|
Unknown
|
|||
lxc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
lxc-attach command does not return error exit code if the command is failed on Ubuntu Focal :
root@scribe:~# lxc-start --version
3.0.4
root@scribe:~# lxc-attach --logpriority=DEBUG --name=addc -- exit
lxc-attach: addc: attach.c: lxc_attach_
root@scribe:~# echo $?
0
The problem is fixed upstream : https:/
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: lxc-utils 3.0.4-0ubuntu2
ProcVersionSign
Uname: Linux 5.4.0-12-generic x86_64
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
Date: Tue Feb 4 16:01:30 2020
InstallationDate: Installed on 2020-01-10 (25 days ago)
InstallationMedia: Ubuntu-Server 20.04 LTS "Focal Fossa" - Alpha amd64 (20200105)
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
defaults.conf:
lxc.net.0.type = veth
lxc.net.0.link = lxcbr0
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx
lxc-net.default:
USE_LXC_
LXC_BRIDGE="br0"
LXC_ADDR=
LXC_NETMASK=
LXC_NETWORK=
Changed in lxc (Debian): | |
status: | Unknown → Fix Released |
Changed in lxc (Ubuntu): | |
status: | New → Fix Committed |
This bug was fixed in the package lxc - 1:4.0.0-0ubuntu2
---------------
lxc (1:4.0.0-0ubuntu2) focal; urgency=medium
* Cherry-pick upstream bugfixes: non-root- user-cannot- write-dev- stdout. patch fix-uninitializ ed-transient_ len-warning. patch rework- fix_stdio_ permissions. patch use-setres- u-g-id- in-lxc_ switch_ uid_gid. patch fix-build- warning- on-GCC- 7.patch er-poll- takes-milliseco nd-not- seconds. patch
- 0036-fix-
- 0037-cgroups-
- 0038-utils-
- 0039-utils-
- 0040-cgroups-
- 0041-lxccontain
-- Stéphane Graber <email address hidden> Thu, 02 Apr 2020 12:25:20 -0400