Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2115798

Summary: pre-network-manager-config.service fails when agent-config.yaml does not include nmstateconfig
Product: OpenShift Container Platform Reporter: Richard Su <rwsu>
Component: InstallerAssignee: Richard Su <rwsu>
Installer sub component: Agent based installation QA Contact: Manoj Hans <mhans>
Status: CLOSED WONTFIX Docs Contact:
Severity: high    
Priority: high CC: asegurap, mhans, zbitter
Version: 4.11   
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: When there are no NMStateConfigs defined, the pre-network-manager-config.service attempts to process non-existing NMStateConfigs. Consequence: The pre-network-manager-config.service fails because it cannot find NMStateConfigs to process. Fix: When there are no NMStateConfigs defined, the pre-network-manager-config.service is disabled. Result: The pre-network-manager-config.service is not enabled when no NMStateConfigs are defined.
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-30 18:04:53 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:
Attachments:
Description Flags
journalctl log from node0 none

Description Richard Su 2022-08-05 12:20:14 UTC
Created attachment 1903893 [details]
journalctl log from node0

Description:

I was testing the DHCP scenario where only rendezvousIP is specified in the agent-config.yaml and no NMStateConfig is embedded. pre-network-manager-config.service fails on node0 when networkConfig is missing from agent-config.yaml. /usr/local/bin/pre-network-manager-config.sh is not found on node0.

If NMStateConfig is not provided, then perhaps the service should not be included and activated in the ignition.

agent-config.yaml used:

metadata:
  name: ostest
  namespace: cluster0
spec:
  rendezvousIP: 192.168.122.2

Steps to reproduce:

1. Create agent.iso using install-config.yaml and agent-config.yaml
2. Deploy cluster using agent.iso
3. Log into node0 and pre-network-manager-config.service will be displayed as a failed unit.

Expected:

pre-network-manager-config.service in success state

Actual:

pre-network-manager-config.service in failed state

Aug 05 08:27:18 localhost systemd[1]: Starting Prepare network manager config content...
Aug 05 08:27:18 localhost systemd[1]: pre-network-manager-config.service: Main process exited, code=exited, status=203/EXEC
Aug 05 08:27:18 localhost systemd[1]: pre-network-manager-config.service: Failed with result 'exit-code'.
Aug 05 08:27:18 localhost systemd[1]: Failed to start Prepare network manager config content.

Comment 3 Manoj Hans 2022-09-28 12:10:02 UTC
Bug has been verified with 4.12.0-0.nightly-2022-09-26-111919 release. It's working fine when only provided rendezvousIP in the agent-config.

Comment 5 Rory Thrasher 2024-04-30 18:04:53 UTC
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