[GH-ISSUE #487] test: api/Qemu tests will fail #131

Open
opened 2026-02-28 00:40:41 +03:00 by kerem · 0 comments
Owner

Originally created by @NemoDacremont on GitHub (Oct 19, 2025).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/487

What happens

When running api/Qemu tests on a fresh proxmox (v8.4.14) install, the tests will fail, the logs are following :

--- FAIL: Test_Clone_Qemu_VM (0.07s)
    qemu_clone_test.go:37:
                Error Trace:    /home/ndacremont/Documents/explore/proxmox-api-go/test/api/Qemu/qemu_clone_test.go:37
                Error:          Received unexpected error:
                                500 unable to find configuration file for VM 100 on node 'pve'
                Test:           Test_Clone_Qemu_VM
--- FAIL: Test_Clone_Qemu_VM_To_Different_Storage (0.06s)
    qemu_clone_test.go:58:
                Error Trace:    /home/ndacremont/Documents/explore/proxmox-api-go/test/api/Qemu/qemu_clone_test.go:58
                Error:          Received unexpected error:
                                500 unable to find configuration file for VM 100 on node 'pve'
                Test:           Test_Clone_Qemu_VM_To_Different_Storage
--- FAIL: Test_Qemu_VM_Is_Cloned (6.10s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered, repanicked]
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x71e64c]

goroutine 29 [running]:
testing.tRunner.func1.2({0x7c2be0, 0xb4f9c0})
        /usr/lib/go/src/testing/testing.go:1872 +0x237
testing.tRunner.func1()
        /usr/lib/go/src/testing/testing.go:1875 +0x35b
panic({0x7c2be0?, 0xb4f9c0?})
        /usr/lib/go/src/runtime/panic.go:783 +0x132
github.com/Telmate/proxmox-api-go/test/api/Qemu_test.Test_Qemu_VM_Is_Cloned(0xc0002821c0)
        /home/ndacremont/Documents/explore/proxmox-api-go/test/api/Qemu/qemu_clone_test.go:67 +0xac
testing.tRunner(0xc0002821c0, 0x85f860)
        /usr/lib/go/src/testing/testing.go:1934 +0xea
created by testing.(*T).Run in goroutine 1
        /usr/lib/go/src/testing/testing.go:1997 +0x465
FAIL    github.com/Telmate/proxmox-api-go/test/api/Qemu 6.238s

Expected

The tests should pass

I don't really know what's going on there, there is probably some digging to be done. However, it's probable that these tests fail because of my setup

I might try to fix it sooner or later
Edit: I started debugging this issue

Originally created by @NemoDacremont on GitHub (Oct 19, 2025). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/487 ### What happens When running `api/Qemu` tests on a fresh proxmox (v8.4.14) install, the tests will fail, the logs are following : ``` --- FAIL: Test_Clone_Qemu_VM (0.07s) qemu_clone_test.go:37: Error Trace: /home/ndacremont/Documents/explore/proxmox-api-go/test/api/Qemu/qemu_clone_test.go:37 Error: Received unexpected error: 500 unable to find configuration file for VM 100 on node 'pve' Test: Test_Clone_Qemu_VM --- FAIL: Test_Clone_Qemu_VM_To_Different_Storage (0.06s) qemu_clone_test.go:58: Error Trace: /home/ndacremont/Documents/explore/proxmox-api-go/test/api/Qemu/qemu_clone_test.go:58 Error: Received unexpected error: 500 unable to find configuration file for VM 100 on node 'pve' Test: Test_Clone_Qemu_VM_To_Different_Storage --- FAIL: Test_Qemu_VM_Is_Cloned (6.10s) panic: runtime error: invalid memory address or nil pointer dereference [recovered, repanicked] [signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x71e64c] goroutine 29 [running]: testing.tRunner.func1.2({0x7c2be0, 0xb4f9c0}) /usr/lib/go/src/testing/testing.go:1872 +0x237 testing.tRunner.func1() /usr/lib/go/src/testing/testing.go:1875 +0x35b panic({0x7c2be0?, 0xb4f9c0?}) /usr/lib/go/src/runtime/panic.go:783 +0x132 github.com/Telmate/proxmox-api-go/test/api/Qemu_test.Test_Qemu_VM_Is_Cloned(0xc0002821c0) /home/ndacremont/Documents/explore/proxmox-api-go/test/api/Qemu/qemu_clone_test.go:67 +0xac testing.tRunner(0xc0002821c0, 0x85f860) /usr/lib/go/src/testing/testing.go:1934 +0xea created by testing.(*T).Run in goroutine 1 /usr/lib/go/src/testing/testing.go:1997 +0x465 FAIL github.com/Telmate/proxmox-api-go/test/api/Qemu 6.238s ``` ### Expected The tests should pass I don't really know what's going on there, there is probably some digging to be done. However, it's probable that these tests fail because of my setup I might try to fix it sooner or later Edit: I started debugging this issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#131
No description provided.