Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1968043

Summary: [master] backend events generated with wrong namespace for agent
Product: OpenShift Container Platform Reporter: Michael Hrivnak <mhrivnak>
Component: assisted-installerAssignee: Daniel Erez <derez>
assisted-installer sub component: Deployment Operator QA Contact: Chad Crum <ccrum>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: urgent CC: aos-bugs, ccrum, mfilanov, nshidlin
Version: 4.8Keywords: Triaged
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AI-Team-Hive KNI-EDGE-4.8 KNI-EDGE-JUKE-4.8
Fixed In Version: OCP-Metal-v1.0.22.1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1968454 (view as bug list) Environment:
Last Closed: 2021-10-18 17:32:54 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:
Bug Depends On:    
Bug Blocks: 1968454    

Description Michael Hrivnak 2021-06-04 18:48:38 UTC
Description of problem:

The assisted-service is logging errors similar to below, where it is failing to find Agents. This is because the backend is generating events with the wrong namespace. Recently Agents started being created in the InfraEnv namespace instead of in the ClusterDeployment namespace, but this bit of code apparently was not updated.

time="2021-06-03T15:33:07Z" level=error msg="Failed to get resource clusters-hs0/d81d73b5-ffcc-4f26-8317-37944201256a" func="github.com/openshift/assisted-service/internal/controller/controllers.(*AgentReconciler).Reconcile" file="/go/src/github.com/openshift/origin/internal/controller/controllers/agent_controller.go:93" agent=d81d73b5-ffcc-4f26-8317-37944201256a agent_namespace=clusters-hs0 error="Agent.agent-install.openshift.io \"d81d73b5-ffcc-4f26-8317-37944201256a\" not found" go-id=1025 request_id=22c327ac-dc67-4d87-b2c1-d54665eebaa0


Code: https://github.com/openshift/assisted-service/blob/989d3b7/internal/controller/controllers/controller_event_wrapper.go#L42


Version-Release number of selected component (if applicable):
0.0.5-rc1


How reproducible:
always


Steps to Reproduce:
1. Use the k8s API workflow to create an Agent (boot-it-yourself is fine)
2. look in the container logs

Comment 4 errata-xmlrpc 2021-10-18 17:32:54 UTC
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