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

Bug 1969796

Summary: [master] Updating configmap within AgentServiceConfig is not logged properly
Product: OpenShift Container Platform Reporter: Moti Asayag <masayag>
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, nshidlin
Version: 4.8Keywords: Triaged
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: KNI-EDGE-JUKE-4.8 AI-Team-Platform
Fixed In Version: OCP-Metal-v1.0.22.1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1972082 1972085 (view as bug list) Environment:
Last Closed: 2021-10-18 17:33:22 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: 1972082, 1972085    

Description Moti Asayag 2021-06-09 09:23:58 UTC
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 2 Flavio Percoco 2021-06-24 12:54:39 UTC
*** Bug 1972082 has been marked as a duplicate of this bug. ***

Comment 6 errata-xmlrpc 2021-10-18 17:33:22 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