offlineimap3 dep8 failure with testgsshmail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
offlineimap3 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
1121s testsshmail FAIL non-zero exit status 1
noble has a git snapshot of this package from Dec 1st. Debian updated it on Dec 18 to a version with a new DEP8 test, named testsshmail, in version 0.0~git20231218
Unfortunately the test is not run with `set -x` so the autopkgtest logs do not indicate where in the script it is failing. However, if I run the test locally I can reproduce the failure, and by adding `-x` I found it is failing on the indicated line:
echo "Port 22222" >> /etc/ssh/
systemctl restart ssh.service
...
cd /home/${user_login}
su ${user_login} -c "ssh-keygen -f testkey -N \"\""
su ${user_login} -c "mkdir -p ~/.ssh"
su ${user_login} -c "ssh-keyscan -p 22222 localhost > ~/.ssh/known_hosts" # <-- ERROR
su ${user_login} -c "sshpass -p ${user_pass} ssh-copy-id -p 22222 -i ~/testkey ${user_
su ${user_login} -c "offlineimap --info -c offlinerc.test"
su ${user_login} -c "offlineimap -o -c offlinerc.test"
Logging in as ${user_login} and running ssh-keyscan manually, it works with -p 22 but not -p 22222. In examining the /etc/ssh/
# Port and ListenAddress options are not used when sshd is socket-activated,
# which is now the default in Ubuntu. See sshd_config(5) and
# /usr/share/
#Port 22
...
Port 22222
So, appending a Port argument to the ssh config file is invalid in Ubuntu, for the documented reasons. For this reason, the test case may pass on Debian but won't on Ubuntu, since the sshd service won't be accessible on this port.
Changed in offlineimap3 (Ubuntu): | |
importance: | Undecided → Medium |
(Note that there are warnings about the python crypt module being deprecated. That is a red herring; all three dep8 tests are set to ignore stderr so don't appear to treat that warning as a failure.)