Bug 1991551
Summary: | Idle service cannot be waked up | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | zhaozhanqi <zzhao> |
Component: | Networking | Assignee: | Dan Winship <danw> |
Networking sub component: | openshift-sdn | QA Contact: | zhaozhanqi <zzhao> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | high | CC: | aconstan |
Version: | 4.9 | ||
Target Milestone: | --- | ||
Target Release: | 4.9.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-10-18 17:45:29 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
zhaozhanqi
2021-08-09 12:05:20 UTC
Assigning to Dan as he's been working on some idling bugs for openshift-sdn LOL so how did this pass CI? E0809 19:07:45.030051 1951 event_broadcaster.go:253] Server rejected event '&v1.Event{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"test-service.1699b8ec3bca9e5a", GenerateName:"", Namespace:"test", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, EventTime:v1.MicroTime{Time:time.Time{wall:0xc03c7d20418db83b, ext:1334903747131, loc:(*time.Location)(0x30c9ba0)}}, Series:(*v1.EventSeries)(nil), ReportingController:"kube-proxy", ReportingInstance:"kube-proxy-ip-10-0-191-238.us-west-1.compute.internal", Action:"The service-port %s:%s needs pods.", Reason:"NeedPods", Regarding:v1.ObjectReference{Kind:"Service", Namespace:"test", Name:"test-service", UID:"", APIVersion:"", ResourceVersion:"", FieldPath:""}, Related:(*v1.ObjectReference)(nil), Note:"test-service%!(EXTRA string=http)", Type:"Normal", DeprecatedSource:v1.EventSource{Component:"", Host:""}, DeprecatedFirstTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeprecatedLastTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeprecatedCount:0}': 'events.events.k8s.io is forbidden: User "system:serviceaccount:openshift-sdn:sdn" cannot create resource "events" in API group "events.k8s.io" in the namespace "test"' (will not retry!) in particular 'cannot create resource "events" in API group "events.k8s.io"' In 1.22 kube-proxy moved from the old core/v1 Event API to the new events.k8s.io/v1 Event api, so I guess we need to update our RBAC rules... Verified this bug on 4.9.0-0.nightly-2021-08-19-184748 We met an issue when idle service in 4.9 $ oc idle test-service --kubeconfig=/home/zzhao/workdir/dhcp-140-240-zzhao/ocp4_testuser-21.kubeconfig ReplicationController "v0te6/test-rc" has been idled STDERR: error: unable to mark service "v0te6/test-service" as idled: endpoints "test-service" is forbidden: User "testuser-21" cannot patch resource "endpoints" in API group "" in the namespace "v0te6" this is another bug is tracing this https://bugzilla.redhat.com/show_bug.cgi?id=1995505 $ oc get pod -n v0te6 No resources found in v0te6 namespace. $ oc get svc -n v0te6 NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE test-service ClusterIP 172.30.241.66 <none> 27017/TCP 4m40s $ oc rsh -n openshift-multus multus-admission-controller-7kh4c Defaulted container "multus-admission-controller" out of: multus-admission-controller, kube-rbac-proxy sh-4.4# curl 172.30.241.66:27017 Hello OpenShift! $ oc get pod -n v0te6 NAME READY STATUS RESTARTS AGE test-rc-rgvn2 1/1 Running 0 16s test-rc-zbwr5 1/1 Running 0 16s Move this bug to verified 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.9.0 bug fix and 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-2021:3759 |