spidernet-io / spiderpool

Underlay and RDMA network solution of the Kubernetes, for bare metal, VM and any public cloud
https://spidernet-io.github.io/spiderpool/
Apache License 2.0
538 stars 75 forks source link

e2e failed: A conflict occurred while updating the IPPool resource. #4197

Closed github-actions[bot] closed 3 weeks ago

github-actions[bot] commented 4 weeks ago

action url: https://github.com/spidernet-io/spiderpool/actions/runs/11506618834

ty-dc commented 4 weeks ago
update ippool v4pool-27ce1f7ddbf6cca for adding dirty record: {NamespacedName:ns557-659586649/pod557-659574717 PodUID:548149eb5f2cacb44d853d7f36367af991ac7ead5db5213795c289e72d738243} 
  ipv4 pool &SpiderIPPool{ObjectMeta:{v4pool-27ce1f7ddbf6cca    418aa743-a235-486a-827c-bd206ef4b94c 25447 1 2024-10-24 20:55:08 +0000 UTC <nil> <nil> map[ipam.spidernet.io/ippool-cidr:192-4-39-0-24 ipam.spidernet.io/owner-spider-subnet:v4-ss-391e42ea19eb9c3] map[] [{spiderpool.spidernet.io/v2beta1 SpiderSubnet v4-ss-391e42ea19eb9c3 e076c903-3bce-4266-9ee7-5d522490fbc5 0xc00038852f 0xc00038851f}] [spiderpool.spidernet.io] [{reclaim.test Update spiderpool.spidernet.io/v2beta1 2024-10-24 20:55:08 +0000 UTC FieldsV1 {"f:spec":{".":{},"f:default":{},"f:disable":{},"f:gateway":{},"f:ipVersion":{},"f:ips":{},"f:subnet":{}}} } {spiderpool-agent Update spiderpool.spidernet.io/v2beta1 2024-10-24 20:55:09 +0000 UTC FieldsV1 {"f:status":{".":{},"f:allocatedIPs":{}}} status} {reclaim.test Update spiderpool.spidernet.io/v2beta1 2024-10-24 20:55:14 +0000 UTC FieldsV1 {"f:status":{"f:allocatedIPCount":{}}} status}]},Spec:IPPoolSpec{IPVersion:*4,Subnet:192.4.39.0/24,IPs:[192.4.39.2],ExcludeIPs:[],Gateway:*192.4.39.1,Vlan:nil,Routes:[],PodAffinity:nil,NamespaceAffinity:nil,NamespaceName:[],NodeAffinity:nil,NodeName:[],MultusName:[],Default:*false,Disable:*false,},Status:IPPoolStatus{AllocatedIPs:*{"192.4.39.2":{"pod":"ns557-659586649/pod557-659574717","podUid":"42ad2913-b438-487c-8045-4c272c63e42d"}},TotalIPCount:nil,AllocatedIPCount:*3,},}
  allocatedIPCount: 3
  update ippool v6pool-d68ed227cc9a73b for adding dirty record: {NamespacedName:ns557-659586649/pod557-659574717 PodUID:548149eb5f2cacb44d853d7f36367af991ac7ead5db5213795c289e72d738243} 
  [FAILED] Expected success, but got an error:
      <*errors.StatusError | 0xc0002e0960>: 
      Operation cannot be fulfilled on spiderippools.spiderpool.spidernet.io "v6pool-d68ed227cc9a73b": the object has been modified; please apply your changes to the latest version and try again
      {
          ErrStatus: {
              TypeMeta: {Kind: "", APIVersion: ""},
              ListMeta: {
                  SelfLink: "",
                  ResourceVersion: "",
                  Continue: "",
                  RemainingItemCount: nil,
              },
              Status: "Failure",
              Message: "Operation cannot be fulfilled on spiderippools.spiderpool.spidernet.io \"v6pool-d68ed227cc9a73b\": the object has been modified; please apply your changes to the latest version and try again",
              Reason: "Conflict",
              Details: {
                  Name: "v6pool-d68ed227cc9a73b",
                  Group: "spiderpool.spidernet.io",
                  Kind: "spiderippools",
                  UID: "",
                  Causes: nil,
                  RetryAfterSeconds: 0,
              },
              Code: 409,
          },
      }
  In [It] at: /home/runner/work/spiderpool/spiderpool/test/e2e/reclaim/reclaim_test.go:555