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

Bug 1967102

Summary: [master] InfraEnv ctrl: log the amount of NMstate Configs baked into the image
Product: OpenShift Container Platform Reporter: Nir Magnezi <nmagnezi>
Component: assisted-installerAssignee: Nir Magnezi <nmagnezi>
assisted-installer sub component: assisted-service QA Contact: Yuri Obshansky <yobshans>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: medium CC: mfilanov
Version: 4.8   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AI-Team-Hive KNI-EDGE-4.9
Fixed In Version: OCP-Metal-v1.0.21.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1967104 (view as bug list) Environment:
Last Closed: 2022-08-28 08:45:59 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: 1967104    

Description Nir Magnezi 2021-06-02 12:43:13 UTC
Description of problem:
=======================
The infraEnv controller doesn't have a way to know how many NMStateConfigs to anticipate.

Since the controller watches for NMStateConfig changes and invokes image regeneration per each NMStateConfig addition/removal/update, it would help to log the amount of NMStateConfigs in each image generation.

Comment 1 nshidlin 2021-06-08 06:22:18 UTC
Verified with:
assisted-service: quay.io/ocpmetal/assisted-service@sha256:2706a902016fdbda8ca61a69052f22275d51f9cbbc18e877fb34d83055949d82

time="2021-06-08T06:21:56Z" level=info msg="the amount of nmStateConfigs included in the image is: 5" func="github.com/openshift/assisted-service/internal/controller/controllers.(*InfraEnvReconciler).ensureISO" file="/go/src/github.com/openshift/origin/internal/controller/controllers/infraenv_controller.go:286" go-id=648 infra_env=multinode-infraenv infra_env_namespace=assisted-installer request_id=02d9fc73-b994-4d0f-8cad-f3717f46ff65