Description of problem: • Failure in Spec Setup (BeforeEach) [0.340 seconds] [ptp] /remote-source/app/vendor/github.com/openshift/ptp-operator/test/ptp/ptp.go:35 PTP e2e tests /remote-source/app/vendor/github.com/openshift/ptp-operator/test/ptp/ptp.go:106 PTP Interfaces discovery [BeforeEach] /remote-source/app/vendor/github.com/openshift/ptp-operator/test/ptp/ptp.go:154 The interfaces support ptp can be discovered correctly /remote-source/app/vendor/github.com/openshift/ptp-operator/test/ptp/ptp.go:188 Unexpected error: <*errors.StatusError | 0xc001020320>: { ErrStatus: { TypeMeta: {Kind: "", APIVersion: ""}, ListMeta: { SelfLink: "", ResourceVersion: "", Continue: "", RemainingItemCount: nil, }, Status: "Failure", Message: "Internal error occurred: failed calling webhook \"ptpconfigvalidationwebhook.openshift.io\": Post \"https://ptp-operator-service.openshift-ptp.svc:443/validate-ptp-openshift-io-v1-ptpconfig?timeout=10s\": EOF", Reason: "InternalError", Details: { Name: "", Group: "", Kind: "", UID: "", Causes: [ { Type: "", Message: "failed calling webhook \"ptpconfigvalidationwebhook.openshift.io\": Post \"https://ptp-operator-service.openshift-ptp.svc:443/validate-ptp-openshift-io-v1-ptpconfig?timeout=10s\": EOF", Field: "", }, ], RetryAfterSeconds: 0, }, Code: 500, }, } Internal error occurred: failed calling webhook "ptpconfigvalidationwebhook.openshift.io": Post "https://ptp-operator-service.openshift-ptp.svc:443/validate-ptp-openshift-io-v1-ptpconfig?timeout=10s": EOF occurred /remote-source/app/vendor/github.com/openshift/ptp-operator/test/ptp/ptp.go:400 Version-Release number of selected component (if applicable): ptp-operator.4.10.0-202111211622 Server Version: 4.10.0-0.nightly-2021-11-21-005535 openshift4-cnf-tests:v4.10.0-27 How reproducible: 100% Steps to Reproduce: 1.Run cnf test-container: docker run -v ~/kubeconfig:/kubeconfig:Z -e KUBECONFIG=/kubeconfig/kubeconfig -e IMAGE_REGISTRY=registry-proxy.engineering.redhat.com/rh-osbs -e CNF_TESTS_IMAGE=openshift4-cnf-tests:v4.10.0-27 -e DPDK_TESTS_IMAGE=dpdk-base:v4.10.0-5 -e SCTPTEST_HAS_NON_CNF_WORKERS=false registry-proxy.engineering.redhat.com/rh-osbs/openshift4-cnf-tests:v4.10.0-27 /usr/bin/test-run.sh -ginkgo.focus="The interfaces support ptp can be discovered correctly" Actual results: Expected results: Additional info:
logs from the ptp-operator: 2021-11-24T11:41:09.450Z INFO ptpconfig-resource validate create {"name": "test-grandmaster"} 2021/11/24 11:41:09 http: panic serving 10.128.0.2:49742: runtime error: invalid memory address or nil pointer dereference goroutine 300336 [running]: net/http.(*conn).serve.func1() /usr/lib/golang/src/net/http/server.go:1801 +0xb9 panic({0x14a8b80, 0x2563350}) /usr/lib/golang/src/runtime/panic.go:1047 +0x266 github.com/openshift/ptp-operator/api/v1.(*ptp4lConf).populatePtp4lConf(0xc000b545e8, 0x0, 0xc000b97b20) /go/src/github.com/openshift/ptp-operator/api/v1/ptpconfig_webhook.go:48 +0x36 github.com/openshift/ptp-operator/api/v1.(*PtpConfig).validate(0xc000930600) /go/src/github.com/openshift/ptp-operator/api/v1/ptpconfig_webhook.go:94 +0xdf github.com/openshift/ptp-operator/api/v1.(*PtpConfig).ValidateCreate(0xc00056b080) /go/src/github.com/openshift/ptp-operator/api/v1/ptpconfig_webhook.go:130 +0xbe github.com/openshift/ptp-operator/vendor/sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*validatingHandler).Handle(_, {_, _}, {{{0xc0009edc80, 0x24}, {{0xc000930310, 0x10}, {0xc000930308, 0x2}, {0xc000930320, ...}}, ...}}) /go/src/github.com/openshift/ptp-operator/vendor/sigs.k8s.io/controller-runtime/pkg/webhook/admission/validator.go:71 +0x239 github.com/openshift/ptp-operator/vendor/sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).Handle(_, {_, _}, {{{0xc0009edc80, 0x24}, {{0xc000930310, 0x10}, {0xc000930308, 0x2}, {0xc000930320, ...}}, ...}}) /go/src/github.com/openshift/ptp-operator/vendor/sigs.k8s.io/controller-runtime/pkg/webhook/admission/webhook.go:146 +0xa2 github.com/openshift/ptp-operator/vendor/sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).ServeHTTP(0xc0000f94d0, {0x7f89518e8208, 0xc0009789b0}, 0xc0008d9400) /go/src/github.com/openshift/ptp-operator/vendor/sigs.k8s.io/controller-runtime/pkg/webhook/admission/http.go:99 +0xef0 github.com/openshift/ptp-operator/vendor/github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1({0x7f89518e8208, 0xc0009789b0}, 0xc0009789b0) /go/src/github.com/openshift/ptp-operator/vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_server.go:40 +0xd4 net/http.HandlerFunc.ServeHTTP(0x185df00, {0x7f89518e8208, 0xc0009789b0}, 0x7f898054f108) /usr/lib/golang/src/net/http/server.go:2046 +0x2f github.com/openshift/ptp-operator/vendor/github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1({0x185df00, 0xc0006101c0}, 0xc0008d9400) /go/src/github.com/openshift/ptp-operator/vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_server.go:101 +0x92 net/http.HandlerFunc.ServeHTTP(0xc000696e80, {0x185df00, 0xc0006101c0}, 0xc000211000) /usr/lib/golang/src/net/http/server.go:2046 +0x2f github.com/openshift/ptp-operator/vendor/github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2({0x185df00, 0xc0006101c0}, 0xc0008d9400) /go/src/github.com/openshift/ptp-operator/vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_server.go:76 +0xa2 net/http.HandlerFunc.ServeHTTP(0x1435440, {0x185df00, 0xc0006101c0}, 0xc0006101c0) /usr/lib/golang/src/net/http/server.go:2046 +0x2f net/http.(*ServeMux).ServeHTTP(0xc0006248ed, {0x185df00, 0xc0006101c0}, 0xc0008d9400) /usr/lib/golang/src/net/http/server.go:2424 +0x149 net/http.serverHandler.ServeHTTP({0x18525b0}, {0x185df00, 0xc0006101c0}, 0xc0008d9400) /usr/lib/golang/src/net/http/server.go:2878 +0x43b net/http.(*conn).serve(0xc00034e960, {0x1879b98, 0xc000691500}) /usr/lib/golang/src/net/http/server.go:1929 +0xb08 created by net/http.(*Server).Serve /usr/lib/golang/src/net/http/server.go:3033 +0x4e8 2021-11-24T11:41:16.336Z INFO controllers.PtpOperatorConfig Reconciling PtpOperatorConfig {"Request.Namespace": "openshift-ptp", "Request.Name": "default"}
issue was verified by evgeny levin 6:55:20 • [SLOW TEST:263.225 seconds] 16:55:20 [ptp] 16:55:20 /remote-source/app/vendor/github.com/openshift/ptp-operator/test/conformance/ptp/ptp.go:35 16:55:20 PTP e2e tests 16:55:20 /remote-source/app/vendor/github.com/openshift/ptp-operator/test/conformance/ptp/ptp.go:106 16:55:20 PTP Interfaces discovery 16:55:20 /remote-source/app/vendor/github.com/openshift/ptp-operator/test/conformance/ptp/ptp.go:154 16:55:20 The interfaces support ptp can be discovered correctly 16:55:20 /remote-source/app/vendor/github.com/openshift/ptp-operator/test/conformance/ptp/ptp.go:188
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:0056