Bug 1972082 - [4.9.0] Updating configmap within AgentServiceConfig is not logged properly
Summary: [4.9.0] 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: 1969796 1972085
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-15 08:30 UTC by Antoni Segura Puimedon
Modified: 2021-11-10 21:01 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of: 1969796
Environment:
Last Closed: 2021-11-10 21:01:31 UTC
Target Upstream Version:
Embargoed:
bjacot: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4119 0 None None None 2021-11-10 21:01:46 UTC

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


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