Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-4465

Error should be logged and stop the customized image generation if the nmstate output is "--- {}\n"

XMLWordPrintable

    • Moderate
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When we exapnd the baremetal IP cluster with static IP, no information is logged if nmstate output is "--- {}\n" and the customized image generates without the static network configuration.

      Version-Release number of selected component (if applicable):

      4.11

      How reproducible:

      100%

      Steps to Reproduce:

      1. Exapand baremetal ipi cluster node with the below invalid nmstate data.
         ---
         apiVersion: v1
         kind: Secret
         metadata:
          name: openshift-worker-0-network-config-secret
         type: Opaque
         stringData:
          nmstate: |
           foo:
            bar: baz
         ---
         apiVersion: v1
         kind: Secret
         metadata:
           name: openshift-worker-0-bmc-secret
           namespace: openshift-machine-api
         type: Opaque
         data:
           username: YWRtaW4K
           password: cGFzc3dvcmQK
         ---
         apiVersion: metal3.io/v1alpha1
         kind: BareMetalHost
         metadata:
           name: openshift-worker-0
           namespace: openshift-machine-api
         spec:
           online: True
           bootMACAddress: 52:54:00:11:22:b4
           bmc:
             address: ipmi://192.168.123.1:6233
             credentialsName: openshift-worker-0-bmc-secret
             disableCertificateVerification: True
             username: admin
             password: password
           rootDeviceHints:
             deviceName: "/dev/sda"
           preprovisioningNetworkDataName: openshift-worker-0-network-config-secret
      
      2. Check if an IP is configured with the node
      3.
      

      Actual results:

      No static network configuration in the metal3 customized image.

      Expected results:

      Information should be logged and the metal3 customized image should not be generated.

      Additional info:

      https://github.com/openshift/image-customization-controller/pull/72

              rhn-support-vkochuku Vinu Kochukuttan
              rhn-support-vkochuku Vinu Kochukuttan
              Steeve Goveas Steeve Goveas
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: