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

Bug 1972082

Summary: [4.9.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: aos-bugs, asegurap, bjacot, fpercoco, masayag, mko, trwest
Version: 4.8Keywords: Reopened, Triaged
Target Milestone: ---Flags: bjacot: needinfo-
Target Release: 4.9.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-11-10 21:01:31 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, 1972085    
Bug Blocks:    

Description Antoni Segura Puimedon 2021-06-15 08:30:32 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 1 Flavio Percoco 2021-06-24 12:54:40 UTC
Closing as I think this clone was originally meant for 4.8. There's a master and a 4.8 version of this BZ. I don't think we need a third one. If the problem is the target release, we can switch the parent one (master) to point to 4.9

*** This bug has been marked as a duplicate of bug 1969796 ***

Comment 2 Flavio Percoco 2021-06-25 07:43:50 UTC
Ok, we need this for QE verification (until code freeze). Pardon for the noise.

Comment 13 errata-xmlrpc 2021-11-10 21:01:31 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 (OpenShift Container Platform 4.9.6 bug fix 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/RHBA-2021:4119