spidernet-io / egressgateway

Network egress policy for Kubernetes

Home Page:https://spidernet-io.github.io/egressgateway/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Night CI 2024-03-31: Failed

weizhoublue opened this issue · comments

uninstall script has bug :

/bin/bash: -c: line 3: unexpected EOF while looking for matching ``'

uninstall script has bug :

/bin/bash: -c: line 3: unexpected EOF while looking for matching ``'

are you sure ? but the error log is about the E2E case

error: unable to upgrade connection: container not found ("pod-ef86228f-d917-47f3-a144-a637f3069b37")
[FAILED] [11.169 seconds]
[612](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:613)
EgressPolicy
[613](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:614)
/home/runner/work/egressgateway/egressgateway/test/e2e/egresspolicy/egresspolicy_test.go:29
[614](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:615)
  namespace-level policy [P00021]
[615](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:616)
  /home/runner/work/egressgateway/egressgateway/test/e2e/egresspolicy/egresspolicy_test.go:848
[616](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:617)
    [It] test the scope of policy
[617](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:618)
    /home/runner/work/egressgateway/egressgateway/test/e2e/egresspolicy/egresspolicy_test.go:886
[618](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:619)

[619](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:620)
  Timeline >>
[620](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:621)
  > Enter [BeforeEach] EgressPolicy - /home/runner/work/egressgateway/egressgateway/test/e2e/egresspolicy/egresspolicy_test.go:36 @ 03/31/24 20:10:28.395
[621](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:622)
  Create EgressGateway: egw-4ffb3a97-d5a0-456a-a8a5-0c8a31292a27
[622](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:623)
  < Exit [BeforeEach] EgressPolicy - /home/runner/work/egressgateway/egressgateway/test/e2e/egresspolicy/egresspolicy_test.go:36 @ 03/31/24 20:10:28.614 (220ms)
[623](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:624)
  > Enter [BeforeEach] namespace-level policy - /home/runner/work/egressgateway/egressgateway/test/e2e/egresspolicy/egresspolicy_test.go:857 @ 03/31/24 20:10:28.615
[624](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:625)
  < Exit [BeforeEach] namespace-level policy - /home/runner/work/egressgateway/egressgateway/test/e2e/egresspolicy/egresspolicy_test.go:857 @ 03/31/24 20:10:28.615 (0s)
[625](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:626)
  > Enter [It] test the scope of policy - /home/runner/work/egressgateway/egressgateway/test/e2e/egresspolicy/egresspolicy_test.go:886 @ 03/31/24 20:10:28.615
[626](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:627)
  [FAILED] Unexpected error:
[627](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:628)
      <common.CmdError>: 
[628](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:629)
      exit status 1
[629](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:630)
       error: unable to upgrade connection: container not found ("pod-ef86228f-d917-47f3-a144-a637f3069b37")
[630](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:631)
      
[631](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:632)
      {
[632](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:633)
          EgressIP: "fc00:f853:ccd:e793::306",
[633](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:634)
          ServerIP: "fc00:f853:ccd:e793::6",
[634](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:635)
          ExpectUsedEip: false,
[635](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:636)
          Cmd: "/usr/bin/sh -c kubectl --kubeconfig /home/runner/work/egressgateway/egressgateway/test/runtime/kubeconfig_project0331200302.config exec pod-ef86228f-d917-47f3-a144-a637f3069b37 -n test-ns -- nettools-client -addr fc00:f853:ccd:e793::6 -protocol all -tcpPort 63380 -udpPort 63381 -webPort 63382 -eip fc00:f853:ccd:e793::306 -batch true -contain false",
[636](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:637)
          Output: "error: unable to upgrade connection: container not found (\"pod-ef86228f-d917-47f3-a144-a637f3069b37\")\n",
[637](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:638)
          CmdError: <*exec.ExitError | 0xc000832980>{
[638](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:639)
              ProcessState: {
[639](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:640)
                  pid: 44335,
[640](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:641)
                  status: 256,
[641](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:642)
                  rusage: {
[642](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:643)
                      Utime: {Sec: 0, Usec: 64624},
[643](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:644)
                      Stime: {Sec: 0, Usec: 11945},
[644](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:645)
                      Maxrss: 100280,
[645](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:646)
                      Ixrss: 0,
[646](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:647)
                      Idrss: 0,
[647](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:648)
                      Isrss: 0,
[648](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:649)
                      Minflt: 3339,
[649](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:650)
                      Majflt: 0,
[650](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:651)
                      Nswap: 0,
[651](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:652)
                      Inblock: 0,
[652](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:653)
                      Oublock: 0,
[653](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:654)
                      Msgsnd: 0,
[654](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:655)
                      Msgrcv: 0,
[655](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:656)
                      Nsignals: 0,
[656](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:657)
                      Nvcsw: 381,
[657](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:658)
                      Nivcsw: 49,
[658](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:659)
                  },
[659](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:660)
              },
[660](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:661)
              Stderr: nil,
[661](https://github.com/spidernet-io/egressgateway/actions/runs/8500569167/job/23282605449#step:10:662)
          },
anable to upgrade connection: container not found ("pod-ef86228f-d917-47f3-a144-a637f3069b37")

这个问题的 重复 issue,可以关闭几个。 comment:same with XXX

#1335

This PR was merged, e2e did not fail every night, and I also ran e2e manually several times.

/bin/bash: -c: line 3: unexpected EOF while looking for matching ``'

The unrelated error above has also been fixed; it was due to an extra ` symbol in the script.