Recent runs || View in Spyglass
PR | rikatz: Create dp service |
Result | FAILURE |
Tests | 0 failed / 0 succeeded |
Started | |
Elapsed | 3m26s |
Revision | 5b8d6d2d9cc13d5915f37246dc1df255fe01cf66 |
Refs |
8955 |
... skipping 240 lines ... go: downloading github.com/evanphx/json-patch/v5 v5.6.0 ? k8s.io/ingress-nginx/cmd/dataplane [no test files] ? k8s.io/ingress-nginx/cmd/dbg [no test files] ? k8s.io/ingress-nginx/cmd/grpccli [no test files] === RUN TestCreateApiserverClient W1226 21:48:58.814939 13868 client_config.go:617] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work. W1226 21:48:58.815067 13868 client_config.go:622] error creating inClusterConfig, falling back to default config: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory --- PASS: TestCreateApiserverClient (0.00s) === RUN TestHandleSigterm E1226 21:48:58.816221 13868 maxmind.go:80] GeoLite2-City.mmdb not found W1226 21:48:58.824711 13868 store.go:806] Unexpected error reading configuration configmap: configmaps "" not found main_test.go:118: Sending SIGTERM to PID 13868 --- PASS: TestHandleSigterm (1.02s) PASS ok k8s.io/ingress-nginx/cmd/nginx 1.139s ? k8s.io/ingress-nginx/cmd/plugin [no test files] ? k8s.io/ingress-nginx/cmd/plugin/commands/backends [no test files] ... skipping 12 lines ... ? k8s.io/ingress-nginx/cmd/plugin/kubectl [no test files] ? k8s.io/ingress-nginx/cmd/plugin/lints [no test files] ? k8s.io/ingress-nginx/cmd/plugin/request [no test files] ? k8s.io/ingress-nginx/cmd/plugin/util [no test files] ? k8s.io/ingress-nginx/cmd/waitshutdown [no test files] === RUN TestHandleAdmission E1226 21:48:56.984471 13466 main.go:77] "failed to decode ingress" err="couldn't get version/kind; json parse error: invalid character 'ΓΏ' looking for beginning of value" E1226 21:48:56.985502 13466 main.go:89] "invalid ingress configuration" err="this is a test error" ingress="/" I1226 21:48:56.985587 13466 main.go:100] "successfully validated configuration, accepting" ingress="/" --- PASS: TestHandleAdmission (0.00s) PASS ok k8s.io/ingress-nginx/internal/admission/controller 0.022s === RUN TestSSLPassthrough --- PASS: TestSSLPassthrough (0.00s) ... skipping 93 lines ... PASS ok k8s.io/ingress-nginx/internal/ingress/annotations/connection 0.019s === RUN TestIngressCorsConfigValid I1226 21:49:00.027710 14035 main.go:140] Current config.corsAllowOrigin [https://origin123.test.com:4443] --- PASS: TestIngressCorsConfigValid (0.00s) === RUN TestIngressCorsConfigInvalid E1226 21:49:00.027905 14035 main.go:136] Error parsing cors-allow-origin parameters. Supplied incorrect origin: origin123.test.com:4443. Skipping. --- PASS: TestIngressCorsConfigInvalid (0.00s) PASS ok k8s.io/ingress-nginx/internal/ingress/annotations/cors 0.058s === RUN TestParseInvalidAnnotations --- PASS: TestParseInvalidAnnotations (0.00s) === RUN TestParseAnnotations ... skipping 288 lines ... --- PASS: TestExtractTLSSecretName/ingress_tls,_hosts,_matching_cert_cn (0.00s) --- PASS: TestExtractTLSSecretName/ingress_tls,_hosts,_matching_cert_cn,_uppercase_host (0.00s) --- PASS: TestExtractTLSSecretName/ingress_tls,_hosts,_bad_format_cert,_host_not_in_tls_Hosts (0.00s) --- PASS: TestExtractTLSSecretName/nil_ingress (0.00s) --- PASS: TestExtractTLSSecretName/empty_ingress (0.00s) === RUN TestGetBackendServers W1226 21:49:12.510106 16073 controller.go:1045] Error creating upstream "example-http-svc-canary-80": no object matching key "example/http-svc-canary" in local store W1226 21:49:12.510267 16073 controller.go:1051] Error obtaining Service "example/http-svc-canary": no object matching key "example/http-svc-canary" in local store W1226 21:49:12.966103 16073 controller.go:1045] Error creating upstream "example-http-svc-canary-80": no object matching key "example/http-svc-canary" in local store W1226 21:49:12.966232 16073 controller.go:1051] Error obtaining Service "example/http-svc-canary": no object matching key "example/http-svc-canary" in local store W1226 21:49:12.966271 16073 controller.go:1045] Error creating upstream "example-http-svc-80": no object matching key "example/http-svc" in local store W1226 21:49:12.966316 16073 controller.go:1051] Error obtaining Service "example/http-svc": no object matching key "example/http-svc" in local store W1226 21:49:13.261837 16073 controller.go:1115] Error obtaining Endpoints for Service "example/http-svc-canary": no object matching key "example/http-svc-canary" in local store W1226 21:49:13.449864 16073 controller.go:1115] Error obtaining Endpoints for Service "example/http-svc": no object matching key "example/http-svc" in local store W1226 21:49:13.449988 16073 controller.go:1115] Error obtaining Endpoints for Service "example/http-svc-canary": no object matching key "example/http-svc-canary" in local store W1226 21:49:13.605767 16073 controller.go:1115] Error obtaining Endpoints for Service "example/http-svc-1": no object matching key "example/http-svc-1" in local store W1226 21:49:13.605815 16073 controller.go:1115] Error obtaining Endpoints for Service "example/http-svc-2": no object matching key "example/http-svc-2" in local store W1226 21:49:13.605885 16073 controller.go:1651] alternative upstream example-http-svc-1-80 in Ingress example/example-b-canary is primary upstream in Other Ingress for location example.com/a! W1226 21:49:13.838824 16073 controller.go:1115] Error obtaining Endpoints for Service "proxyssl/path1-svc": no object matching key "proxyssl/path1-svc" in local store W1226 21:49:13.838971 16073 controller.go:1115] Error obtaining Endpoints for Service "proxyssl/path2-svc": no object matching key "proxyssl/path2-svc" in local store W1226 21:49:14.186254 16073 controller.go:1115] Error obtaining Endpoints for Service "proxyssl/path1-svc": no object matching key "proxyssl/path1-svc" in local store W1226 21:49:14.186536 16073 controller.go:1115] Error obtaining Endpoints for Service "proxyssl/path2-svc": no object matching key "proxyssl/path2-svc" in local store W1226 21:49:15.093571 16073 controller.go:1115] Error obtaining Endpoints for Service "default/path1-svc": no object matching key "default/path1-svc" in local store --- PASS: TestGetBackendServers (2.74s) === RUN TestGetEndpointsFromSlices === RUN TestGetEndpointsFromSlices/no_service_should_return_0_endpoint === RUN TestGetEndpointsFromSlices/no_service_port_should_return_0_endpoint === RUN TestGetEndpointsFromSlices/a_service_without_endpoint_should_return_0_endpoint === RUN TestGetEndpointsFromSlices/a_service_type_ServiceTypeExternalName_service_with_an_invalid_port_should_return_0_endpoint ... skipping 4 lines ... E1226 21:49:15.094864 16073 endpointslices.go:57] Invalid attempt to use localhost name 127.0.0.1 in "" === RUN TestGetEndpointsFromSlices/a_service_type_ServiceTypeExternalName_with_a_valid_port_should_return_one_endpoint === RUN TestGetEndpointsFromSlices/a_service_type_ServiceTypeExternalName_with_an_trailing_dot_ExternalName_value_should_return_one_endpoints === RUN TestGetEndpointsFromSlices/a_service_type_ServiceTypeExternalName_with_an_invalid_ExternalName_value_should_no_return_endpoints E1226 21:49:15.095211 16073 endpointslices.go:67] Invalid DNS name 1#invalid.hostname: [a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')] === RUN TestGetEndpointsFromSlices/should_return_no_endpoint_when_there_is_an_error_searching_for_endpoints W1226 21:49:15.095410 16073 endpointslices.go:81] Error obtaining Endpoints for Service "": unexpected error === RUN TestGetEndpointsFromSlices/should_return_no_endpoint_when_the_protocol_does_not_match === RUN TestGetEndpointsFromSlices/should_return_no_endpoint_when_there_is_no_ready_Addresses === RUN TestGetEndpointsFromSlices/should_return_no_endpoint_when_the_name_of_the_port_name_do_not_match_any_port_in_the_endpointPort_and_TargetPort_is_string === RUN TestGetEndpointsFromSlices/should_return_one_endpoint_when_the_name_of_the_port_name_do_not_match_any_port_in_the_endpointPort_and_TargetPort_is_int === RUN TestGetEndpointsFromSlices/should_return_one_endpoint_when_the_name_of_the_port_name_match_a_port_in_the_endpointPort === RUN TestGetEndpointsFromSlices/should_return_two_endpoints_when_the_name_of_the_port_name_match_a_port_in_the_endpointPort ... skipping 53 lines ... I1226 21:49:22.906350 16493 event.go:285] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"store-test-1672091362", Name:"config", UID:"900d95c2-0997-4f75-9bcb-3de23b4e24b4", APIVersion:"v1", ResourceVersion:"200", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap store-test-1672091362/config === RUN TestStore/should_return_no_event_for_add,_update_and_delete_of_ingress_as_the_existing_ingressclass_is_not_the_expected I1226 21:49:24.132012 16493 event.go:285] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"store-test-1672091364", Name:"config", UID:"92d86458-086c-4e03-b92d-2ed56c128fe9", APIVersion:"v1", ResourceVersion:"204", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap store-test-1672091364/config I1226 21:49:25.336308 16493 store.go:519] "ignoring ingressclass as the spec.controller is not the same of this ingress" ingressclass="ingress-nginx-1672091365" I1226 21:49:25.336701 16493 store.go:519] "ignoring ingressclass as the spec.controller is not the same of this ingress" ingressclass="ingress-nginx-1672091365" store_test.go:216: Ingress &Ingress{ObjectMeta:{dummy-no-class store-test-1672091364 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:dummy,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:*ingress-nginx-1672091365,},Status:IngressStatus{LoadBalancer:{[]},},} not found, creating I1226 21:49:25.345292 16493 store.go:424] "Ignoring ingress because of error while validating ingress class" ingress="store-test-1672091364/dummy-no-class" error="no object matching key \"ingress-nginx-1672091365\" in local store" store_test.go:216: Ingress &Ingress{ObjectMeta:{dummy-no-class store-test-1672091364 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:dummy,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:*ingress-nginx-1672091365,},Status:IngressStatus{LoadBalancer:{[]},},} created I1226 21:49:31.361205 16493 store.go:394] "Ignoring ingress because of error while validating ingress class" ingress="store-test-1672091364/dummy-no-class" error="no object matching key \"ingress-nginx-1672091365\" in local store" I1226 21:49:34.370119 16493 store.go:536] "ignoring ingressclass as the spec.controller is not the same of this ingress" ingressclass="ingress-nginx-1672091365" I1226 21:49:34.370635 16493 store.go:536] "ignoring ingressclass as the spec.controller is not the same of this ingress" ingressclass="ingress-nginx-1672091365" === RUN TestStore/should_return_one_event_for_add,_update_and_delete_of_ingress I1226 21:49:34.393023 16493 event.go:285] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"store-test-1672091374", Name:"config", UID:"cd994d1d-2462-4d47-a2b1-931e55290842", APIVersion:"v1", ResourceVersion:"215", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap store-test-1672091374/config store_test.go:318: Ingress &Ingress{ObjectMeta:{dummy-class store-test-1672091374 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:dummy,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:*ingress-nginx-1672091374,},Status:IngressStatus{LoadBalancer:{[]},},} not found, creating I1226 21:49:35.601346 16493 store.go:428] "Found valid IngressClass" ingress="store-test-1672091374/dummy-class" ingressclass="ingress-nginx-1672091374" store_test.go:318: Ingress &Ingress{ObjectMeta:{dummy-class store-test-1672091374 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:dummy,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:*ingress-nginx-1672091374,},Status:IngressStatus{LoadBalancer:{[]},},} created I1226 21:49:35.601630 16493 event.go:285] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"store-test-1672091374", Name:"dummy-class", UID:"ce3ce81b-0eaa-43d0-91a1-5565671a2210", APIVersion:"networking.k8s.io/v1", ResourceVersion:"217", FieldPath:""}): type: 'Normal' reason: 'Sync' Scheduled for sync store_test.go:333: Ingress &Ingress{ObjectMeta:{no-class store-test-1672091374 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:dummy,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:nil,},Status:IngressStatus{LoadBalancer:{[]},},} not found, creating I1226 21:49:38.616220 16493 store.go:424] "Ignoring ingress because of error while validating ingress class" ingress="store-test-1672091374/no-class" error="ingress does not contain a valid IngressClass" store_test.go:333: Ingress &Ingress{ObjectMeta:{no-class store-test-1672091374 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:dummy,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:nil,},Status:IngressStatus{LoadBalancer:{[]},},} created I1226 21:49:38.620118 16493 event.go:285] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"store-test-1672091374", Name:"dummy-class", UID:"ce3ce81b-0eaa-43d0-91a1-5565671a2210", APIVersion:"networking.k8s.io/v1", ResourceVersion:"220", FieldPath:""}): type: 'Normal' reason: 'Sync' Scheduled for sync I1226 21:49:44.636549 16493 store.go:394] "Ignoring ingress because of error while validating ingress class" ingress="store-test-1672091374/no-class" error="ingress does not contain a valid IngressClass" store_test.go:371: Ingress &Ingress{ObjectMeta:{no-class store-test-1672091374 c132de02-b1e2-488e-8ab4-8ccfe3e350b4 219 1 2022-12-26 21:49:38 +0000 UTC <nil> <nil> map[] map[] [] [] [{store.test Update networking.k8s.io/v1 2022-12-26 21:49:38 +0000 UTC FieldsV1 {"f:spec":{"f:rules":{}}} }]},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:dummy,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:nil,},Status:IngressStatus{LoadBalancer:{[]},},} deleted === RUN TestStore/should_return_two_events_for_add_and_delete_and_one_for_update_of_ingress_and_watch-without-class I1226 21:49:44.662624 16493 event.go:285] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"store-test-1672091384", Name:"config", UID:"88a23f95-7c60-4421-934f-36f16b2e733d", APIVersion:"v1", ResourceVersion:"228", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap store-test-1672091384/config store_test.go:433: Ingress &Ingress{ObjectMeta:{ing1 store-test-1672091384 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:dummy,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:nil,},Status:IngressStatus{LoadBalancer:{[]},},} not found, creating store_test.go:433: Ingress &Ingress{ObjectMeta:{ing1 store-test-1672091384 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:dummy,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:nil,},Status:IngressStatus{LoadBalancer:{[]},},} created I1226 21:49:45.869464 16493 store.go:428] "Found valid IngressClass" ingress="store-test-1672091384/ing1" ingressclass="_" ... skipping 20 lines ... I1226 21:50:08.189156 16493 store.go:536] "ignoring ingressclass as the spec.controller is not the same of this ingress" ingressclass="ingress-nginx-1672091398" I1226 21:50:08.189213 16493 store.go:536] "ignoring ingressclass as the spec.controller is not the same of this ingress" ingressclass="ingress-nginx-1672091398" I1226 21:50:08.189322 16493 store.go:536] "ignoring ingressclass as the spec.controller is not the same of this ingress" ingressclass="ingress-nginx-1672091398" === RUN TestStore/should_not_receive_updates_for_ingress_with_invalid_class_annotation I1226 21:50:08.210669 16493 event.go:285] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"store-test-1672091408", Name:"config", UID:"20c00a64-534b-418f-9157-60beb66bcdc7", APIVersion:"v1", ResourceVersion:"253", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap store-test-1672091408/config store_test.go:664: Ingress &Ingress{ObjectMeta:{custom-class store-test-1672091408 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[kubernetes.io/ingress.class:something] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:other-ingress,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:nil,},Status:IngressStatus{LoadBalancer:{[]},},} not found, creating I1226 21:50:09.418125 16493 store.go:424] "Ignoring ingress because of error while validating ingress class" ingress="store-test-1672091408/custom-class" error="ingress class annotation is not equal to the expected by Ingress Controller" store_test.go:664: Ingress &Ingress{ObjectMeta:{custom-class store-test-1672091408 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[kubernetes.io/ingress.class:something] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:other-ingress,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:nil,},Status:IngressStatus{LoadBalancer:{[]},},} created === RUN TestStore/should_not_receive_updates_for_ingress_with_invalid_class_specification I1226 21:50:15.459379 16493 event.go:285] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"store-test-1672091415", Name:"config", UID:"a7084ef3-b331-4707-b213-96f641bfcb71", APIVersion:"v1", ResourceVersion:"261", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap store-test-1672091415/config store_test.go:760: Ingress &Ingress{ObjectMeta:{custom-class store-test-1672091415 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:other-ingress,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:*blo123,},Status:IngressStatus{LoadBalancer:{[]},},} not found, creating store_test.go:760: Ingress &Ingress{ObjectMeta:{custom-class store-test-1672091415 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:other-ingress,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:*blo123,},Status:IngressStatus{LoadBalancer:{[]},},} created I1226 21:50:16.665991 16493 store.go:424] "Ignoring ingress because of error while validating ingress class" ingress="store-test-1672091415/custom-class" error="no object matching key \"blo123\" in local store" === RUN TestStore/should_not_receive_events_from_secret_not_referenced_from_ingress I1226 21:50:22.708547 16493 event.go:285] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"store-test-1672091422", Name:"config", UID:"10ca3af9-fd41-4321-9469-cab11fef9f53", APIVersion:"v1", ResourceVersion:"268", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap store-test-1672091422/config === RUN TestStore/should_receive_events_from_secret_referenced_from_ingress I1226 21:50:27.088290 16493 event.go:285] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"store-test-1672091427", Name:"config", UID:"8b8b52be-77a3-49d9-9a06-f2e9eabb0ed4", APIVersion:"v1", ResourceVersion:"276", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap store-test-1672091427/config store_test.go:942: Ingress &Ingress{ObjectMeta:{ingress-with-secret store-test-1672091427 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:&IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},TLS:[]IngressTLS{IngressTLS{Hosts:[],SecretName:referenced,},},Rules:[]IngressRule{},IngressClassName:*ingress-nginx-1672091427,},Status:IngressStatus{LoadBalancer:{[]},},} not found, creating I1226 21:50:28.294530 16493 store.go:428] "Found valid IngressClass" ingress="store-test-1672091427/ingress-with-secret" ingressclass="ingress-nginx-1672091427" W1226 21:50:28.295026 16493 backend_ssl.go:47] Error obtaining X.509 certificate: no object matching key "store-test-1672091427/referenced" in local store I1226 21:50:28.295039 16493 event.go:285] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"store-test-1672091427", Name:"ingress-with-secret", UID:"dc986725-6b92-473e-836d-fecb9e4ac1ee", APIVersion:"networking.k8s.io/v1", ResourceVersion:"278", FieldPath:""}): type: 'Normal' reason: 'Sync' Scheduled for sync store_test.go:942: Ingress &Ingress{ObjectMeta:{ingress-with-secret store-test-1672091427 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:&IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},TLS:[]IngressTLS{IngressTLS{Hosts:[],SecretName:referenced,},},Rules:[]IngressRule{},IngressClassName:*ingress-nginx-1672091427,},Status:IngressStatus{LoadBalancer:{[]},},} created I1226 21:50:30.375282 16493 store.go:583] "Secret was added and it is used in ingress annotations. Parsing" secret="store-test-1672091427/referenced" I1226 21:50:30.376018 16493 backend_ssl.go:67] "Adding secret to local store" name="store-test-1672091427/referenced" I1226 21:50:35.386696 16493 store.go:656] "secret was deleted and it is used in ingress annotations. Parsing" secret="store-test-1672091427/referenced" store_test.go:1003: Ingress &Ingress{ObjectMeta:{ingress-with-secret store-test-1672091427 dc986725-6b92-473e-836d-fecb9e4ac1ee 278 1 2022-12-26 21:50:28 +0000 UTC <nil> <nil> map[] map[] [] [] [{store.test Update networking.k8s.io/v1 2022-12-26 21:50:28 +0000 UTC FieldsV1 {"f:spec":{"f:defaultBackend":{".":{},"f:service":{".":{},"f:name":{},"f:port":{".":{},"f:number":{}}}},"f:ingressClassName":{},"f:tls":{}}} }]},Spec:IngressSpec{DefaultBackend:&IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},TLS:[]IngressTLS{IngressTLS{Hosts:[],SecretName:referenced,},},Rules:[]IngressRule{},IngressClassName:*ingress-nginx-1672091427,},Status:IngressStatus{LoadBalancer:{[]},},} deleted === RUN TestStore/should_create_an_ingress_with_a_secret_which_does_not_exist I1226 21:50:36.420807 16493 event.go:285] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"store-test-1672091436", Name:"config", UID:"fbd19ab6-aeac-461a-809c-55fa68e2b4ce", APIVersion:"v1", ResourceVersion:"288", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap store-test-1672091436/config store_test.go:1066: Ingress &Ingress{ObjectMeta:{ingress-with-secret store-test-1672091436 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{IngressTLS{Hosts:[ingress-with-secret],SecretName:ingress-with-secret,},},Rules:[]IngressRule{IngressRule{Host:ingress-with-secret,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:*ingress-nginx-1672091436,},Status:IngressStatus{LoadBalancer:{[]},},} not found, creating I1226 21:50:37.627759 16493 store.go:428] "Found valid IngressClass" ingress="store-test-1672091436/ingress-with-secret" ingressclass="ingress-nginx-1672091436" I1226 21:50:37.627964 16493 event.go:285] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"store-test-1672091436", Name:"ingress-with-secret", UID:"95459586-5d94-4608-8712-97af29c770d9", APIVersion:"networking.k8s.io/v1", ResourceVersion:"290", FieldPath:""}): type: 'Normal' reason: 'Sync' Scheduled for sync W1226 21:50:37.628095 16493 backend_ssl.go:47] Error obtaining X.509 certificate: no object matching key "store-test-1672091436/ingress-with-secret" in local store store_test.go:1066: Ingress &Ingress{ObjectMeta:{ingress-with-secret store-test-1672091436 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{IngressTLS{Hosts:[ingress-with-secret],SecretName:ingress-with-secret,},},Rules:[]IngressRule{IngressRule{Host:ingress-with-secret,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:*ingress-nginx-1672091436,},Status:IngressStatus{LoadBalancer:{[]},},} created I1226 21:50:42.890588 16493 store.go:583] "Secret was added and it is used in ingress annotations. Parsing" secret="store-test-1672091436/ingress-with-secret" I1226 21:50:42.891102 16493 backend_ssl.go:67] "Adding secret to local store" name="store-test-1672091436/ingress-with-secret" store_test.go:1131: Ingress &Ingress{ObjectMeta:{ingress-with-secret store-test-1672091436 95459586-5d94-4608-8712-97af29c770d9 290 1 2022-12-26 21:50:37 +0000 UTC <nil> <nil> map[] map[] [] [] [{store.test Update networking.k8s.io/v1 2022-12-26 21:50:37 +0000 UTC FieldsV1 {"f:spec":{"f:ingressClassName":{},"f:rules":{},"f:tls":{}}} }]},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{IngressTLS{Hosts:[ingress-with-secret],SecretName:ingress-with-secret,},},Rules:[]IngressRule{IngressRule{Host:ingress-with-secret,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:http-svc,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Prefix,},},},},},},IngressClassName:*ingress-nginx-1672091436,},Status:IngressStatus{LoadBalancer:{[]},},} deleted === RUN TestStore/should_not_receive_events_whose_namespace_doesn't_match_watch_namespace_selector I1226 21:50:42.917439 16493 event.go:285] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"store-test-1672091442", Name:"config", UID:"8f444dc3-c189-49d1-86bb-2727831b2e98", APIVersion:"v1", ResourceVersion:"298", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap store-test-1672091442/config ... skipping 14 lines ... --- PASS: TestStore/should_not_receive_events_whose_namespace_doesn't_match_watch_namespace_selector (2.33s) === RUN TestUpdateSecretIngressMap === RUN TestUpdateSecretIngressMap/with_TLS_secret === RUN TestUpdateSecretIngressMap/with_annotation_in_simple_name_format === RUN TestUpdateSecretIngressMap/with_annotation_in_namespace/name_format === RUN TestUpdateSecretIngressMap/with_annotation_in_invalid_format E1226 21:51:05.246449 16493 store.go:912] error reading secret reference in annotation "auth-secret": unexpected key format: "ns/name/garbage" --- PASS: TestUpdateSecretIngressMap (0.00s) --- PASS: TestUpdateSecretIngressMap/with_TLS_secret (0.00s) --- PASS: TestUpdateSecretIngressMap/with_annotation_in_simple_name_format (0.00s) --- PASS: TestUpdateSecretIngressMap/with_annotation_in_namespace/name_format (0.00s) --- PASS: TestUpdateSecretIngressMap/with_annotation_in_invalid_format (0.00s) === RUN TestListIngresses --- PASS: TestListIngresses (0.00s) === RUN TestWriteSSLSessionTicketKey --- PASS: TestWriteSSLSessionTicketKey (0.00s) PASS ok k8s.io/ingress-nginx/internal/ingress/controller/store 109.094s === RUN TestFilterErrors W1226 21:49:13.985006 16228 configmap.go:444] error code 200 is not valid for custom error pages W1226 21:49:13.985093 16228 configmap.go:444] error code 999 is not valid for custom error pages --- PASS: TestFilterErrors (0.00s) === RUN TestProxyTimeoutParsing W1226 21:49:13.989627 16228 configmap.go:336] proxy-protocol-header-timeout of 3zxs encountered an error while being parsed time: unknown unit "zxs" in duration "3zxs". Switching to use default value instead. --- PASS: TestProxyTimeoutParsing (0.01s) === RUN TestMergeConfigMapToStruct W1226 21:49:13.993922 16228 configmap.go:155] demo is not a valid http code: strconv.Atoi: parsing "demo": invalid syntax W1226 21:49:13.994058 16228 configmap.go:195] 3.3.3 is not a valid textual representation of an IP address W1226 21:49:13.994101 16228 configmap.go:195] 33:33:33::33::33 is not a valid textual representation of an IP address W1226 21:49:14.000535 16228 configmap.go:155] demo is not a valid http code: strconv.Atoi: parsing "demo": invalid syntax ... skipping 6 lines ... W1226 21:49:14.066872 16228 configmap.go:235] Global auth location denied - url scheme is empty. --- PASS: TestGlobalExternalAuthURLParsing (0.05s) === RUN TestGlobalExternalAuthMethodParsing W1226 21:49:14.106724 16228 configmap.go:247] Global auth location denied - invalid HTTP method. --- PASS: TestGlobalExternalAuthMethodParsing (0.02s) === RUN TestGlobalExternalAuthSigninParsing W1226 21:49:14.111657 16228 configmap.go:259] Global auth location denied - global-auth-signin setting is undefined and will not be set. W1226 21:49:14.129970 16228 configmap.go:259] Global auth location denied - global-auth-signin setting is undefined and will not be set. W1226 21:49:14.140190 16228 configmap.go:259] Global auth location denied - global-auth-signin setting is undefined and will not be set. --- PASS: TestGlobalExternalAuthSigninParsing (0.04s) === RUN TestGlobalExternalAlwaysSetCookie W1226 21:49:14.145011 16228 configmap.go:326] Global auth location denied - cannot convert global-auth-always-set-cookie to bool: strconv.ParseBool: parsing "": invalid syntax W1226 21:49:14.146980 16228 configmap.go:326] Global auth location denied - cannot convert global-auth-always-set-cookie to bool: strconv.ParseBool: parsing "error string": invalid syntax --- PASS: TestGlobalExternalAlwaysSetCookie (0.01s) === RUN TestGlobalExternalAuthSigninRedirectParamParsing W1226 21:49:14.155367 16228 configmap.go:259] Global auth location denied - global-auth-signin setting is undefined and will not be set. W1226 21:49:14.155425 16228 configmap.go:272] Global auth redirect parameter denied - global-auth-signin-redirect-param setting is invalid and will not be set. --- PASS: TestGlobalExternalAuthSigninRedirectParamParsing (0.01s) === RUN TestGlobalExternalAuthResponseHeadersParsing W1226 21:49:14.164757 16228 configmap.go:286] Global auth location denied - invalid headers list. W1226 21:49:14.170454 16228 configmap.go:286] Global auth location denied - invalid headers list. W1226 21:49:14.180977 16228 configmap.go:286] Global auth location denied - invalid headers list. ... skipping 240 lines ... --- PASS: TestProcessCollector (0.09s) --- PASS: TestProcessCollector/should_return_metrics (0.09s) === RUN TestNewUDPLogListener --- PASS: TestNewUDPLogListener (0.00s) === RUN TestCollector === RUN TestCollector/invalid_metric_object_should_not_increase_prometheus_metrics E1226 21:49:16.299943 16183 socket.go:262] "Unexpected error deserializing JSON" err=< []collectors.socketData: decode slice: expect [ or n, but found #, error found in #1 byte of ...|#missing { |..., bigger context ...|#missing { "host":"testshop.com", "status":|... > payload=< #missing { "host":"testshop.com", ... skipping 73 lines ... --- PASS: TestIngressSliceEqual (0.00s) PASS ok k8s.io/ingress-nginx/internal/ingress/status 1.174s === RUN TestParseNameNS --- PASS: TestParseNameNS (0.00s) === RUN TestGetNodeIP E1226 21:49:14.458235 16308 main.go:49] "Error getting node" err="nodes \"demo\" not found" name="demo" E1226 21:49:14.458350 16308 main.go:49] "Error getting node" err="nodes \"notexistnode\" not found" name="notexistnode" --- PASS: TestGetNodeIP (0.00s) === RUN TestGetIngressPod --- PASS: TestGetIngressPod (0.00s) PASS ok k8s.io/ingress-nginx/internal/k8s 0.031s === RUN TestNewIPSet ... skipping 25 lines ... === RUN TestIsValidHostname --- PASS: TestIsValidHostname (0.00s) === RUN TestTLSKeyReloader I1226 21:49:19.416839 16357 ssl.go:524] "loading tls certificate" path="/tmp/crt-3484561565" key="/tmp/key-447661244" === RUN TestTLSKeyReloader/without_the_trusted_certificate === RUN TestTLSKeyReloader/with_the_certificate_trustes_as_root_certificate 2022/12/26 21:49:19 http: TLS handshake error from 127.0.0.1:49098: remote error: tls: bad certificate === RUN TestTLSKeyReloader/with_a_new_certificate === RUN TestTLSKeyReloader/with_a_new_certificate/when_the_certificate_is_not_reloaded 2022/12/26 21:49:19 http: TLS handshake error from 127.0.0.1:49104: read tcp 127.0.0.1:38921->127.0.0.1:49104: use of closed network connection --- PASS: TestTLSKeyReloader (1.06s) --- PASS: TestTLSKeyReloader/without_the_trusted_certificate (0.00s) --- PASS: TestTLSKeyReloader/with_the_certificate_trustes_as_root_certificate (0.00s) --- PASS: TestTLSKeyReloader/with_a_new_certificate (0.33s) --- PASS: TestTLSKeyReloader/with_a_new_certificate/when_the_certificate_is_not_reloaded (0.01s) PASS ok k8s.io/ingress-nginx/internal/net/ssl 4.706s ? k8s.io/ingress-nginx/internal/nginx [no test files] === RUN TestShutdown --- PASS: TestShutdown (0.00s) === RUN TestEnqueueSuccess --- PASS: TestEnqueueSuccess (0.01s) === RUN TestEnqueueFailed E1226 21:49:14.164168 16261 queue.go:78] "queue has been shutdown, failed to enqueue" key={k:testKey v:testValue} --- PASS: TestEnqueueFailed (0.02s) === RUN TestEnqueueKeyError E1226 21:49:14.174599 16261 queue.go:90] "creating object key" err="failed to get key" item={k:testKey v:testValue} --- PASS: TestEnqueueKeyError (0.01s) === RUN TestSkipEnqueue --- PASS: TestSkipEnqueue (0.01s) PASS ok k8s.io/ingress-nginx/internal/task 0.070s === RUN TestEqualConfiguration ... skipping 16 lines ... --- PASS: TestDefaults (0.00s) === RUN TestSetupSSLProxy --- PASS: TestSetupSSLProxy (0.00s) === RUN TestFlagConflict --- PASS: TestFlagConflict (0.00s) === RUN TestMaxmindEdition E1226 21:49:18.037475 16710 flags.go:392] "failed bootstrapping maxmind files" err="unknown Maxmind GeoIP2 edition name: ' TestCheck'" --- PASS: TestMaxmindEdition (0.00s) === RUN TestMaxmindMirror E1226 21:49:18.037794 16710 flags.go:392] "failed bootstrapping maxmind files" err="unknown Maxmind GeoIP2 edition name: ' TestCheck'" --- PASS: TestMaxmindMirror (0.00s) === RUN TestMaxmindRetryDownload I1226 21:49:18.038477 16710 maxmind.go:128] "download failed on attempt 1" I1226 21:49:19.090371 16710 maxmind.go:128] "download failed on attempt 2" I1226 21:49:20.643480 16710 maxmind.go:128] "download failed on attempt 3" E1226 21:49:20.643593 16710 flags.go:392] "failed bootstrapping maxmind files" err="unexpected error downloading GeoIP2 database: Get \"http://127.0.0.1/GeoLite2-City.tar.gz\": dial tcp 127.0.0.1:80: connect: connection refused" --- PASS: TestMaxmindRetryDownload (2.61s) PASS ok k8s.io/ingress-nginx/pkg/flags 2.632s ? k8s.io/ingress-nginx/pkg/metrics [no test files] ? k8s.io/ingress-nginx/pkg/tcpproxy [no test files] === RUN TestDumpSecretAuthFile ... skipping 8 lines ... === RUN TestDumpSecretAuthMap/should_reject_invalid_path === RUN TestDumpSecretAuthMap/should_accept_secret file_test.go:122: DumpSecretAuthMap() = user2:blo user1:bla , want user1:bla user2:blo --- FAIL: TestDumpSecretAuthMap (0.00s) --- PASS: TestDumpSecretAuthMap/should_reject_invalid_path (0.00s) --- FAIL: TestDumpSecretAuthMap/should_accept_secret (0.00s) FAIL FAIL k8s.io/ingress-nginx/pkg/util/auth 0.009s === RUN TestSHA1 E1226 21:49:16.024645 16471 file.go:32] "Error reading file" err="open : no such file or directory" path="" --- PASS: TestSHA1 (0.01s) === RUN TestFileWatcher --- PASS: TestFileWatcher (0.52s) === RUN TestFileWatcherWithNestedSymlink --- PASS: TestFileWatcherWithNestedSymlink (0.02s) PASS ... skipping 37 lines ... === RUN TestHandleSigterm/should_exit_without_error I1226 21:49:19.305769 16679 sigterm.go:36] "Received SIGTERM, shutting down" I1226 21:49:19.305926 16679 sigterm.go:44] Handled quit, delaying controller exit for 0 seconds I1226 21:49:19.305948 16679 sigterm.go:47] "Exiting" code=0 === RUN TestHandleSigterm/should_exit_with_error I1226 21:49:21.307479 16679 sigterm.go:36] "Received SIGTERM, shutting down" W1226 21:49:21.307515 16679 sigterm.go:40] Error during shutdown: error I1226 21:49:21.307527 16679 sigterm.go:44] Handled quit, delaying controller exit for 2 seconds I1226 21:49:23.308712 16679 sigterm.go:47] "Exiting" code=1 --- PASS: TestHandleSigterm (6.01s) --- PASS: TestHandleSigterm/should_exit_without_error (2.01s) --- PASS: TestHandleSigterm/should_exit_with_error (4.00s) PASS ... skipping 7 lines ... === RUN TestElementsMatch --- PASS: TestElementsMatch (0.00s) PASS ok k8s.io/ingress-nginx/pkg/util/sets 0.005s ? k8s.io/ingress-nginx/pkg/util/ssl [no test files] ? k8s.io/ingress-nginx/version [no test files] FAIL + cleanup + rm -rf /tmp/tmp.chAlGh make: *** [Makefile:167: test] Error 1