Skip to content

CI: go test ./pkg/datapath/loader fails: Link does not exist #22433

@joestringer

Description

@joestringer

This issue is not observed in CI, however I notice it when running the privileged tests locally in my Ubuntu 22.04 environment against the master branch:

$ sudo -E make tests-privileged                                                                                                                                                                                                    [182/26533]
[sudo] password for joe:                                                                                                                                                                                                                                                                   
PRIVILEGED_TESTS=true PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/joe/git/cilium/bpf CGO_ENABLED=0 go test -mod=vendor -tags=osusergo -ldflags "-X github.com/cilium/cilium/pkg/kvstore.consulDummyAddress=https://consul:8443 -X github.com/cilium/c
ilium/pkg/kvstore.etcdDummyAddress=http://etcd:4002 -X github.com/cilium/cilium/pkg/datapath.DatapathSHA256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" \                                                                                                            
        ./... -test.v -timeout 600s -json -covermode=count -coverprofile=coverage.out | tparse                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                           
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓                                                                                                                                                                                                                        
┃   FAIL  package: github.com/cilium/cilium/pkg/datapath/loader   ┃                                                                                                                                                                                                                        
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                           
--- FAIL: Test (13.48s)                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                           
level=info msg="Using autogenerated IPv4 allocation range" subsys=node v4Prefix=10.1.0.0/16                                                                                                                                                                                                
level=info msg="Using autogenerated IPv6 allocation range" subsys=node v6Prefix="f00d::a01:0:0:0/96"                                                                                                                                                                                       
level=error msg="Link does not exist" device=cilium_net error="Link not found" subsys=datapath-loader                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                           
----------------------------------------------------------------------                                                                                                                                                                                                                     
FAIL: loader_test.go:165: LoaderTestSuite.TestCompileAndLoadHostEndpoint                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                           
loader_test.go:179:                                                                                                                                                                                                                                                                        
    s.testCompileAndLoad(c, &hostEp)                                                                                                                                                                                                                                                       
loader_test.go:154:                                                                                                                                                                                                                                                                        
    c.Assert(err, IsNil)                                                                                                                                                                                                                                                                   
... value netlink.LinkNotFoundError = netlink.LinkNotFoundError{error:(*errors.errorString)(0xc0005a20d0)} ("Link not found")                                                                                                                                                              
                                                                                                                                                                                                                                                                                           
level=info msg="Compiled new BPF template" BPFCompilationTime=1.201441695s file-path=/tmp/cilium_test1977592565/templates/66e66027ec503c0d3bd84f6df8c887e45638cf0ab81cf7d82218b48841fc471d/bpf_lxc.o subsys=datapath-loader                                                                
level=info msg="Compiled new BPF template" BPFCompilationTime=1.124382949s file-path=/tmp/cilium_test1977592565/templates/049a251dd9f895fb71a76f6349fcd7b95b39232474711e5fe7aabc4fe93e6df0/bpf_lxc.o subsys=datapath-loader                                                                
level=info msg="Compiled new BPF template" BPFCompilationTime=1.201681338s file-path=/tmp/cilium_test741519073/templates/3d74155c77be515a600048efd2bfd2db3811a6019f3fa693573f34d6a929ea22/bpf_lxc.o subsys=datapath-loader                                                                 
level=info msg="Compiled new BPF template" BPFCompilationTime=1.527059091s file-path=/tmp/cilium_test741519073/templates/7938b4f4365fae566285006eb62aca0b9a0c0006909a0fb7e06c9dd0596b2c27/bpf_lxc.o subsys=datapath-loader                                                                 
level=info msg="Compiled new BPF template" BPFCompilationTime=1.687688608s file-path=/tmp/cilium_test741519073/templates/c1cc079b9189e6659deb1bd51235fdb2f8833daee728422a90349bcbc6678a81/bpf_lxc.o subsys=datapath-loader                                                                 
level=info msg="Compiled new BPF template" BPFCompilationTime=1.740012043s file-path=/tmp/cilium_test741519073/templates/312c7c9cd762c4d8942c6278c249dc0fe183c4c22fcca1b87a2d595d2361cb16/bpf_lxc.o subsys=datapath-loader                                                                 
level=info msg="Compiled new BPF template" BPFCompilationTime=1.823694022s file-path=/tmp/cilium_test741519073/templates/3d74155c77be515a600048efd2bfd2db3811a6019f3fa693573f34d6a929ea22/bpf_lxc.o subsys=datapath-loader                                                                 
level=info msg="Compiled new BPF template" BPFCompilationTime=2.284098425s file-path=/tmp/cilium_test741519073/templates/312c7c9cd762c4d8942c6278c249dc0fe183c4c22fcca1b87a2d595d2361cb16/bpf_lxc.o subsys=datapath-loader                                                                 
level=info msg="Compiled new BPF template" BPFCompilationTime=2.477713267s file-path=/tmp/cilium_test741519073/templates/3d74155c77be515a600048efd2bfd2db3811a6019f3fa693573f34d6a929ea22/bpf_lxc.o subsys=datapath-loader
level=info msg="Compiled new BPF template" BPFCompilationTime=2.486516728s file-path=/tmp/cilium_test741519073/templates/34dfc680d96948579bcf46e860aa7317c10968dcc2246fe3bed80ea1b14b1596/bpf_lxc.o subsys=datapath-loader
level=info msg="Compiled new BPF template" BPFCompilationTime=2.494995266s file-path=/tmp/cilium_test741519073/templates/c1cc079b9189e6659deb1bd51235fdb2f8833daee728422a90349bcbc6678a81/bpf_lxc.o subsys=datapath-loader
level=info msg="Compiled new BPF template" BPFCompilationTime=2.693360568s file-path=/tmp/cilium_test741519073/templates/7d904e5b0e063ace19cd292a4a7b45a7a79848adaedcbfb0bcf6ba4441515500/bpf_lxc.o subsys=datapath-loader
level=info msg="Compiled new BPF template" BPFCompilationTime=2.781194192s file-path=/tmp/cilium_test741519073/templates/7938b4f4365fae566285006eb62aca0b9a0c0006909a0fb7e06c9dd0596b2c27/bpf_lxc.o subsys=datapath-loader
level=info msg="Compiled new BPF template" BPFCompilationTime=2.849800176s file-path=/tmp/cilium_test741519073/templates/b477b8a9d9f82a8fdb1243c350c35fee79757a0fa6c0aac5577225a3cef6431f/bpf_lxc.o subsys=datapath-loader
level=info msg="Compiled new BPF template" BPFCompilationTime=3.071249398s file-path=/tmp/cilium_test741519073/templates/b0130490420ac62f0608003819a40206ad48cc027c0184986c988c2477ec379a/bpf_lxc.o subsys=datapath-loader
level=info msg="Setting sysctl" subsys=sysctl sysParamName=net.ipv6.conf.dummy9.forwarding sysParamValue=1                                  
level=info msg="Setting sysctl" subsys=sysctl sysParamName=net.ipv4.conf.dummy9.forwarding sysParamValue=1                                  
level=info msg="Setting sysctl" subsys=sysctl sysParamName=net.ipv4.conf.dummy9.rp_filter sysParamValue=0                                   
level=info msg="Setting sysctl" subsys=sysctl sysParamName=net.ipv4.conf.dummy9.accept_local sysParamValue=1                                
level=info msg="Setting sysctl" subsys=sysctl sysParamName=net.ipv4.conf.dummy9.send_redirects sysParamValue=0                              
OOPS: 9 passed, 1 FAILED
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/CIContinuous Integration testing issue or flakegood-first-issueGood starting point for new developers, which requires minimal understanding of Cilium.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions