[pkg-lxc-devel] Bug#934983: lxc: lxc-attach loses exit code of executed command

Antonio Terceiro terceiro at debian.org
Sun Aug 18 17:12:23 BST 2019


Control: retitle 934983 lxc: lxc-attach loses exit code of executed command

On Sat, Aug 17, 2019 at 02:00:32PM -0300, Antonio Terceiro wrote:
> Control: clone -1 -2
> Control: reassign -2 lxc 1:3.1.0+really3.0.4-1
> Control: retitle -2 lxc: breaks autopkgtest
> Control: affects -2 autopkgtest
> 
> On Wed, Aug 14, 2019 at 07:29:53PM -0300, Antonio Terceiro wrote:
> > Package: autopkgtest
> > Version: 5.10
> > Severity: important
> [...]
> > notable/weird lines:
> > 
> > autopkgtest [19:08:37]: Updating AppArmor rules to allow autopilot introspection for all clicks (will take a minute)...
> > sh: 1: cannot create /var/cache/apparmor/click-ap.rules: Directory nonexistent
> > 
> > and
> > 
> > sh: 1: cannot create /var/cache/apparmor/click-ap.rules: Directory nonexistent
> > 
> > Running the same test locally with null virtualization (up to date unstable)
> > does the right thing:
> 
> I tried in a buster VM, and things work as expected with both `null` and
> `lxc`. Then I tried downgrading lxc to the version in unstable on my
> main machine, and things work again.
> 
> So this is a problem with the lxc in unstable (and sadly on testing as
> well).
> 
> I still need to debug to figure out the exact problem.

Reduced this to a regreassion in lxc-attach; it stopped reproducing the
exit code of the executed command

with 3.0.3:

# dpkg-query --show lxc
lxc     1:3.1.0+really3.0.3-8
# lxc-start -n test
# lxc-attach -n test false; echo $?
1
# lxc-attach -n test true; echo $?
0
# lxc-ls -f

with 3.0.4:

# dpkg-query --show lxc
lxc     1:3.1.0+really3.0.4-1
# lxc-start -n test
# lxc-attach -n test false; echo $?
0
# lxc-attach -n test true; echo $?
0


I will now try to bisect this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-lxc-devel/attachments/20190818/d6b58248/attachment-0003.sig>


More information about the Pkg-lxc-devel mailing list