Bug 2066825
| Summary: | (release-4.9) Gather kube-controller-manager pod logs with garbage collector errors | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Tomas Remes <tremes> |
| Component: | Insights Operator | Assignee: | Tomas Remes <tremes> |
| Status: | CLOSED ERRATA | QA Contact: | Joao Fula <jfula> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.9 | CC: | aos-bugs, inecas, jfula, mklika, openshift-bugzilla-robot, tremes |
| Target Milestone: | --- | ||
| Target Release: | 4.9.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2065561 | Environment: | |
| Last Closed: | 2022-04-08 09:56:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2065561 | ||
| Bug Blocks: | |||
|
Description
Tomas Remes
2022-03-22 14:32:41 UTC
Verified on 4.9.0-0.nightly-2022-04-04-160205.
Steps to reproduce:
1. Create a new namespace called dc-test
2. Get the uuid from the yaml definition of the newly created namespace.
3. Create new DeploymentConfig - you have to pass your uuid there in the ownerReference:
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: example-aaa
namespace: dc-test
ownerReferences:
- apiVersion: v1
kind: namespace
name: dc-test
uid: <PUT YOUR UUID>
spec:
selector:
app: httpd
replicas: 3
template:
metadata:
labels:
app: httpd
spec:
containers:
- name: httpd
image: >-
image-registry.openshift-image-registry.svc:5000/openshift/httpd:latest
ports:
- containerPort: 8080
4. Stop the openshift-api with
oc patch openshiftapiservers.operator.openshift.io cluster --type merge --patch '{"spec": {"managementState": "Removed"}}'
5. Delete the dc-test namespace.
6. Start back the API so that you can read the logs (not sure if it's required)
oc patch openshiftapiservers.operator.openshift.io cluster --type merge --patch '{"spec": {"managementState": "Managed"}}'
7. Restart IO
8. Download archive and navigate to config/pod/openshift-kube-controller-manager/logs/{pod-name}/errors.log
Check if logs contain "syncing garbage collector with updated resources from discovery (attempt 1):"
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 (Important: OpenShift Container Platform 4.9.27 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-2022:1158 |