Kong / kubernetes-ingress-controller

:gorilla: Kong for Kubernetes: The official Ingress Controller for Kubernetes.
https://docs.konghq.com/kubernetes-ingress-controller/
Apache License 2.0
2.2k stars 590 forks source link

Flaky kongintegration `TestTranslatorsGoldenTestsOutputs_Konnect` test #5810

Open pmalek opened 5 months ago

pmalek commented 5 months ago

Problem statement

TestTranslatorsGoldenTestsOutputs_Konnect failed randomly on CI at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/8545358625/job/23413519644

=== RUN   TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-rule-with-tls/default_golden.yaml
creating certificate 8aade13c-1470-46bd-9849-9a74e349214f
creating certificate c6ac927c-4f5a-4e88-8b5d-c7b01d0f43af
creating sni 4.example.com
creating sni 1.example.com
creating sni 3.example.com
creating sni 2.example.com
creating service bar-namespace.foo-svc.80
creating upstream foo-svc.bar-namespace.80.svc
creating route bar-namespace.ing-with-tls.foo-svc.example.com.80
deleting route foo-namespace.regex-prefix.foo-svc.example.com.80
    translator_golden_tests_outputs_test.go:129: 
            Error Trace:    /home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/kongintegration/translator_golden_tests_outputs_test.go:129
                                        /home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/kongintegration/translator_golden_tests_outputs_test.go:111
            Error:          Condition never satisfied
            Test:           TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-rule-with-tls/default_golden.yaml
--- FAIL: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-rule-with-tls/default_golden.yaml (5.00s)
deleting route foo-namespace.regex-prefix.foo-svc.example.com.80
    translator_golden_tests_outputs_test.go:132: error: 1 errors occurred:
            while processing event: Delete route foo-namespace.regex-prefix.foo-svc.example.com.80 failed: HTTP status 404 (message: "not found")
Truncated run logs: ``` 2024-04-03T20:55:53.0560221Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-regex-prefixed-path/default_golden.yaml 2024-04-03T20:55:55.3227450Z creating route foo-namespace.regex-prefix.foo-svc.example.com.80 2024-04-03T20:55:55.7175444Z deleting route foo-namespace.foo.foo-svc.example.com.80 2024-04-03T20:55:55.8336702Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-regex-prefixed-path/default_golden.yaml (2.78s) 2024-04-03T20:55:55.8339020Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-regex-prefixed-path/expression-routes-on_golden.yaml 2024-04-03T20:55:57.8551883Z updating route foo-namespace.regex-prefix.foo-svc.example.com.80 { 2024-04-03T20:55:57.8553011Z - "hosts": [ 2024-04-03T20:55:57.8553520Z - "example.com" 2024-04-03T20:55:57.8553877Z - ], 2024-04-03T20:55:57.8554337Z "https_redirect_status_code": 426, 2024-04-03T20:55:57.8554921Z "id": "45f1e9e4-8096-5cf7-b8e0-c42f8b9b81a0", 2024-04-03T20:55:57.8555615Z "name": "foo-namespace.regex-prefix.foo-svc.example.com.80", 2024-04-03T20:55:57.8556297Z - "path_handling": "v0", 2024-04-03T20:55:57.8556692Z - "paths": [ 2024-04-03T20:55:57.8557126Z - "~/foo/\d{3}" 2024-04-03T20:55:57.8557472Z - ], 2024-04-03T20:55:57.8557808Z "preserve_host": true, 2024-04-03T20:55:57.8558284Z "protocols": [ 2024-04-03T20:55:57.8558599Z "http", 2024-04-03T20:55:57.8558942Z "https" 2024-04-03T20:55:57.8559316Z ], 2024-04-03T20:55:57.8559666Z - "regex_priority": 0, 2024-04-03T20:55:57.8560084Z "request_buffering": true, 2024-04-03T20:55:57.8560874Z "response_buffering": true, 2024-04-03T20:55:57.8561318Z "service": { 2024-04-03T20:55:57.8561889Z "id": "fe1e2edc-5479-52fe-b0f4-b90d8d5f83ba", 2024-04-03T20:55:57.8562470Z "name": "foo-namespace.foo-svc.80" 2024-04-03T20:55:57.8562905Z }, 2024-04-03T20:55:57.8563295Z "strip_path": false, 2024-04-03T20:55:57.8563674Z "tags": [ 2024-04-03T20:55:57.8564071Z "k8s-name:regex-prefix", 2024-04-03T20:55:57.8564610Z "k8s-namespace:foo-namespace", 2024-04-03T20:55:57.8565100Z "k8s-kind:Ingress", 2024-04-03T20:55:57.8565615Z "k8s-group:networking.k8s.io", 2024-04-03T20:55:57.8566102Z "k8s-version:v1" 2024-04-03T20:55:57.8566438Z ] 2024-04-03T20:55:57.8566986Z + "expression": "(http.host == "example.com") && (http.path ~ "^/foo/\\d{3}")" 2024-04-03T20:55:57.8567595Z + "priority": 5.7178899677194e+13 2024-04-03T20:55:57.8567980Z } 2024-04-03T20:55:57.8568239Z 2024-04-03T20:55:57.9916546Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-regex-prefixed-path/expression-routes-on_golden.yaml (2.16s) 2024-04-03T20:55:57.9918479Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-rule-with-tls/default_golden.yaml 2024-04-03T20:56:00.7802811Z creating certificate 8aade13c-1470-46bd-9849-9a74e349214f 2024-04-03T20:56:00.7804157Z creating certificate c6ac927c-4f5a-4e88-8b5d-c7b01d0f43af 2024-04-03T20:56:00.8980044Z creating sni 4.example.com 2024-04-03T20:56:00.8980951Z creating sni 1.example.com 2024-04-03T20:56:00.8981648Z creating sni 3.example.com 2024-04-03T20:56:00.8982311Z creating sni 2.example.com 2024-04-03T20:56:01.1811818Z creating service bar-namespace.foo-svc.80 2024-04-03T20:56:01.3805800Z creating upstream foo-svc.bar-namespace.80.svc 2024-04-03T20:56:01.5742482Z creating route bar-namespace.ing-with-tls.foo-svc.example.com.80 2024-04-03T20:56:01.7166331Z deleting route foo-namespace.regex-prefix.foo-svc.example.com.80 2024-04-03T20:56:02.9956373Z translator_golden_tests_outputs_test.go:129: 2024-04-03T20:56:02.9959110Z Error Trace: /home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/kongintegration/translator_golden_tests_outputs_test.go:129 2024-04-03T20:56:02.9962257Z /home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/kongintegration/translator_golden_tests_outputs_test.go:111 2024-04-03T20:56:02.9963689Z Error: Condition never satisfied 2024-04-03T20:56:02.9965187Z Test: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-rule-with-tls/default_golden.yaml 2024-04-03T20:56:02.9966859Z --- FAIL: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-rule-with-tls/default_golden.yaml (5.00s) 2024-04-03T20:56:02.9968530Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-rule-with-tls/expression-routes-on_golden.yaml 2024-04-03T20:56:03.6917575Z deleting service foo-namespace.foo-svc.80 2024-04-03T20:56:03.8005690Z deleting upstream foo-svc.foo-namespace.80.svc 2024-04-03T20:56:04.1312889Z updating route bar-namespace.ing-with-tls.foo-svc.example.com.80 { 2024-04-03T20:56:04.1314150Z - "hosts": [ 2024-04-03T20:56:04.1314864Z - "example.com" 2024-04-03T20:56:04.1315536Z - ], 2024-04-03T20:56:04.1316012Z "https_redirect_status_code": 426, 2024-04-03T20:56:04.1316782Z "id": "fc9a8135-0253-5631-b1e0-8712f796a4e2", 2024-04-03T20:56:04.1317575Z "name": "bar-namespace.ing-with-tls.foo-svc.example.com.80", 2024-04-03T20:56:04.1318201Z - "path_handling": "v0", 2024-04-03T20:56:04.1318606Z - "paths": [ 2024-04-03T20:56:04.1318986Z - "~/$" 2024-04-03T20:56:04.1319329Z - ], 2024-04-03T20:56:04.1319672Z "preserve_host": true, 2024-04-03T20:56:04.1320147Z "protocols": [ 2024-04-03T20:56:04.1320516Z "http", 2024-04-03T20:56:04.1321166Z "https" 2024-04-03T20:56:04.1321522Z ], 2024-04-03T20:56:04.1321884Z - "regex_priority": 0, 2024-04-03T20:56:04.1322395Z "request_buffering": true, 2024-04-03T20:56:04.1322842Z "response_buffering": true, 2024-04-03T20:56:04.1323259Z "service": { 2024-04-03T20:56:04.1323843Z "id": "edc1d53e-73b4-5932-9455-0e01f0d53e3f", 2024-04-03T20:56:04.1324423Z "name": "bar-namespace.foo-svc.80" 2024-04-03T20:56:04.1324937Z }, 2024-04-03T20:56:04.1325272Z "strip_path": false, 2024-04-03T20:56:04.1325641Z "tags": [ 2024-04-03T20:56:04.1326122Z "k8s-name:ing-with-tls", 2024-04-03T20:56:04.1326609Z "k8s-namespace:bar-namespace", 2024-04-03T20:56:04.1327093Z "k8s-kind:Ingress", 2024-04-03T20:56:04.1327692Z "k8s-uid:c6ac927c-4f5a-4e88-8b5d-c7b01d0f43af", 2024-04-03T20:56:04.1328262Z "k8s-group:networking.k8s.io", 2024-04-03T20:56:04.1328807Z "k8s-version:v1" 2024-04-03T20:56:04.1329149Z ] 2024-04-03T20:56:04.1329636Z + "expression": "(http.host == "example.com") && (http.path == "/")" 2024-04-03T20:56:04.1330280Z + "priority": 5.7178899677185e+13 2024-04-03T20:56:04.1330674Z } 2024-04-03T20:56:04.1330840Z 2024-04-03T20:56:04.2837310Z deleting route foo-namespace.regex-prefix.foo-svc.example.com.80 2024-04-03T20:56:04.4407481Z translator_golden_tests_outputs_test.go:132: error: 1 errors occurred: 2024-04-03T20:56:04.4410515Z while processing event: Delete route foo-namespace.regex-prefix.foo-svc.example.com.80 failed: HTTP status 404 (message: "not found") 2024-04-03T20:56:05.3831191Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-rule-with-tls/expression-routes-on_golden.yaml (2.39s) 2024-04-03T20:56:05.3833551Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-single-service-in-multiple-ingresses/default_golden.yaml 2024-04-03T20:56:06.5228166Z creating service foo-namespace.foo-svc.80 2024-04-03T20:56:06.9291495Z creating upstream foo-svc.foo-namespace.80.svc 2024-04-03T20:56:07.3690418Z creating route foo-namespace.foo.foo-svc.example.com.80 2024-04-03T20:56:07.3691830Z creating route foo-namespace.foo-2.foo-svc.example.com.80 2024-04-03T20:56:07.7569514Z deleting route bar-namespace.ing-with-tls.foo-svc.example.com.80 2024-04-03T20:56:07.8594446Z deleting sni 3.example.com 2024-04-03T20:56:07.8595141Z deleting sni 4.example.com 2024-04-03T20:56:07.8595775Z deleting sni 1.example.com 2024-04-03T20:56:07.8596509Z deleting sni 2.example.com 2024-04-03T20:56:08.0297410Z deleting service bar-namespace.foo-svc.80 2024-04-03T20:56:08.1615596Z deleting upstream foo-svc.bar-namespace.80.svc 2024-04-03T20:56:08.2633889Z deleting certificate c6ac927c-4f5a-4e88-8b5d-c7b01d0f43af 2024-04-03T20:56:08.2635282Z deleting certificate 8aade13c-1470-46bd-9849-9a74e349214f 2024-04-03T20:56:08.5130048Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-single-service-in-multiple-ingresses/default_golden.yaml (3.13s) 2024-04-03T20:56:08.5134116Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-single-service-in-multiple-ingresses/expression-routes-on_golden.yaml 2024-04-03T20:56:09.4198666Z updating route foo-namespace.foo.foo-svc.example.com.80 { 2024-04-03T20:56:09.4200010Z - "hosts": [ 2024-04-03T20:56:09.4200644Z - "example.com" 2024-04-03T20:56:09.4201215Z - ], 2024-04-03T20:56:09.4201955Z "https_redirect_status_code": 426, 2024-04-03T20:56:09.4202882Z "id": "3eee2c18-8fcc-5661-8f84-5c89adfa404f", 2024-04-03T20:56:09.4204065Z "name": "foo-namespace.foo.foo-svc.example.com.80", 2024-04-03T20:56:09.4205000Z - "path_handling": "v0", 2024-04-03T20:56:09.4205841Z - "paths": [ 2024-04-03T20:56:09.4206481Z - "/" 2024-04-03T20:56:09.4206986Z - ], 2024-04-03T20:56:09.4207539Z "preserve_host": true, 2024-04-03T20:56:09.4208249Z "protocols": [ 2024-04-03T20:56:09.4208703Z "http", 2024-04-03T20:56:09.4209344Z "https" 2024-04-03T20:56:09.4209767Z ], 2024-04-03T20:56:09.4210157Z - "regex_priority": 0, 2024-04-03T20:56:09.4210633Z "request_buffering": true, 2024-04-03T20:56:09.4211155Z "response_buffering": true, 2024-04-03T20:56:09.4211579Z "service": { 2024-04-03T20:56:09.4212142Z "id": "fe1e2edc-5479-52fe-b0f4-b90d8d5f83ba", 2024-04-03T20:56:09.4212734Z "name": "foo-namespace.foo-svc.80" 2024-04-03T20:56:09.4213150Z }, 2024-04-03T20:56:09.4213547Z "strip_path": false, 2024-04-03T20:56:09.4213942Z "tags": [ 2024-04-03T20:56:09.4214380Z "k8s-name:foo", 2024-04-03T20:56:09.4214849Z "k8s-namespace:foo-namespace", 2024-04-03T20:56:09.4215321Z "k8s-kind:Ingress", 2024-04-03T20:56:09.4215845Z "k8s-group:networking.k8s.io", 2024-04-03T20:56:09.4216390Z "k8s-version:v1" 2024-04-03T20:56:09.4216731Z ] 2024-04-03T20:56:09.4217274Z + "expression": "(http.host == "example.com") && (http.path ^= "/")" 2024-04-03T20:56:09.4217855Z + "priority": 5.7178899677185e+13 2024-04-03T20:56:09.4218306Z } 2024-04-03T20:56:09.4218474Z 2024-04-03T20:56:09.4219191Z updating route foo-namespace.foo-2.foo-svc.example.com.80 { 2024-04-03T20:56:09.4220037Z - "hosts": [ 2024-04-03T20:56:09.4220523Z - "example.com" 2024-04-03T20:56:09.4220881Z - ], 2024-04-03T20:56:09.4221257Z "https_redirect_status_code": 426, 2024-04-03T20:56:09.4221920Z "id": "ab6b1505-ec86-5b04-9d39-a95a711564cc", 2024-04-03T20:56:09.4222561Z "name": "foo-namespace.foo-2.foo-svc.example.com.80", 2024-04-03T20:56:09.4223401Z - "path_handling": "v0", 2024-04-03T20:56:09.4223801Z - "paths": [ 2024-04-03T20:56:09.4224153Z - "/" 2024-04-03T20:56:09.4224526Z - ], 2024-04-03T20:56:09.4224858Z "preserve_host": true, 2024-04-03T20:56:09.4225262Z "protocols": [ 2024-04-03T20:56:09.4225668Z "http", 2024-04-03T20:56:09.4226015Z "https" 2024-04-03T20:56:09.4226418Z ], 2024-04-03T20:56:09.4226763Z - "regex_priority": 0, 2024-04-03T20:56:09.4227191Z "request_buffering": true, 2024-04-03T20:56:09.4227680Z "response_buffering": true, 2024-04-03T20:56:09.4228047Z "service": { 2024-04-03T20:56:09.4228559Z "id": "fe1e2edc-5479-52fe-b0f4-b90d8d5f83ba", 2024-04-03T20:56:09.4229210Z "name": "foo-namespace.foo-svc.80" 2024-04-03T20:56:09.4229792Z }, 2024-04-03T20:56:09.4230131Z "strip_path": false, 2024-04-03T20:56:09.4230586Z "tags": [ 2024-04-03T20:56:09.4230998Z "k8s-name:foo-2", 2024-04-03T20:56:09.4231548Z "k8s-namespace:foo-namespace", 2024-04-03T20:56:09.4232041Z "k8s-kind:Ingress", 2024-04-03T20:56:09.4232498Z "k8s-group:networking.k8s.io", 2024-04-03T20:56:09.4233024Z "k8s-version:v1" 2024-04-03T20:56:09.4233397Z ] 2024-04-03T20:56:09.4233849Z + "expression": "(http.host == "example.com") && (http.path ^= "/")" 2024-04-03T20:56:09.4234491Z + "priority": 5.7178899677185e+13 2024-04-03T20:56:09.4234881Z } 2024-04-03T20:56:09.4235060Z 2024-04-03T20:56:09.5398846Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-single-service-in-multiple-ingresses/expression-routes-on_golden.yaml (1.03s) 2024-04-03T20:56:09.5402766Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-with-acme-like-path/default_golden.yaml 2024-04-03T20:56:10.3290395Z creating service foo-namespace.cert-manager-solver-pod.80 2024-04-03T20:56:10.4438780Z creating upstream cert-manager-solver-pod.foo-namespace.80.svc 2024-04-03T20:56:10.5536451Z creating route foo-namespace.foo.cert-manager-solver-pod.example.com.80 2024-04-03T20:56:10.6653564Z deleting route foo-namespace.foo.foo-svc.example.com.80 2024-04-03T20:56:10.6654499Z deleting route foo-namespace.foo-2.foo-svc.example.com.80 2024-04-03T20:56:10.8627084Z deleting service foo-namespace.foo-svc.80 2024-04-03T20:56:11.0329875Z deleting upstream foo-svc.foo-namespace.80.svc 2024-04-03T20:56:11.1979624Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-with-acme-like-path/default_golden.yaml (1.66s) 2024-04-03T20:56:12.4717340Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-with-acme-like-path/expression-routes-on_golden.yaml 2024-04-03T20:56:12.4718848Z updating route foo-namespace.foo.cert-manager-solver-pod.example.com.80 { 2024-04-03T20:56:12.4719696Z - "hosts": [ 2024-04-03T20:56:12.4720082Z - "example.com" 2024-04-03T20:56:12.4720537Z - ], 2024-04-03T20:56:12.4721007Z "https_redirect_status_code": 426, 2024-04-03T20:56:12.4721584Z "id": "bba23c8e-3f3c-55dc-bfca-2fe19de118d1", 2024-04-03T20:56:12.4722396Z "name": "foo-namespace.foo.cert-manager-solver-pod.example.com.80", 2024-04-03T20:56:12.4723050Z - "path_handling": "v0", 2024-04-03T20:56:12.4723445Z - "paths": [ 2024-04-03T20:56:12.4723966Z - "/.well-known/acme-challenge/yolo" 2024-04-03T20:56:12.4724473Z - ], 2024-04-03T20:56:12.4724973Z "preserve_host": true, 2024-04-03T20:56:12.4725501Z "protocols": [ 2024-04-03T20:56:12.4725857Z "http", 2024-04-03T20:56:12.4726268Z "https" 2024-04-03T20:56:12.4726576Z ], 2024-04-03T20:56:12.4727247Z - "regex_priority": 0, 2024-04-03T20:56:12.4727762Z "request_buffering": true, 2024-04-03T20:56:12.4728191Z "response_buffering": true, 2024-04-03T20:56:12.4728607Z "service": { 2024-04-03T20:56:12.4729173Z "id": "ffc0fc8a-f989-521b-af6d-d236a9cbcb76", 2024-04-03T20:56:12.4729837Z "name": "foo-namespace.cert-manager-solver-pod.80" 2024-04-03T20:56:12.4730409Z }, 2024-04-03T20:56:12.4730739Z "strip_path": false, 2024-04-03T20:56:12.4731125Z "tags": [ 2024-04-03T20:56:12.4731568Z "k8s-name:foo", 2024-04-03T20:56:12.4732012Z "k8s-namespace:foo-namespace", 2024-04-03T20:56:12.4732501Z "k8s-kind:Ingress", 2024-04-03T20:56:12.4733027Z "k8s-group:networking.k8s.io", 2024-04-03T20:56:12.4733508Z "k8s-version:v1" 2024-04-03T20:56:12.4733914Z ] 2024-04-03T20:56:12.4734562Z + "expression": "(http.host == "example.com") && (http.path ^= "/.well-known/acme-challenge/yolo")" 2024-04-03T20:56:12.4735327Z + "priority": 5.717889961168e+13 2024-04-03T20:56:12.4735957Z } 2024-04-03T20:56:12.4736111Z 2024-04-03T20:56:12.5983585Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-with-acme-like-path/expression-routes-on_golden.yaml (1.40s) 2024-04-03T20:56:12.5987214Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-with-default-backend/default_golden.yaml 2024-04-03T20:56:13.7133950Z creating service foo-namespace.foo-svc.80 2024-04-03T20:56:13.7135139Z creating service bar-namespace.default-svc.80 2024-04-03T20:56:13.8337258Z creating upstream foo-svc.foo-namespace.80.svc 2024-04-03T20:56:13.8338807Z creating upstream default-svc.bar-namespace.80.svc 2024-04-03T20:56:14.0366438Z creating route bar-namespace.ing-with-default-backend 2024-04-03T20:56:14.0367753Z creating route foo-namespace.foo.foo-svc.example.com.80 2024-04-03T20:56:14.1825453Z deleting route foo-namespace.foo.cert-manager-solver-pod.example.com.80 2024-04-03T20:56:14.4420463Z deleting service foo-namespace.cert-manager-solver-pod.80 2024-04-03T20:56:14.5689973Z deleting upstream cert-manager-solver-pod.foo-namespace.80.svc 2024-04-03T20:56:14.9964526Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-with-default-backend/default_golden.yaml (2.40s) 2024-04-03T20:56:14.9967522Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-with-default-backend/expression-routes-on_golden.yaml 2024-04-03T20:56:16.1111014Z updating route bar-namespace.ing-with-default-backend { 2024-04-03T20:56:16.1112059Z "https_redirect_status_code": 426, 2024-04-03T20:56:16.1113194Z "id": "01c21dd4-41c1-57b6-a417-66c80b8ad22b", 2024-04-03T20:56:16.1114616Z "name": "bar-namespace.ing-with-default-backend", 2024-04-03T20:56:16.1115552Z - "path_handling": "v0", 2024-04-03T20:56:16.1116307Z - "paths": [ 2024-04-03T20:56:16.1116868Z - "/" 2024-04-03T20:56:16.1117433Z - ], 2024-04-03T20:56:16.1118052Z "preserve_host": true, 2024-04-03T20:56:16.1118475Z "protocols": [ 2024-04-03T20:56:16.1118905Z "http", 2024-04-03T20:56:16.1119251Z "https" 2024-04-03T20:56:16.1119559Z ], 2024-04-03T20:56:16.1119977Z - "regex_priority": 0, 2024-04-03T20:56:16.1120398Z "request_buffering": true, 2024-04-03T20:56:16.1120819Z "response_buffering": true, 2024-04-03T20:56:16.1121299Z "service": { 2024-04-03T20:56:16.1121820Z "id": "65ebeec1-01a0-5211-85c9-9f688a182c88", 2024-04-03T20:56:16.1122469Z "name": "bar-namespace.default-svc.80" 2024-04-03T20:56:16.1122937Z }, 2024-04-03T20:56:16.1123269Z "strip_path": false, 2024-04-03T20:56:16.1123709Z "tags": [ 2024-04-03T20:56:16.1124237Z "k8s-name:ing-with-default-backend", 2024-04-03T20:56:16.1124840Z "k8s-namespace:bar-namespace", 2024-04-03T20:56:16.1125568Z "k8s-kind:Ingress", 2024-04-03T20:56:16.1126177Z "k8s-group:networking.k8s.io", 2024-04-03T20:56:16.1127143Z "k8s-version:v1" 2024-04-03T20:56:16.1127508Z ] 2024-04-03T20:56:16.1128184Z + "expression": "(http.path ^= "/") && ((net.protocol == "http") || (net.protocol == "https"))" 2024-04-03T20:56:16.1129035Z + "priority": 0 2024-04-03T20:56:16.1129479Z } 2024-04-03T20:56:16.1129690Z 2024-04-03T20:56:16.1130039Z updating route foo-namespace.foo.foo-svc.example.com.80 { 2024-04-03T20:56:16.1130811Z - "hosts": [ 2024-04-03T20:56:16.1131298Z - "example.com" 2024-04-03T20:56:16.1131781Z - ], 2024-04-03T20:56:16.1132236Z "https_redirect_status_code": 426, 2024-04-03T20:56:16.1132939Z "id": "3eee2c18-8fcc-5661-8f84-5c89adfa404f", 2024-04-03T20:56:16.1133772Z "name": "foo-namespace.foo.foo-svc.example.com.80", 2024-04-03T20:56:16.1134469Z - "path_handling": "v0", 2024-04-03T20:56:16.1134906Z - "paths": [ 2024-04-03T20:56:16.1135459Z - "~/$" 2024-04-03T20:56:16.1135811Z - ], 2024-04-03T20:56:16.1136355Z "preserve_host": true, 2024-04-03T20:56:16.1136787Z "protocols": [ 2024-04-03T20:56:16.1137280Z "http", 2024-04-03T20:56:16.1137764Z "https" 2024-04-03T20:56:16.1138150Z ], 2024-04-03T20:56:16.1138533Z - "regex_priority": 0, 2024-04-03T20:56:16.1139394Z "request_buffering": true, 2024-04-03T20:56:16.1139984Z "response_buffering": true, 2024-04-03T20:56:16.1140577Z "service": { 2024-04-03T20:56:16.1141162Z "id": "fe1e2edc-5479-52fe-b0f4-b90d8d5f83ba", 2024-04-03T20:56:16.1141830Z "name": "foo-namespace.foo-svc.80" 2024-04-03T20:56:16.1142438Z }, 2024-04-03T20:56:16.1142757Z "strip_path": false, 2024-04-03T20:56:16.1143251Z "tags": [ 2024-04-03T20:56:16.1143826Z "k8s-name:foo", 2024-04-03T20:56:16.1144310Z "k8s-namespace:foo-namespace", 2024-04-03T20:56:16.1144902Z "k8s-kind:Ingress", 2024-04-03T20:56:16.1145614Z "k8s-group:networking.k8s.io", 2024-04-03T20:56:16.1146104Z "k8s-version:v1" 2024-04-03T20:56:16.1146658Z ] 2024-04-03T20:56:16.1147192Z + "expression": "(http.host == "example.com") && (http.path == "/")" 2024-04-03T20:56:16.1147816Z + "priority": 5.7178899677185e+13 2024-04-03T20:56:16.1148421Z } 2024-04-03T20:56:16.1148603Z 2024-04-03T20:56:16.3473108Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-with-default-backend/expression-routes-on_golden.yaml (1.35s) 2024-04-03T20:56:16.3475883Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kong-service-facade/default_golden.yaml 2024-04-03T20:56:18.0066954Z deleting route bar-namespace.ing-with-default-backend 2024-04-03T20:56:18.0068611Z deleting route foo-namespace.foo.foo-svc.example.com.80 2024-04-03T20:56:18.2324166Z deleting service bar-namespace.default-svc.80 2024-04-03T20:56:18.2325228Z deleting service foo-namespace.foo-svc.80 2024-04-03T20:56:18.3671912Z deleting upstream default-svc.bar-namespace.80.svc 2024-04-03T20:56:18.3673126Z deleting upstream foo-svc.foo-namespace.80.svc 2024-04-03T20:56:18.5119094Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kong-service-facade/default_golden.yaml (2.16s) 2024-04-03T20:56:18.5122152Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kong-service-facade/expression-routes-on_golden.yaml 2024-04-03T20:56:19.4566433Z creating service default.svc-facade-default.svc.facade 2024-04-03T20:56:19.4568251Z creating service default.svc-facade-alpha.svc.facade 2024-04-03T20:56:19.4569804Z creating service default.svc-facade-beta.svc.facade 2024-04-03T20:56:19.5831716Z creating upstream default.svc-facade-beta.svc.facade 2024-04-03T20:56:19.5833431Z creating upstream default.svc-facade-default.svc.facade 2024-04-03T20:56:19.5835012Z creating upstream default.svc-facade-alpha.svc.facade 2024-04-03T20:56:19.7160420Z creating route default.beta..svc-facade-beta.svc.facade 2024-04-03T20:56:19.7161836Z creating route default.alpha..svc-facade-alpha.svc.facade 2024-04-03T20:56:19.7163046Z creating route default.beta 2024-04-03T20:56:19.8642126Z creating target 10.244.0.5:80 for upstream 5f18faa3-d069-4daa-bf2a-460139f5e2e4 2024-04-03T20:56:19.8644223Z creating target 10.244.0.5:80 for upstream b3836d88-3a0e-4474-8bb5-0c45aaaeaf4e 2024-04-03T20:56:19.8645841Z creating target 10.244.0.5:80 for upstream 8f160522-583a-4aae-a512-fb946ab16093 2024-04-03T20:56:20.0243994Z creating plugin basic-auth for service default.svc-facade-alpha.svc.facade 2024-04-03T20:56:20.0246114Z creating plugin basic-auth for service default.svc-facade-beta.svc.facade 2024-04-03T20:56:20.1489481Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kong-service-facade/expression-routes-on_golden.yaml (1.64s) 2024-04-03T20:56:21.4523708Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kong-service-facade/feature-flag-on_golden.yaml 2024-04-03T20:56:21.4525779Z updating route default.beta..svc-facade-beta.svc.facade { 2024-04-03T20:56:21.4527127Z - "expression": "http.path == "/beta"", 2024-04-03T20:56:21.4528206Z "https_redirect_status_code": 426, 2024-04-03T20:56:21.4529223Z "id": "fc5d0d89-6201-5ef9-8785-e58fe257141a", 2024-04-03T20:56:21.4530520Z "name": "default.beta..svc-facade-beta.svc.facade", 2024-04-03T20:56:21.4531491Z "preserve_host": true, 2024-04-03T20:56:21.4532213Z - "priority": 5.4975581454341e+13, 2024-04-03T20:56:21.4532703Z "protocols": [ 2024-04-03T20:56:21.4533063Z "http", 2024-04-03T20:56:21.4533492Z "https" 2024-04-03T20:56:21.4533803Z ], 2024-04-03T20:56:21.4534210Z "request_buffering": true, 2024-04-03T20:56:21.4534660Z "response_buffering": true, 2024-04-03T20:56:21.4535105Z "service": { 2024-04-03T20:56:21.4535689Z "id": "0487ced6-2552-5ccb-905d-db086a449a6c", 2024-04-03T20:56:21.4536329Z "name": "default.svc-facade-beta.svc.facade" 2024-04-03T20:56:21.4536795Z }, 2024-04-03T20:56:21.4537182Z "strip_path": false, 2024-04-03T20:56:21.4537562Z "tags": [ 2024-04-03T20:56:21.4537964Z "k8s-name:beta", 2024-04-03T20:56:21.4538465Z "k8s-namespace:default", 2024-04-03T20:56:21.4539337Z "k8s-kind:Ingress", 2024-04-03T20:56:21.4540007Z "k8s-group:networking.k8s.io", 2024-04-03T20:56:21.4540549Z "k8s-version:v1" 2024-04-03T20:56:21.4541022Z ] 2024-04-03T20:56:21.4541456Z + "path_handling": "v0" 2024-04-03T20:56:21.4542041Z + "paths": [ 2024-04-03T20:56:21.4542449Z + "~/beta$" 2024-04-03T20:56:21.4542931Z + ] 2024-04-03T20:56:21.4543324Z + "regex_priority": 0 2024-04-03T20:56:21.4543812Z } 2024-04-03T20:56:21.4543997Z 2024-04-03T20:56:21.4544237Z updating route default.beta { 2024-04-03T20:56:21.4545085Z - "expression": "(http.path ^= "/") && ((net.protocol == "http") || (net.protocol == "https"))", 2024-04-03T20:56:21.4546235Z "https_redirect_status_code": 426, 2024-04-03T20:56:21.4547031Z "id": "95255daa-88f8-504b-9098-9300d404c741", 2024-04-03T20:56:21.4547554Z "name": "default.beta", 2024-04-03T20:56:21.4548150Z "preserve_host": true, 2024-04-03T20:56:21.4548715Z - "priority": 0, 2024-04-03T20:56:21.4549167Z "protocols": [ 2024-04-03T20:56:21.4549660Z "http", 2024-04-03T20:56:21.4549993Z "https" 2024-04-03T20:56:21.4550491Z ], 2024-04-03T20:56:21.4550864Z "request_buffering": true, 2024-04-03T20:56:21.4551417Z "response_buffering": true, 2024-04-03T20:56:21.4552053Z "service": { 2024-04-03T20:56:21.4552632Z "id": "3f003a09-c285-52aa-a944-c6e156c71e36", 2024-04-03T20:56:21.4553506Z "name": "default.svc-facade-default.svc.facade" 2024-04-03T20:56:21.4554105Z }, 2024-04-03T20:56:21.4554542Z "strip_path": false, 2024-04-03T20:56:21.4555013Z "tags": [ 2024-04-03T20:56:21.4555529Z "k8s-name:beta", 2024-04-03T20:56:21.4555963Z "k8s-namespace:default", 2024-04-03T20:56:21.4556646Z "k8s-kind:Ingress", 2024-04-03T20:56:21.4557246Z "k8s-group:networking.k8s.io", 2024-04-03T20:56:21.4557893Z "k8s-version:v1" 2024-04-03T20:56:21.4558309Z ] 2024-04-03T20:56:21.4558987Z + "path_handling": "v0" 2024-04-03T20:56:21.4559466Z + "paths": [ 2024-04-03T20:56:21.4559897Z + "/" 2024-04-03T20:56:21.4560218Z + ] 2024-04-03T20:56:21.4560715Z + "regex_priority": 0 2024-04-03T20:56:21.4561037Z } 2024-04-03T20:56:21.4561318Z 2024-04-03T20:56:21.4561822Z updating route default.alpha..svc-facade-alpha.svc.facade { 2024-04-03T20:56:21.4562586Z - "expression": "http.path == "/alpha"", 2024-04-03T20:56:21.4563285Z "https_redirect_status_code": 426, 2024-04-03T20:56:21.4564101Z "id": "801503ef-c5b4-572a-854d-c2082ce92711", 2024-04-03T20:56:21.4564883Z "name": "default.alpha..svc-facade-alpha.svc.facade", 2024-04-03T20:56:21.4565467Z "preserve_host": true, 2024-04-03T20:56:21.4566091Z - "priority": 5.4975581454342e+13, 2024-04-03T20:56:21.4566644Z "protocols": [ 2024-04-03T20:56:21.4566973Z "http", 2024-04-03T20:56:21.4567507Z "https" 2024-04-03T20:56:21.4567842Z ], 2024-04-03T20:56:21.4568378Z "request_buffering": true, 2024-04-03T20:56:21.4568847Z "response_buffering": true, 2024-04-03T20:56:21.4569361Z "service": { 2024-04-03T20:56:21.4569975Z "id": "08c15f88-4777-5a1c-8d1c-28c8f5b252a3", 2024-04-03T20:56:21.4570724Z "name": "default.svc-facade-alpha.svc.facade" 2024-04-03T20:56:21.4571197Z }, 2024-04-03T20:56:21.4571630Z "strip_path": false, 2024-04-03T20:56:21.4571998Z "tags": [ 2024-04-03T20:56:21.4572469Z "k8s-name:alpha", 2024-04-03T20:56:21.4573054Z "k8s-namespace:default", 2024-04-03T20:56:21.4573507Z "k8s-kind:Ingress", 2024-04-03T20:56:21.4574182Z "k8s-group:networking.k8s.io", 2024-04-03T20:56:21.4574663Z "k8s-version:v1" 2024-04-03T20:56:21.4575040Z ] 2024-04-03T20:56:21.4575451Z + "path_handling": "v0" 2024-04-03T20:56:21.4575828Z + "paths": [ 2024-04-03T20:56:21.4576231Z + "~/alpha$" 2024-04-03T20:56:21.4576555Z + ] 2024-04-03T20:56:21.4577000Z + "regex_priority": 0 2024-04-03T20:56:21.4577447Z } 2024-04-03T20:56:21.4577599Z 2024-04-03T20:56:21.5807646Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kong-service-facade/feature-flag-on_golden.yaml (1.43s) 2024-04-03T20:56:21.5809531Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kongplugin-instance-name/default_golden.yaml 2024-04-03T20:56:23.0654164Z creating service default.httpbin-other.80 2024-04-03T20:56:23.0655421Z creating service default.httpbin.80 2024-04-03T20:56:23.3286572Z creating upstream httpbin.default.80.svc 2024-04-03T20:56:23.3288031Z creating upstream httpbin-other.default.80.svc 2024-04-03T20:56:23.5501071Z creating route default.httpbin-other.httpbin-other..80 2024-04-03T20:56:23.5502292Z creating route default.httpbin-other.httpbin..80 2024-04-03T20:56:23.5503049Z creating route default.httpbin.httpbin..80 2024-04-03T20:56:23.7168232Z creating plugin correlation-id for route default.httpbin-other.httpbin..80 2024-04-03T20:56:23.7170421Z creating plugin correlation-id for route default.httpbin-other.httpbin-other..80 2024-04-03T20:56:23.7172109Z creating plugin correlation-id for route default.httpbin.httpbin..80 2024-04-03T20:56:23.8684800Z deleting plugin basic-auth for service default.svc-facade-alpha.svc.facade 2024-04-03T20:56:23.8686403Z deleting plugin basic-auth for service default.svc-facade-beta.svc.facade 2024-04-03T20:56:23.9930379Z deleting route default.beta 2024-04-03T20:56:23.9931236Z deleting route default.beta..svc-facade-beta.svc.facade 2024-04-03T20:56:23.9931932Z deleting route default.alpha..svc-facade-alpha.svc.facade 2024-04-03T20:56:24.2891222Z deleting target 10.244.0.5:80 for upstream b3836d88-3a0e-4474-8bb5-0c45aaaeaf4e 2024-04-03T20:56:24.2892675Z deleting target 10.244.0.5:80 for upstream 5f18faa3-d069-4daa-bf2a-460139f5e2e4 2024-04-03T20:56:24.2893590Z deleting target 10.244.0.5:80 for upstream 8f160522-583a-4aae-a512-fb946ab16093 2024-04-03T20:56:24.6158099Z deleting service default.svc-facade-default.svc.facade 2024-04-03T20:56:24.6159035Z deleting service default.svc-facade-alpha.svc.facade 2024-04-03T20:56:24.6160198Z deleting service default.svc-facade-beta.svc.facade 2024-04-03T20:56:25.0038399Z deleting upstream default.svc-facade-beta.svc.facade 2024-04-03T20:56:25.0039719Z deleting upstream default.svc-facade-alpha.svc.facade 2024-04-03T20:56:25.0040534Z deleting upstream default.svc-facade-default.svc.facade 2024-04-03T20:56:25.4251850Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kongplugin-instance-name/default_golden.yaml (3.84s) 2024-04-03T20:56:25.4254302Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kongupstreampolicy-httproute/default_golden.yaml 2024-04-03T20:56:27.1607548Z creating service httproute.default.httpbin.0 2024-04-03T20:56:27.1608536Z creating service httproute.default.httpbin.1 2024-04-03T20:56:27.3981281Z creating upstream httproute.default.httpbin.0 2024-04-03T20:56:27.3982554Z creating upstream httproute.default.httpbin.1 2024-04-03T20:56:27.6971488Z creating route httproute.default.httpbin.0.0 2024-04-03T20:56:27.6972307Z creating route httproute.default.httpbin.1.0 2024-04-03T20:56:27.8863118Z deleting plugin correlation-id for route default.httpbin-other.httpbin..80 2024-04-03T20:56:27.8864559Z deleting plugin correlation-id for route default.httpbin.httpbin..80 2024-04-03T20:56:27.8866647Z deleting plugin correlation-id for route default.httpbin-other.httpbin-other..80 2024-04-03T20:56:28.0217846Z deleting route default.httpbin-other.httpbin-other..80 2024-04-03T20:56:28.0218882Z deleting route default.httpbin.httpbin..80 2024-04-03T20:56:28.0219790Z deleting route default.httpbin-other.httpbin..80 2024-04-03T20:56:28.2298773Z deleting service default.httpbin.80 2024-04-03T20:56:28.2299600Z deleting service default.httpbin-other.80 2024-04-03T20:56:28.4099444Z deleting upstream httpbin.default.80.svc 2024-04-03T20:56:28.4100435Z deleting upstream httpbin-other.default.80.svc 2024-04-03T20:56:28.7186732Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kongupstreampolicy-httproute/default_golden.yaml (3.29s) 2024-04-03T20:56:28.7190021Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kongupstreampolicy-ingress/default_golden.yaml 2024-04-03T20:56:29.9964877Z creating service default.httpbin-deployment.8080 2024-04-03T20:56:30.2590580Z creating service default.httpbin-deployment.80 2024-04-03T20:56:30.2591439Z creating upstream httpbin-deployment.default.80.svc 2024-04-03T20:56:30.2592189Z creating upstream httpbin-deployment.default.8080.svc 2024-04-03T20:56:30.4741321Z creating route default.httpbin-ingress-1.httpbin-deployment..80 2024-04-03T20:56:30.4742624Z creating route default.httpbin-ingress-1.httpbin-deployment..8080 2024-04-03T20:56:30.7804662Z deleting route httproute.default.httpbin.0.0 2024-04-03T20:56:30.7805612Z deleting route httproute.default.httpbin.1.0 2024-04-03T20:56:30.9540228Z deleting service httproute.default.httpbin.1 2024-04-03T20:56:30.9540880Z deleting service httproute.default.httpbin.0 2024-04-03T20:56:31.2357511Z deleting upstream httproute.default.httpbin.0 2024-04-03T20:56:31.2358465Z deleting upstream httproute.default.httpbin.1 2024-04-03T20:56:31.4107923Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/kongupstreampolicy-ingress/default_golden.yaml (2.69s) 2024-04-03T20:56:32.4331866Z === RUN TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/same-name-services-single-backend/default_golden.yaml 2024-04-03T20:56:32.4333095Z creating service httproute.default.test.0 2024-04-03T20:56:32.5648981Z creating upstream httproute.default.test.0 2024-04-03T20:56:32.9355128Z creating route httproute.default.test.0.0 2024-04-03T20:56:33.1161310Z creating target 10.244.0.4:9443 for upstream d72d6fdd-a232-4c8c-930e-dae653180ecc 2024-04-03T20:56:33.1162723Z creating target 10.244.0.5:9443 for upstream d72d6fdd-a232-4c8c-930e-dae653180ecc 2024-04-03T20:56:33.3849706Z deleting route default.httpbin-ingress-1.httpbin-deployment..80 2024-04-03T20:56:33.3850824Z deleting route default.httpbin-ingress-1.httpbin-deployment..8080 2024-04-03T20:56:33.6029470Z deleting service default.httpbin-deployment.80 2024-04-03T20:56:33.6030274Z deleting service default.httpbin-deployment.8080 2024-04-03T20:56:33.7120394Z deleting upstream httpbin-deployment.default.8080.svc 2024-04-03T20:56:33.7121390Z deleting upstream httpbin-deployment.default.80.svc 2024-04-03T20:56:33.9746109Z --- PASS: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/same-name-services-single-backend/default_golden.yaml (2.56s) 2024-04-03T20:56:33.9748227Z control_plane.go:68: deleting test Konnect Control Plane: "a1002f90-7b26-4ccd-bab3-1807be4fa7f1" 2024-04-03T20:56:34.9192590Z 2024/04/03 20:56:34 [DEBUG] GET https://global.api.konghq.tech/v2/users/me 2024-04-03T20:56:35.6499307Z 2024/04/03 20:56:35 [DEBUG] GET https://global.api.konghq.tech/v2/users/515d12f2-aab2-42b3-a093-6ad793c0c7ab/assigned-roles?filter%5Bentity_type_name%5D=Runtime+Groups 2024-04-03T20:56:35.9379300Z control_plane.go:89: deleting test Konnect Control Plane role: "b631506c-30a7-46f8-bd3d-35d8986c9d9a" 2024-04-03T20:56:35.9381030Z 2024/04/03 20:56:35 [DEBUG] DELETE https://global.api.konghq.tech/v2/users/515d12f2-aab2-42b3-a093-6ad793c0c7ab/assigned-roles/b631506c-30a7-46f8-bd3d-35d8986c9d9a 2024-04-03T20:56:36.2671846Z --- FAIL: TestTranslatorsGoldenTestsOutputs_Konnect (73.83s) 2024-04-03T20:56:36.2672786Z FAIL 2024-04-03T20:56:36.2778077Z coverage: 5.7% of statements in ./pkg/..., ./internal/... 2024-04-03T20:56:36.3390971Z FAIL github.com/kong/kubernetes-ingress-controller/v3/test/kongintegration 74.448s 2024-04-03T20:56:36.6370196Z 2024-04-03T20:56:36.6371214Z === Failed 2024-04-03T20:56:36.6373603Z === FAIL: test/kongintegration TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-rule-with-tls/default_golden.yaml (5.00s) 2024-04-03T20:56:36.6375706Z creating certificate 8aade13c-1470-46bd-9849-9a74e349214f 2024-04-03T20:56:36.6376743Z creating certificate c6ac927c-4f5a-4e88-8b5d-c7b01d0f43af 2024-04-03T20:56:36.6377508Z creating sni 4.example.com 2024-04-03T20:56:36.6378029Z creating sni 1.example.com 2024-04-03T20:56:36.6378528Z creating sni 3.example.com 2024-04-03T20:56:36.6379246Z creating sni 2.example.com 2024-04-03T20:56:36.6379933Z creating service bar-namespace.foo-svc.80 2024-04-03T20:56:36.6380763Z creating upstream foo-svc.bar-namespace.80.svc 2024-04-03T20:56:36.6381820Z creating route bar-namespace.ing-with-tls.foo-svc.example.com.80 2024-04-03T20:56:36.6383017Z deleting route foo-namespace.regex-prefix.foo-svc.example.com.80 2024-04-03T20:56:36.6384365Z translator_golden_tests_outputs_test.go:129: 2024-04-03T20:56:36.6386863Z Error Trace: /home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/kongintegration/translator_golden_tests_outputs_test.go:129 2024-04-03T20:56:36.6391091Z /home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/kongintegration/translator_golden_tests_outputs_test.go:111 2024-04-03T20:56:36.6392859Z Error: Condition never satisfied 2024-04-03T20:56:36.6395120Z Test: TestTranslatorsGoldenTestsOutputs_Konnect/../../internal/dataplane/translator/testdata/golden/ingress-v1-rule-with-tls/default_golden.yaml 2024-04-03T20:56:36.6396437Z 2024-04-03T20:56:36.6397189Z === FAIL: test/kongintegration TestTranslatorsGoldenTestsOutputs_Konnect (73.83s) 2024-04-03T20:56:36.6398731Z 2024/04/03 20:55:22 github.com/testcontainers/testcontainers-go - Connected to docker: 2024-04-03T20:56:36.6399769Z Server Version: 24.0.9 2024-04-03T20:56:36.6400299Z API Version: 1.43 2024-04-03T20:56:36.6400822Z Operating System: Ubuntu 22.04.4 LTS 2024-04-03T20:56:36.6401437Z Total Memory: 15981 MB 2024-04-03T20:56:36.6402387Z Resolved Docker Host: unix:///var/run/docker.sock 2024-04-03T20:56:36.6403204Z Resolved Docker Socket Path: /var/run/docker.sock 2024-04-03T20:56:36.6404302Z Test SessionID: 72be35b3f2e64eeea14db46c260eba96fca06029ac3e85fb7d926f70a1365a9b 2024-04-03T20:56:36.6405052Z Test ProcessID: 69c08f7b-6322-40d4-ab5e-ee042bb5fbb6 2024-04-03T20:56:36.6406196Z translator_golden_tests_outputs_test.go:101: created test Konnect Control Plane: "a1002f90-7b26-4ccd-bab3-1807be4fa7f1" 2024-04-03T20:56:36.6407385Z translator_golden_tests_outputs_test.go:102: creating client certificate in Konnect 2024-04-03T20:56:36.6408605Z 2024/04/03 20:55:23 [DEBUG] POST https://us.api.konghq.tech/v2/control-planes/a1002f90-7b26-4ccd-bab3-1807be4fa7f1/dp-client-certificates 2024-04-03T20:56:36.6410765Z control_plane.go:68: deleting test Konnect Control Plane: "a1002f90-7b26-4ccd-bab3-1807be4fa7f1" 2024-04-03T20:56:36.6412085Z 2024/04/03 20:56:34 [DEBUG] GET https://global.api.konghq.tech/v2/users/me 2024-04-03T20:56:36.6414175Z 2024/04/03 20:56:35 [DEBUG] GET https://global.api.konghq.tech/v2/users/515d12f2-aab2-42b3-a093-6ad793c0c7ab/assigned-roles?filter%5Bentity_type_name%5D=Runtime+Groups 2024-04-03T20:56:36.6416240Z control_plane.go:89: deleting test Konnect Control Plane role: "b631506c-30a7-46f8-bd3d-35d8986c9d9a" 2024-04-03T20:56:36.6417648Z 2024/04/03 20:56:35 [DEBUG] DELETE https://global.api.konghq.tech/v2/users/515d12f2-aab2-42b3-a093-6ad793c0c7ab/assigned-roles/b631506c-30a7-46f8-bd3d-35d8986c9d9a 2024-04-03T20:56:36.6418433Z 2024-04-03T20:56:36.6420504Z DONE 79 tests, 2 failures in 160.003s 2024-04-03T20:56:36.6428429Z make[1]: *** [Makefile:577: _test.kongintegration] Error 1 2024-04-03T20:56:36.6430666Z make: *** [Makefile:569: test.kongintegration] Error 2 2024-04-03T20:56:36.6449454Z ##[error]Process completed with exit code 2. 2024-04-03T20:56:36.6509961Z ##[group]Run actions/upload-artifact@v3 2024-04-03T20:56:36.6510324Z with: 2024-04-03T20:56:36.6510557Z name: tests-report 2024-04-03T20:56:36.6510843Z path: *-tests.xml 2024-04-03T20:56:36.6511109Z if-no-files-found: warn 2024-04-03T20:56:36.6511380Z env: 2024-04-03T20:56:36.6511603Z TEST_KONG_IMAGE: kong 2024-04-03T20:56:36.6511879Z TEST_KONG_TAG: 3.6.1 2024-04-03T20:56:36.6512472Z MISE_TRUSTED_CONFIG_PATHS: /home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller 2024-04-03T20:56:36.6513106Z MISE_YES: 1 2024-04-03T20:56:36.6513349Z MISE_EXPERIMENTAL: 0 2024-04-03T20:56:36.6513615Z ##[endgroup] 2024-04-03T20:56:36.7689668Z With the provided path, there will be 1 file uploaded 2024-04-03T20:56:36.7692540Z Starting artifact upload 2024-04-03T20:56:36.7695032Z For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging 2024-04-03T20:56:36.7697146Z Artifact name is valid! 2024-04-03T20:56:37.0200654Z Container for artifact "tests-report" successfully created. Starting upload of file(s) 2024-04-03T20:56:37.2965174Z Total size of all the files uploaded is 2295 bytes 2024-04-03T20:56:37.2966259Z File upload process has finished. Finalizing the artifact upload 2024-04-03T20:56:37.5429500Z Artifact has been finalized. All files have been successfully uploaded! 2024-04-03T20:56:37.5430198Z 2024-04-03T20:56:37.5430564Z The raw size of all the files that were specified for upload is 24370 bytes 2024-04-03T20:56:37.5431861Z The size of all the files that were uploaded is 2295 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage 2024-04-03T20:56:37.5432765Z 2024-04-03T20:56:37.5433881Z Note: The size of downloaded zips can differ significantly from the reported size. For more information see: https://github.com/actions/upload-artifact#zipped-artifact-downloads 2024-04-03T20:56:37.5434950Z 2024-04-03T20:56:37.5435240Z Artifact tests-report has been successfully uploaded! 2024-04-03T20:56:37.5537672Z Post job cleanup. 2024-04-03T20:56:37.6261877Z [command]/usr/bin/git version 2024-04-03T20:56:37.6301775Z git version 2.43.2 2024-04-03T20:56:37.6341607Z Temporarily overriding HOME='/home/runner/work/_temp/6883989e-7409-4f39-93b3-2528a6dc0f91' before making global git config changes 2024-04-03T20:56:37.6343302Z Adding repository directory to the temporary git global config as a safe directory 2024-04-03T20:56:37.6347160Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller 2024-04-03T20:56:37.6387737Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2024-04-03T20:56:37.6426725Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" 2024-04-03T20:56:37.6692097Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2024-04-03T20:56:37.6712147Z http.https://github.com/.extraheader 2024-04-03T20:56:37.6723508Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader 2024-04-03T20:56:37.6756357Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" 2024-04-03T20:56:37.7216714Z Cleaning up orphan processes ```
czeslavo commented 5 months ago

This looks like an issue in https://github.com/Kong/go-database-reconciler and/or Konnect API. Ideally, if we delete an already non-existing entity, we should get a 204 status code and this should not result in the application error in our case.

Anyway, it could be worth reproducing it locally to see if there's some logical error in the diff calculation in GDR that causes removing a non-existing route (probably not, AFAIK it's fetching the current state from Admin API and compares it with the desired one; given that, the most probable cause is concurrent modifications or returning a stale state from API).