snapd/2.57.1+22.10.1 ADT test failure with linux-raspi/5.19.0-1002.6

Bug #1991745 reported by Juerg Haefliger
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
New
Undecided
Unassigned
Kinetic
Won't Fix
Undecided
Unassigned

Bug Description

Testing failed on:
    arm64: https://autopkgtest.ubuntu.com/results/autopkgtest-kinetic/kinetic/arm64/s/snapd/20221003_171436_6321f@/log.gz

The tail of such a failure:

+ snap install --classic go
2022-10-03T17:10:59Z INFO Waiting for automatic snapd restart...
go 1.18.5 from Michael Hudson-Doyle (mwhudson) installed
+ export GOPATH=/tmp/go
+ /snap/bin/go install github.com/snapcore/spread/cmd/spread@latest
go: downloading github.com/snapcore/spread v0.0.0-20211206135717-b426a3f04d80
go: downloading github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e
go: downloading github.com/kr/text v0.1.0
go: downloading golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
go: downloading golang.org/x/net v0.0.0-20210716203947-853a461950ff
go: downloading golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914
go: downloading gopkg.in/tomb.v2 v2.0.0-20161208151619-d5d1b5820637
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
go: downloading cloud.google.com/go v0.65.0
go: downloading golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
+ groupadd --gid 12345 test
+ adduser --uid 12345 --gid 12345 --disabled-password --gecos test
Adding user `test' ...
Adding new user `test' (12345) with group `test' ...
Creating home directory `/home/test' ...
Copying files from `/etc/skel' ...
+ cat
+ /tmp/go/bin/spread -v autopkgtest:adt-local:tests/smoke/
2022-10-03 17:13:16 Found /tmp/autopkgtest.WgVVbr/build.gDT/src/spread.yaml.
2022-10-03 17:13:20 Project content is packed for delivery (11.01MB).
2022-10-03 17:13:20 Sequence of jobs produced with -seed=1664817200
2022-10-03 17:13:20 If killed, discard servers with: spread -reuse-pid=3216 -discard
2022-10-03 17:13:20 Allocating autopkgtest:adt-local...
2022-10-03 17:13:20 Waiting for autopkgtest:adt-local to make SSH available at localhost:22...
2022-10-03 17:13:20 Allocated autopkgtest:adt-local.
2022-10-03 17:13:20 Connecting to autopkgtest:adt-local...
2022-10-03 17:14:20 Discarding autopkgtest:adt-local, cannot connect: cannot connect to autopkgtest:adt-local: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
2022-10-03 17:14:20 Successful tasks: 0
2022-10-03 17:14:20 Aborted tasks: 4
error: unsuccessful run
autopkgtest [17:14:20]: test integrationtests: -----------------------]
integrationtests FAIL non-zero exit status 1
autopkgtest [17:14:21]: test integrationtests: - - - - - - - - - - results - - - - - - - - - -
autopkgtest [17:14:22]: @@@@@@@@@@@@@@@@@@@@ summary
integrationtests FAIL non-zero exit status 1

Revision history for this message
Juerg Haefliger (juergh) wrote :

This seems to be related to how snapd autopkgtest modifies the sshd_config file.

t's unclear though why this works on some kernels but not on others.

Bad test: https://autopkgtest.ubuntu.com/results/autopkgtest-kinetic/kinetic/arm64/s/snapd/20221003_171436_6321f@/log.gz

Good test: https://autopkgtest.ubuntu.com/results/autopkgtest-kinetic/kinetic/arm64/s/snapd/20221004_094939_71bd2@/log.gz

tags: added: kernel-adt-failure
Revision history for this message
Juerg Haefliger (juergh) wrote :

This snippet in debian/tests/integrationtests looks suspicious:

# ensure we can do a connect to localhost
echo ubuntu:ubuntu|chpasswd
sed -i 's/\(PermitRootLogin\|PasswordAuthentication\)\>.*/\1 yes/' /etc/ssh/sshd_config
systemctl reload ssh.service

The statement seems to modify commented lines...
And there's also:

$ cat /etc/ssh/sshd_config.d/60-cloudimg-settings.conf
PasswordAuthentication no

Revision history for this message
Juerg Haefliger (juergh) wrote :
description: updated
no longer affects: linux-raspi (Ubuntu)
no longer affects: linux-raspi (Ubuntu Kinetic)
no longer affects: ubuntu-kernel-tests
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Ubuntu 22.10 (Kinetic Kudu) has reached end of life, so this bug will not be fixed for that specific release.

Changed in snapd (Ubuntu Kinetic):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.