Bug 2114977 - [Agent]: pre-network-manager-config.service is failed to start
Summary: [Agent]: pre-network-manager-config.service is failed to start
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.12
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.12.0
Assignee: Richard Su
QA Contact: Manoj Hans
Depends On:
TreeView+ depends on / blocked
Reported: 2022-08-03 15:53 UTC by Manoj Hans
Modified: 2022-11-09 13:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Because the staticNetworkConfig was not being populated in the NMStateConfig asset, the /usr/local/bin/pre-network-manager-config.sh script was not being added to the ignition. Consequence: The pre-network-manager-config.service failed to start because /usr/local/bin/pre-network-manager-config.sh was missing. Fix: The NMStateConfig asset now populates the internal staticNetworkConfig field. Because staticNetworkConfig is not empty, the /usr/local/bin/pre-network-manager-config.sh script is included in the ignition and the corresponding service is able to start the script. Result: The pre-network-manager-config.service starts and executes /usr/local/bin/pre-network-manager-config.sh if there are NMStateConfigs defined.
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift installer pull 6201 0 None open Bug 2114977: Populate staticNetworkConfig in NMStateConfig.Generate 2022-08-04 11:11:46 UTC

Description Manoj Hans 2022-08-03 15:53:17 UTC
Description: pre-network-manager-config.service is failed to start

How reproducible:


Repro Steps: 

1) Get the latest agent-installer and build

git clone -b agent-installer https://github.com/openshift/installer.git
cd installer/

2) Create agent.iso using install-config and agent-config.

3) Boot the generated ISO on bare metal machine or libvirt

Expected: pre-network-manager-config.service should start without any issue.
Actual: pre-network-manager-config.service is failed to start.

journalctl -u pre-network-manager-config.service -f
-- Logs begin at Wed 2022-08-03 15:25:58 UTC. --
Aug 03 15:26:29 localhost systemd[1]: Starting Prepare network manager config content...
Aug 03 15:26:29 localhost systemd[1]: pre-network-manager-config.service: Main process exited, code=exited, status=203/EXEC
Aug 03 15:26:29 localhost systemd[1]: pre-network-manager-config.service: Failed with result 'exit-code'.
Aug 03 15:26:29 localhost systemd[1]: Failed to start Prepare network manager config content.

Comment 1 Richard Su 2022-08-04 10:43:34 UTC
The pre-network-manager-config.service fails because /usr/local/bin/pre-network-manager-config.sh is missing. The script is missing because staticNetworkConfig isn't being populated when the NMStateConfig is generated from the AgentConfig.

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