Bug 1969796 - [master] Updating configmap within AgentServiceConfig is not logged properly
Summary: [master] Updating configmap within AgentServiceConfig is not logged properly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.9.0
Assignee: Mat Kowalski
QA Contact: bjacot
URL:
Whiteboard: KNI-EDGE-JUKE-4.8 AI-Team-Platform
Depends On:
Blocks: 1972082 1972085
TreeView+ depends on / blocked
 
Reported: 2021-06-09 09:23 UTC by Moti Asayag
Modified: 2021-10-18 17:33 UTC (History)
3 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 1996 0 None open Bug 1969796: Fix logline containing ConfigMap for AgentServiceConfig 2021-06-15 07:17:23 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:33:39 UTC

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


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