Hi Kristrian 

I'm looking to configure podman, which is a container, in order to test 
integrations with rocm. So that we have : 

# Run rocrand's autopkgtest, passing in only the GPU 
$ autopkgtest -B rocrand -- podman+rocm --gpu /var/tmp/unstable.img 

I have configured a schroot for sbuild whose config.pl file is as follows: 

$chroot_mode = "unshare"; 
$unshare_mmdebstrap_keep_tarball = 1; 
$run_autopkgtest = 1; 
$unshare_mmdebstrap_extra_args = [ 
"*" => [ '--aptopt=Acquire::http { Proxy "http://195.221.0.35:8080";; }', 
'--aptopt=Acquire::https { Proxy "http://195.221.0.35:8080";; }', 
'--customize-hook=echo "export http_proxy=http://195.221.0.35:8080"; > 
"$1"/etc/environment', 
'--customize-hook=echo "export https_proxy=http://195.221.0.35:8080"; > 
"$1"/etc/environment', 
] 
]; 

## To which I have added this configuration: 

$autopkgtest_opts = ['--shell-fail', '--apt-upgrade', '--', 'podman+rocm', 
'--init', 'debian:%r']; 

In that case: does the podman need a special schroot? 

Creation of a chroot with rocm-podman-create 

$ rocm-podman-create 
INFO:autopkgtest-build-docker:['podman', 'build', '--tag', 
'rocm/debian:unstable', '--build-arg=IMAGE=debian:unstable', 
'--build-arg=AUTOPKGTEST_APT_PROXY=http://195.221.0.35:8080', 
'--build-arg=AUTOPKGTEST_APT_SOURCES=deb http://deb.debian.org/debian unstable 
main contrib non-free-firmware\ndeb-src http://deb.debian.org/debian unstable 
main contrib non-free-firmware', 
'--build-arg=AUTOPKGTEST_SETUP_APT_PROXY=http://195.221.0.35:8080', 
'--build-arg=AUTOPKGTEST_SETUP_VM_POST_COMMAND=groupadd -g 105 render; useradd 
-m -G render,video rocm; usermod -a -G render,video root', 
'--build-arg=MIRROR=http://deb.debian.org/debian', 
'--build-arg=RELEASE=unstable', '/tmp/tmp6fo63vn8'] 
STEP 1/15: FROM debian:unstable 
[...] 
+ echo APT::Periodic::Enable "0"; 
+ echo APT::Get::Always-Include-Phased-Updates "true"; 
+ [ -n ] 
+ [ -x //sbin/init ] 
+ [ -d /run/systemd/system ] 
--> e685b1f7a6ca 
STEP 15/15: CMD ["bash"] 
COMMIT rocm/debian:unstable 
--> 472ceebc0e61 
Successfully tagged localhost/rocm/debian:unstable 
472ceebc0e61c31aff235555c6dca79ba980cf4e33ccb414ece552284b589734 

Execution of autopkgtest from sbuild 

autopkgtest [13:51:46]: host grades-01.synchrotron-soleil.fr; command line: 
/usr/bin/autopkgtest 
/home/experiences/instrumentation/picca/debian/science-team/ufo-filters_0.17.0.76.g691aa0e+dfsg1-1.dsc
 
/home/experiences/instrumentation/picca/debian/science-team/ufo-filters_0.17.0.76.g691aa0e+dfsg1-1_amd64.changes
 --shell-fail --apt-upgrade -- podman+rocm --init debian:unstable 
WARNING: dbus-user-session not available, podman will probably not work 
<VirtSubproc>: failure: ['podman', 'run', '--detach=true', '--volume', 
'/tmp/autopkgtest-virt-docker.shared.1h8b9zg_:/tmp/autopkgtest-virt-docker.shared.1h8b9zg_',
 '--device=/dev/dri', '--device=/dev/kfd', '--gidmap=0:0:1', '--gidmap=44:1:1', 
'--gidmap=105:2:1', '--gidmap=1:3:43', '--gidmap=45:46:60', 
'--gidmap=106:107:65429', 'debian:unstable', '/sbin/init'] failed (exit status 
127, stderr 'Error: crun: executable file `/sbin/init` not found: No such file 
or directory: OCI runtime attempted to invoke a command that was not found\n') 
autopkgtest [13:51:48]: ERROR: testbed failure: unexpected eof from the testbed 
Exception ignored in: <_io.TextIOWrapper name=6 encoding='UTF-8'> 
BrokenPipeError: [Errno 32] Broken pipe 

E: Autopkgtest run failed. 

How do I use your script to add an environment variable in order to do this 
with a proxy? 

Thank you for your attention, 

Clément LONGEAC 










Reply via email to