Source: isc-dhcp
Version: 4.4.3-P1-5
Severity: important
X-Debbugs-Cc: richard.lewis.deb...@googlemail.com

Dear Maintainer,

The client-server autopkgtest for isc-dhcp fails when run in an 'unshare' 
'container'
as it can't create a netns:

Removing autopkgtest-satdep (0) ...
autopkgtest [20:39:58]: test client-server: [-----------------------
+ nsserver=server
+ nsclient=client
+ ip_addr_server=10.42.42.1/24
+ ifaceserver=veth-server
+ ifaceclient=veth-client
+ ip netns add server
setns: Operation not permitted
autopkgtest [20:39:59]: test client-server: -----------------------]
autopkgtest [20:39:59]: test client-server:  - - - - - - - - - - results - - - 
- - - - - - -
client-server        FAIL non-zero exit status 1

im running this with gbp and sbuild, so something like:

'gbp buildpackage --git-builder=sbuild --run-autopkgtest -d unstable'


(it is allowed to do 'unshare --net' in the unshared 'container', so i expect 
there might be a way to make
this work? i tried 'unshare --net debian/tests/client-server' but that didnt 
work for me
-- i was hoping to copy the approach in a different package's tests, so im 
hoping this is solvable without
adding 'isolation-machine' to the test restrictions)


-- System Information:
Debian Release: 12.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-30-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to