Service is unable to connect the hosts when we can provide the mac addresses and hosts name from the agent-config.yaml file during the image creation. cat agent-config.yaml ------------------------------------------------------ kind: AgentConfig metadata: name: agent-config-cluster0 spec: hosts: - hostname: control-0.example.org interfaces: - name: eno1 macAddress: 34:73:5A:9E:5B:24 - hostname: control-1.example.org interfaces: - name: eno1 macAddress: 34:73:5A:9E:59:1C - hostname: control-2.example.org interfaces: - name: eno1 macAddress: 34:73:5A:9E:5A:BC ------------------------------------------------------ Here is the logs of the service. Jul 13 15:02:41 control-0.example.org apply-host-config[20124]: time="2022-07-13T15:02:41Z" level=info msg="No config found for host" Jul 13 15:02:41 control-0.example.org apply-host-config[20124]: time="2022-07-13T15:02:41Z" level=info msg="No agent found matching config at /etc/assisted/hostconfig/control-0.example.org (34:73:5A:9E:5B:24)" Jul 13 15:02:41 control-0.example.org apply-host-config[20124]: time="2022-07-13T15:02:41Z" level=info msg="No agent found matching config at /etc/assisted/hostconfig/control-1.example.org (34:73:5A:9E:59:1C)" Jul 13 15:02:41 control-0.example.org apply-host-config[20124]: time="2022-07-13T15:02:41Z" level=info msg="No agent found matching config at /etc/assisted/hostconfig/control-2.example.org (34:73:5A:9E:5A:BC)" Jul 13 15:02:41 control-0.example.org apply-host-config[20124]: time="2022-07-13T15:02:41Z" level=info msg="Not all hosts present yet" Jul 13 15:02:41 control-0.example.org apply-host-config[20124]: time="2022-07-13T15:02:41Z" level=info msg="Sleeping for 32s" ------------------------------------------------------
Changes have been verified in the latest code. It's working fine. Hence, closing this bug.
OCP is no longer using Bugzilla and this bug appears to have been left in an orphaned state. If the bug is still relevant, please open a new issue in the OCPBUGS Jira project: https://issues.redhat.com/projects/OCPBUGS/summary