Bug 1967102 - [master] InfraEnv ctrl: log the amount of NMstate Configs baked into the image
Summary: [master] InfraEnv ctrl: log the amount of NMstate Configs baked into the image
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Nir Magnezi
QA Contact: Yuri Obshansky
URL:
Whiteboard: AI-Team-Hive KNI-EDGE-4.9
Depends On:
Blocks: 1967104
TreeView+ depends on / blocked
 
Reported: 2021-06-02 12:43 UTC by Nir Magnezi
Modified: 2022-08-28 08:45 UTC (History)
1 user (show)

Fixed In Version: OCP-Metal-v1.0.21.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1967104 (view as bug list)
Environment:
Last Closed: 2022-08-28 08:45:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 1899 0 None open MGMT-6787: InfraEnv should log the amount of NMstate Configs baked into the image 2021-06-02 12:43:13 UTC

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


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