Skip to content

The gpgpu/lxd-nvidia-gpu-passthrough-<GPU BDF> test failed on the SUT in the proxy environment. #2375

@JackKimUSA

Description

@JackKimUSA

Bug Description

The gpgpu/lxd-nvidia-gpu-passthrough- test failed on the SUT in the proxy environment.

I added the static proxy configuration before running “snap install mixbench” command in /usr/lib/checkbox-provider-gpgpu/bin/ gpu_passthrough.py file.

The gpgpu/lxd-nvidia-gpu-passthrough-<GPU’s pcie bus number> is passed.

*** Error messages ***

============================================

Attempt 1/10 (function 'wait_until_running')

============================================

STDOUT: running

DEBUG:checkbox_support.lxd_support: STDOUT: running

INFO:root:Installing mixbench snap

Command: lxc exec testbed-20250819033948 -- snap install mixbench

DEBUG:checkbox_support.lxd_support:Command: lxc exec testbed-20250819033948 -- snap install mixbench

Command failed: lxc exec testbed-20250819033948 -- snap install mixbench

ERROR:checkbox_support.lxd_support:Command failed: lxc exec testbed-20250819033948 -- snap install mixbench

STDOUT: error: unable to contact snap store

INFO:checkbox_support.lxd_support: STDOUT: error: unable to contact snap store

Command: lxc image delete 75773aadf0a74f7ea5cef5218038c2c5

DEBUG:checkbox_support.lxd_support:Command: lxc image delete 75773aadf0a74f7ea5cef5218038c2c5

STDOUT:

DEBUG:checkbox_support.lxd_support: STDOUT:

Command: lxc delete --force testbed-20250819033948

DEBUG:checkbox_support.lxd_support:Command: lxc delete --force testbed-20250819033948

STDOUT:

DEBUG:checkbox_support.lxd_support: STDOUT:

Traceback (most recent call last):

File "/tmp/nest-x3t94zow.a44745ea0ff661a8608b4a1c540d17e8bd88d4775f28a9a201746289a89abb7f/gpu_passthrough.py", line 319, in

main()

File "/tmp/nest-x3t94zow.a44745ea0ff661a8608b4a1c540d17e8bd88d4775f28a9a201746289a89abb7f/gpu_passthrough.py", line 315, in main

args.func(args)

File "/tmp/nest-x3t94zow.a44745ea0ff661a8608b4a1c540d17e8bd88d4775f28a9a201746289a89abb7f/gpu_passthrough.py", line 135, in test_lxd_gpu

instance.run("snap install mixbench", on_guest=True)

File "/usr/lib/python3/dist-packages/checkbox_support/lxd_support.py", line 143, in run

out = subprocess.check_output(

      ^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/lib/python3.12/subprocess.py", line 466, in check_output

return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/lib/python3.12/subprocess.py", line 571, in run

raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['lxc', 'exec', 'testbed-20250819033948', '--', 'snap', 'install', 'mixbench']' returned non-zero exit status 1.

*** Add the proxy configuration in /usr/lib/checkbox-provider-gpgpu/bin/ gpu_passthrough.py file ***

ubuntu@s12-zebra:/usr/lib/checkbox-provider-gpgpu/bin$ diff -u gpu_passthrough.py.org gpu_passthrough.py

--- gpu_passthrough.py.org 2025-08-19 04:06:18.093112175 +0000

+++ gpu_passthrough.py 2025-08-19 04:08:51.972839014 +0000

@@ -131,6 +131,14 @@

     [logging.info](https://urldefense.com/v3/__http://logging.info__;!!NpxR!nioFtteHVijCqCd2aEfwidQFlHeXjiZ_C-Hof8NNAtjuFY1QCtzv3VzJlt_xdlMMkzUNRV0wMcOZGpU-95Q-lCr0aQ$)("Waiting for %s to be up", [instance.name](https://urldefense.com/v3/__http://instance.name__;!!NpxR!nioFtteHVijCqCd2aEfwidQFlHeXjiZ_C-Hof8NNAtjuFY1QCtzv3VzJlt_xdlMMkzUNRV0wMcOZGpU-95SHED7FRw$))

     instance.wait_until_running()
  •    # Jack Kim : Start
    
  •    [logging.info](https://urldefense.com/v3/__http://logging.info__;!!NpxR!nioFtteHVijCqCd2aEfwidQFlHeXjiZ_C-Hof8NNAtjuFY1QCtzv3VzJlt_xdlMMkzUNRV0wMcOZGpU-95Q-lCr0aQ$)("Setting proxy.http")
    
  •    instance.run("snap set system proxy.http=\[http://proxy.site.com:8080\](https://urldefense.com/v3/__http://proxy.site.com:8080/__;!!NpxR!nioFtteHVijCqCd2aEfwidQFlHeXjiZ_C-Hof8NNAtjuFY1QCtzv3VzJlt_xdlMMkzUNRV0wMcOZGpU-95RqAhKtUg$)", on_guest=True)
    
  •    [logging.info](https://urldefense.com/v3/__http://logging.info__;!!NpxR!nioFtteHVijCqCd2aEfwidQFlHeXjiZ_C-Hof8NNAtjuFY1QCtzv3VzJlt_xdlMMkzUNRV0wMcOZGpU-95Q-lCr0aQ$)("Setting proxy.https")
    
  •    instance.run("snap set system proxy.https=\[http://proxy.site.com:8080\](https://urldefense.com/v3/__http://proxy.site.com:8080/__;!!NpxR!nioFtteHVijCqCd2aEfwidQFlHeXjiZ_C-Hof8NNAtjuFY1QCtzv3VzJlt_xdlMMkzUNRV0wMcOZGpU-95RqAhKtUg$)", on_guest=True)
    
  •    # Jack Kim : End
    
     [logging.info](https://urldefense.com/v3/__http://logging.info__;!!NpxR!nioFtteHVijCqCd2aEfwidQFlHeXjiZ_C-Hof8NNAtjuFY1QCtzv3VzJlt_xdlMMkzUNRV0wMcOZGpU-95Q-lCr0aQ$)("Installing mixbench snap")

     instance.run("snap install mixbench", on_guest=True)

Cert-blocker Test Case

  • cert-blocker

To Reproduce

Run the test-gpgpu command

Expected Result

The jobs passes

Actual Result

The job fails because the SUT needs to connect to the external network through a proxy server.

Environment

OS : Ubuntu 24.04.3
Check Boxy Type: Snap
Checkbox version: Checkbox 6.0.0.dev90

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions