#1142949 autopkgtest: --shell/--shell-fail no longer provides a proper interactive shell with Incus

#1142949#5
Date:
2026-07-28 15:25:08 UTC
From:
To:
The --shell and --shell-fail options used to provide a useful
interactive shell with the Incus virtualization server.  Since
autopkgtest 6.0, they no longer do.  For example, `autopkgtest --shell
hello -- incus autopkgtest/debian/sid/amd64` gives me:

  autopkgtest [16:21:50]:  - - - - - - - - - - running shell - - - - - - - - - -
  bash: cannot set terminal process group (-1): Inappropriate ioctl for device
  bash: no job control in this shell

This is very difficult to work with: for example, neither command-line
editing nor full-screen editors work.

Reverting
https://salsa.debian.org/ci-team/autopkgtest/-/commit/509db28362e7d4e8dd64e4ff1842ad82bd04ebea
fixes the problem.

Thanks,

#1142949#10
Date:
2026-07-29 08:57:14 UTC
From:
To:
Thanks Colin for this bug report. I think I'll just do the revert, which
means Incus/LXD will auto-detect whether there is a terminal attached or
not. The change comes from this suggestion:

https://github.com/canonical/lxd/issues/17797#issuecomment-4459954015

(I could reproduce what I describe in that bug report with Incus too.)

I do not believe --force-noninteractive made a noticeable difference; on
the contrary this change did:

https://salsa.debian.org/ci-team/autopkgtest/-/commit/4d7c979c9ea35cc37

Cheers,

Paride

#1142949#13
Date:
2026-07-29 15:08:18 UTC
From:
To:
Hello,

Bug #1142949 in autopkgtest reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/ci-team/autopkgtest/-/commit/8358da5b272288bc605658d8c8a66e7b3373d127
------------------------------------------------------------------------
lxd auxverb: do not execute commands with --force-noninteractive

Do not execute auxverb commands using --force-noninteractive as that
breaks --shell/--shell-fail.

The idea of using --force-noninteractive came from [1], with the problem
described there also being reproducible using Incus. I do not believe
--force-noninteractive made a big difference, while --disable-stdin did.

[1] https://github.com/canonical/lxd/issues/17797#issuecomment-4459954015

This reverts commit 509db28362e7d4e8dd64e4ff1842ad82bd04ebea.

Closes: #1142949
Thanks: Colin Watson
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1142949

#1142949#18
Date:
2026-07-29 18:11:32 UTC
From:
To:
Hello,

Bug #1142949 in autopkgtest reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/ci-team/autopkgtest/-/commit/8358da5b272288bc605658d8c8a66e7b3373d127
------------------------------------------------------------------------
lxd auxverb: do not execute commands with --force-noninteractive

Do not execute auxverb commands using --force-noninteractive as that
breaks --shell/--shell-fail.

The idea of using --force-noninteractive came from [1], with the problem
described there also being reproducible using Incus. I do not believe
--force-noninteractive made a big difference, while --disable-stdin did.

[1] https://github.com/canonical/lxd/issues/17797#issuecomment-4459954015

This reverts commit 509db28362e7d4e8dd64e4ff1842ad82bd04ebea.

Closes: #1142949
Thanks: Colin Watson
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1142949