Bug 2108984

Summary: [Agent]: apply-host-config.service is failed to start due to dependency failed
Product: OpenShift Container Platform Reporter: Manoj Hans <mhans>
Component: InstallerAssignee: Richard Su <rwsu>
Installer sub component: Agent based installation QA Contact: Manoj Hans <mhans>
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: unspecified    
Version: 4.12   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-03 16:50:20 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:

Description Manoj Hans 2022-07-20 08:18:59 UTC
In the test environment on physical BareMetal machines, I found that the "apply-host-config.service" is failed to start due to dependency failed.

System Infos:
Model: PowerEdge R740
Storage: 1.5 TB
Memory: 384 GB
CPU: 64

Below are the logs from the bootstrap node:

sudo systemctl status apply-host-config.service
● apply-host-config.service - Service that applies host-specific configuration
   Loaded: loaded (/etc/systemd/system/apply-host-config.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

Jul 20 08:00:36 openshift-qe-047.arm.eng.rdu2.redhat.com systemd[1]: Dependency failed for Service that applies host-specific configuration.
Jul 20 08:00:36 openshift-qe-047.arm.eng.rdu2.redhat.com systemd[1]: apply-host-config.service: Job apply-host-config.service/start failed with result 'dependency'.
--------------------------------------------------------------------------
I was able to restart the service manually without any issue.

[core@openshift-qe-047 ~]$ sudo systemctl restart apply-host-config.service
[core@openshift-qe-047 ~]$ sudo systemctl status apply-host-config.service

● apply-host-config.service - Service that applies host-specific configuration
   Loaded: loaded (/etc/systemd/system/apply-host-config.service; disabled; vendor preset: disabled)
   Active: active (exited) since Wed 2022-07-20 08:14:17 UTC; 1min 35s ago
  Process: 6339 ExecStart=/usr/bin/podman run --cidfile=/run/apply-host-config.service.ctr-id --cgroups=no-conmon --log-driver=journald --restart=on-failure:10 --pod-id-file=/run/assisted-service-pod.pod-id --replace --name=apply-host-config -v /etc/assisted/hostconfig:/etc/assisted/hostconfig -v /run/agent-installer:/var/run/agent-installer:z --env SERVICE_BASE_URL --env INFRA_ENV_ID $SERVICE_IMAGE /usr/local/bin/agent-installer-client configure (code=exited, status=0/SUCCESS)
  Process: 6336 ExecStartPre=/usr/local/bin/wait-for-assisted-service.sh (code=exited, status=0/SUCCESS)
  Process: 6333 ExecStartPre=/bin/mkdir -p /run/agent-installer /etc/assisted/hostconfig (code=exited, status=0/SUCCESS)
  Process: 6330 ExecStartPre=/bin/rm -f /run/apply-host-config.service.ctr-id (code=exited, status=0/SUCCESS)
 Main PID: 6339 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 2466052)
   Memory: 96.0K
   CGroup: /system.slice/apply-host-config.service

Jul 20 08:14:17 openshift-qe-047.arm.eng.rdu2.redhat.com apply-host-config[6371]: time="2022-07-20T08:14:17Z" level=info msg="Searching for config for host 7a9649d8-4167-a1f9-ad5f-385c052e2744"
Jul 20 08:14:17 openshift-qe-047.arm.eng.rdu2.redhat.com apply-host-config[6371]: time="2022-07-20T08:14:17Z" level=info msg="Found host config in /etc/assisted/hostconfig/openshift-qe-049.arm.eng.rdu2.redhat.com"
Jul 20 08:14:17 openshift-qe-047.arm.eng.rdu2.redhat.com apply-host-config[6371]: time="2022-07-20T08:14:17Z" level=info msg="No root device hints file found for host"
Jul 20 08:14:17 openshift-qe-047.arm.eng.rdu2.redhat.com apply-host-config[6371]: time="2022-07-20T08:14:17Z" level=info msg="Selected disk /dev/disk/by-id/wwn-0x62cea7f0cea75e002920623e574cacb9 already matches root device hints"
Jul 20 08:14:17 openshift-qe-047.arm.eng.rdu2.redhat.com apply-host-config[6371]: time="2022-07-20T08:14:17Z" level=info msg="No role file found for host"
Jul 20 08:14:17 openshift-qe-047.arm.eng.rdu2.redhat.com apply-host-config[6371]: time="2022-07-20T08:14:17Z" level=info msg="No role configured"
Jul 20 08:14:17 openshift-qe-047.arm.eng.rdu2.redhat.com apply-host-config[6371]: time="2022-07-20T08:14:17Z" level=info msg="No configuration changes needed"
Jul 20 08:14:17 openshift-qe-047.arm.eng.rdu2.redhat.com apply-host-config[6371]: time="2022-07-20T08:14:17Z" level=info msg="All expected hosts found"
Jul 20 08:14:17 openshift-qe-047.arm.eng.rdu2.redhat.com apply-host-config[6371]: time="2022-07-20T08:14:17Z" level=info msg="Configured all hosts"
Jul 20 08:14:17 openshift-qe-047.arm.eng.rdu2.redhat.com systemd[1]: Started Service that applies host-specific configuration.

Comment 1 Richard Su 2022-08-03 16:50:20 UTC

*** This bug has been marked as a duplicate of bug 2112906 ***