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

Bug 1972085

Summary: [4.8.0] Updating configmap within AgentServiceConfig is not logged properly
Product: OpenShift Container Platform Reporter: Antoni Segura Puimedon <asegurap>
Component: assisted-installerAssignee: Mat Kowalski <mko>
assisted-installer sub component: Deployment Operator QA Contact: bjacot
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: alazar, aos-bugs, asegurap, bjacot, masayag, mko, trwest
Version: 4.8Keywords: Triaged
Target Milestone: ---Flags: trwest: needinfo-
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: KNI-EDGE-JUKE-4.8 AI-Team-Platform
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1969796 Environment:
Last Closed: 2021-07-27 23:12:53 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: 1969796    
Bug Blocks: 1972082    

Description Antoni Segura Puimedon 2021-06-15 08:34:37 UTC
+++ This bug was initially created as a clone of Bug #1969796 +++

Description of problem:
The log message doesn't contain the name of the new configmap.

time="2021-06-09T09:04:37Z" level=info msg="ConfigMap %v being used to configure assisted-service deploymentmy-assisted-service-config" agent_service_config=agent agent_service_config_namespace= go-id=473 request_id=7c0f3b66-b388-40d8-9b24-138d222bdfec


Version-Release number of selected component (if applicable):
Assisted Service Operator, 0.0.4 provided by Red Hat
quay.io/ocpmetal/assisted-service:latest


How reproducible:
100%

Steps to Reproduce:
1. create configmap in the same namespace as the assisted-service deployment:

cat <<EOF | kubectl create -f -
apiVersion: v1
kind: ConfigMap
metadata:
  name: my-assisted-service-config
  namespace: assisted-installer
data:
  LOG_LEVEL: "info"
  LOG_FORMAT: "json"
EOF

2. Update the AgentServiceConfig agent to refer to the new configmap:
oc annotate --overwrite agentserviceconfig agent unsupported.agent-install.openshift.io/assisted-service-configmap=my-assisted-service-config


3. View assisted-service operator logs

Actual results:
Config map name isn't properly rendered:
time="2021-06-09T09:04:37Z" level=info msg="ConfigMap %v being used to configure assisted-service deploymentmy-assisted-service-config" agent_service_config=agent agent_service_config_namespace= go-id=473 request_id=7c0f3b66-b388-40d8-9b24-138d222bdfec

Expected results:
The config map name should be rendered.

Additional info:

Comment 3 Trey West 2021-06-29 20:30:05 UTC
@asegurap @mkowalsk,

DUP of https://bugzilla.redhat.com/show_bug.cgi?id=1970494 ?

Comment 4 Trey West 2021-06-30 00:17:32 UTC
@mkowalsk informed me that the PR attached to this bug is what ultimately fixed the issue listed in both bugs. 

Verified on 2.3.0-DOWNSTREAM-2021-06-29-05-03-27

Comment 6 errata-xmlrpc 2021-07-27 23:12:53 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.8.2 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:2438