FailedToConfigure static IP address on OpenShift node with NMState operator

Solution Verified - Updated -

Issue

  • Adding a static IP address to the OpenShift node with the NMState operator results in a FailedToConfigure 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content