FailedToConfigure static IP address on OpenShift node with NMState operator
Issue
-
Adding a static IP address to the OpenShift node with the
NMState
operator results in aFailedToConfigure
error. The steps followed are mentioned below:- Create ceph-infra04-int.yaml
apiVersion: nmstate.io/v1 kind: NodeNetworkConfigurationPolicy metadata: name: infra04-ens224 spec: nodeSelector: kubernetes.io/hostname: infra04.test.com desiredState: interfaces: - name: ens224 description: static IP on ens224 type: ethernet state: up ipv4: address: - ip: 10.95.56.174 prefix-length: 22 enabled: true dhcp: false
- Create network configuration policy
$ oc create -f ceph-infra04-int.yaml nodenetworkconfigurationpolicy.nmstate.io/infra04-ens224 created
- Listing the NNCP reports the below error
$ oc get nncp NAME STATUS infra04-ens224 FailedToConfigure
Environment
- OpenShift Container Platform
- 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.