Skip to content

lxc-to-incus "TestConvertNetworkConfig" fails #23

@ganto

Description

@ganto

When trying to build incus-0.1 the %gocheck of github.com/lxc/incus/cmd/lxc-to-incus fails with:

github.com/lxc/incus/cmd/lxc-to-incus                                                                                                                          
=== RUN   TestValidateConfig                                       
2023/10/14 17:40:36 Running test #0: container migrated
Checking whether container has already been migrated                                                                                                                                                                                                                                                                          2023/10/14 17:40:36 Running test #1: container name missmatch (1)                                                                                                                                                                                                                                                             Checking whether container has already been migrated                                                                                                                                                                                                                                                                          
2023/10/14 17:40:36 Running test #2: container name missmatch (2)
Checking whether container has already been migrated
2023/10/14 17:40:36 Running test #3: incomplete AppArmor support (1)
Checking whether container has already been migrated          
Validating whether incomplete AppArmor support is enabled
2023/10/14 17:40:36 Running test #4: incomplete AppArmor support (2)
Checking whether container has already been migrated
Validating whether incomplete AppArmor support is enabled  
2023/10/14 17:40:36 Running test #5: missing minimal /dev filesystem
Checking whether container has already been migrated         
Validating whether incomplete AppArmor support is enabled
Validating whether mounting a minimal /dev is enabled
2023/10/14 17:40:36 Running test #6: missing lxc.rootfs key
Checking whether container has already been migrated
Validating whether incomplete AppArmor support is enabled
Validating whether mounting a minimal /dev is enabled
Validating container rootfs
2023/10/14 17:40:36 Running test #7: non-existent rootfs path
Checking whether container has already been migrated
Validating whether incomplete AppArmor support is enabled
Validating whether mounting a minimal /dev is enabled
Validating container rootfs
--- PASS: TestValidateConfig (0.00s)
=== RUN   TestConvertNetworkConfig
2023/10/14 17:40:36 Running test #0: loopback only
    main_migrate_test.go:215: 
                Error Trace:    /builddir/build/BUILD/incus-0.1/_build/src/github.com/lxc/incus/cmd/lxc-to-incus/main_migrate_test.go:215
                Error:          Received unexpected error:
                                creating the container failed
                Test:           TestConvertNetworkConfig
--- FAIL: TestConvertNetworkConfig (0.00s)
=== RUN   TestConvertStorageConfig
2023/10/14 17:40:36 Running test #0: invalid path
Processing storage configuration
2023/10/14 17:40:36 Running test #1: ignored default mounts
Processing storage configuration
2023/10/14 17:40:36 Running test #2: ignored mounts
Processing storage configuration
2023/10/14 17:40:36 Running test #3: valid mount configuration
Processing storage configuration
--- PASS: TestConvertStorageConfig (0.00s)
=== RUN   TestGetRootfs
2023/10/14 17:40:36 Running test #0: missing lxc.rootfs key
2023/10/14 17:40:36 Running test #1: valid lxc.rootfs key (1)
2023/10/14 17:40:36 Running test #2: valid lxc.rootfs key (2)
--- PASS: TestGetRootfs (0.00s)
FAIL
exit status 1
FAIL    github.com/lxc/incus/cmd/lxc-to-incus   0.006s

Partly related to ganto/copr-lxc3#10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions