+++ This bug was initially created as a clone of Bug #1968552 +++ Description of problem: In case of gitops we don't have control over the order of creation between different resources, because nmstate is marked by a label we it could take few seconds before all the configurations are created, so it will help to wait some time before BMAC is using the ISO, this will make sure that all configuration is applied. related to https://bugzilla.redhat.com/show_bug.cgi?id=1968542 Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: --- Additional comment from mhrivnak on 20210607T14:43:12 We should make it obvious why nothing is happening for that period of time. An easy option is to just ensure that the BMAC logs a clear message. Something like: "ISO for host %s is %d seconds old; waiting %d more seconds before booting host." Then RequeueAfter the calculated time period.
Verified with 2.3.0-DOWNSTREAM-2021-07-06-21-29-18 Logs show BMH reconcile re-queue due to recent image: time="2021-07-07T15:23:26Z" level=info msg="Requeuing reconcileBMH: InfraEnv image is too recent. Requeuing and retrying again soon." func="github.com/openshift/assisted-service/internal/controller/controllers.(*BMACReconciler).reconcileBMH" file="/remote-source/assisted-service/app/internal/controller/controllers/bmh_agent_controller.go:589" bare_metal_host=sno-0-bmh bare_metal_host_namespace=sno-0 go-id=827 request_id=195282aa-609d-4ff6-a38b-c34fc74d60a2 time="2021-07-07T15:23:26Z" level=info msg="BareMetalHost Reconcile ended" func="github.com/openshift/assisted-service/internal/controller/controllers.(*BMACReconciler).Reconcile.func1" file="/remote-source/assisted-service/app/internal/controller/controllers/bmh_agent_controller.go:161" bare_metal_host=sno-0-bmh bare_metal_host_namespace=sno-0 go-id=827 request_id=195282aa-609d-4ff6-a38b-c34fc74d60a2 time="2021-07-07T15:23:57Z" level=info msg="BareMetalHost Reconcile started" func="github.com/openshift/assisted-service/internal/controller/controllers.(*BMACReconciler).Reconcile" file="/remote-source/assisted-service/app/internal/controller/controllers/bmh_agent_controller.go:164" bare_metal_host=sno-0-bmh bare_metal_host_namespace=sno-0 go-id=827 request_id=7201e2cc-cf0c-45d5-a366-69cb340b37e2 time="2021-07-07T15:23:57Z" level=info msg="Image URL has been set in the BareMetalHost sno-0/sno-0-bmh" func="github.com/openshift/assisted-service/internal/controller/controllers.(*BMACReconciler).reconcileBMH" file="/remote-source/assisted-service/app/internal/controller/controllers/bmh_agent_controller.go:629"
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.8.2 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:2438