Bug 1968043 - [master] backend events generated with wrong namespace for agent
Summary: [master] backend events generated with wrong namespace for agent
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.8
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.9.0
Assignee: Daniel Erez
QA Contact: Chad Crum
URL:
Whiteboard: AI-Team-Hive KNI-EDGE-4.8 KNI-EDGE-JU...
Depends On:
Blocks: 1968454
TreeView+ depends on / blocked
 
Reported: 2021-06-04 18:48 UTC by Michael Hrivnak
Modified: 2021-10-18 17:33 UTC (History)
4 users (show)

Fixed In Version: OCP-Metal-v1.0.22.1
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1968454 (view as bug list)
Environment:
Last Closed: 2021-10-18 17:32:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 1941 0 None open OCPBUGSM-30056: host namespace on agent update notification 2021-06-08 08:08:07 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:33:12 UTC

Internal Links: 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


Note You need to log in before you can comment on or make changes to this bug.