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

[4.10] Disconnected IPI OCP cluster install on baremetal fails when hostname of master nodes does not include the text "master

XMLWordPrintable

    • Important
    • None
    • 1
    • Metal Platform 223, Metal Platform 224, Metal Platform 225, Metal Platform 226, Metal Platform 227
    • 5
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Disconnected IPI OCP 4.10.22 cluster install on baremetal fails when hostname of master nodes does not include "master"    

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

      How reproducible:  Perform disconnected IPI install of OCP 4.10.22 on bare metal with master nodes that do not contain the text "master"

      Steps to Reproduce:

      Perform disconnected IPI install of OCP 4.10.22 on bare metal with master nodes that do not contain the text "master"

      Actual results: master nodes do come up.

      Expected results: master nodes should come up despite that the text "master" is not in their hostname.

      Additional info:

      Disconnected IPI OCP 4.10.22 cluster install on baremetal fails when hostname of master nodes does not include "master"    

      The code for the cluster-baremetal-operator at the following link: 

      https://github.com/openshift/cluster-baremetal-operator/blob/49d7b249c5dcef8228f206eff4530a25f03b201f/controllers/provisioning_controller.go#L441

      The following condition is concerning:

      if strings.Contains(bmh.Name, "master") && len(bmh.Spec.BootMACAddress) > 0

      The packages reveal that bmh.Name references the name inside the metadata of the BMH object. 

      Should a customer have masters with names that do not include the text "master", the above condition can never become true, and so, the following slice is never created :

      macs = append(macs, bmh.Spec.BootMACAddress)

       

       

            rhn-engineering-dtantsur Dmitry Tantsur
            rhn-support-rbennett Robert Bennett
            Jad Haj Yahya Jad Haj Yahya
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: