On 2024-08-04 03:08, Paul Gevers wrote:
Control: tags -1 moreinfo
Hi Reinhard,
I'm puzzled.
On 03-08-2024 23:58, Reinhard Tartler wrote:
diff --git a/setup-commands/create-normal-user
b/setup-commands/create-normal-user
index 0d0e828..9d66694 100755
--- a/setup-commands/create-normal-user
+++ b/setup-commands/create-normal-user
@@ -21,7 +21,7 @@ create () {
adduser \
--disabled-login \
--gecos 'Temporary autopkgtest user,,,' \
- "$user" 2>&1
+ "$user" 2>&1 | grep -v 'send message failed: Operation
not permitted'
This "2>&1" was added in 5.38 to prevent the problem you're seeing. As
you see it redirects stderr to stdout, while the original report says
it fails because of output on stderr (which matches 5.37 behavior).
Does the 2>&1 not work? You're original report was against 5.37, your
patch is against 5.38.
I apologize, I was confused by the fact that this patch has not reached
sid yet.
With create-normal-user having the stderr output being redirect to
stdout using '2>&1',
the autopkgtest tool does now start executing tests. However,I still
observe confusing output:
autopkgtest [07:35:44]: host x1; command line: /usr/bin/autopkgtest
--test-name=functional -B . -- podman --init autopkgtest:etcd
info: Adding user `test' ...
logger: send message failed: Operation not permitted
info: Selecting UID/GID from range 1000 to 59999 ...
logger: send message failed: Operation not permitted
info: Adding new group `test' (1000) ...
logger: send message failed: Operation not permitted
info: Adding new user `test' (1000) with group `test (1000)' ...
logger: send message failed: Operation not permitted
info: Creating home directory `/home/test' ...
logger: send message failed: Operation not permitted
info: Copying files from `/etc/skel' ...
logger: send message failed: Operation not permitted
info: Adding new user `test' to supplemental / extra groups `users' ...
logger: send message failed: Operation not permitted
info: Adding user `test' to group `users' ...
logger: send message failed: Operation not permitted
autopkgtest [07:35:47]: testbed dpkg architecture: amd64
autopkgtest [07:35:47]: testbed apt version: 2.9.7
autopkgtest [07:35:47]: testbed running kernel: Linux 6.9.12-amd64 #1
SMP PREEMPT_DYNAMIC Debian 6.9.12-1 (2024-07-27)
None of that is particularly helpful and confusing at best. Filtering
out known harmless error message will avoid users scratching their
heads, wasting time on debugging and as such lead to better UX.