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

Metal Day-1 When No Hostname is Provided by Either rDNS or DHCP, All Hosts are Named "localhost".

XMLWordPrintable

    • Important
    • None
    • 1
    • Metal Platform 243, Metal Platform 244, Metal Platform 247, Metal Platform 248
    • 4
    • Rejected
    • Unspecified
    • If docs needed, set a value

      Platform:

      IPI on Baremetal

      What happened?

      In cases where no hostname is provided, host are automatically assigned the name "localhost" or "localhost.localdomain".

      [kni@provisionhost-0-0 ~]$ oc get nodes
      NAME STATUS ROLES AGE VERSION
      localhost.localdomain Ready master 31m v1.22.1+6859754
      master-0-1 Ready master 39m v1.22.1+6859754
      master-0-2 Ready master 39m v1.22.1+6859754
      worker-0-0 Ready worker 12m v1.22.1+6859754
      worker-0-1 Ready worker 12m v1.22.1+6859754

      What did you expect to happen?

      Having all hosts come up as localhost is the worst possible user experience, because they'll fail to form a cluster but you won't know why.

      However, we know the BMH name in the image-customization-controller, it would be possible to configure the ignition to set a default hostname if we don't have one from DHCP/DNS.

      If not, we should at least fail the installation with a specific error message to this situation.

      ----------
      30/01/22 - adding how to reproduce
      ----------

      How to Reproduce:

      1)prepare and installation with day-1 static ip.

      add to install-config uner one of the nodes:
      networkConfig:
      routes:
      config:

      • destination: 0.0.0.0/0
        next-hop-address: 192.168.123.1
        next-hop-interface: enp0s4
        dns-resolver:
        config:
        server:
      • 192.168.123.1
        interfaces:
      • name: enp0s4
        type: ethernet
        state: up
        ipv4:
        address:
      • ip: 192.168.123.110
        prefix-length: 24
        enabled: true

      2)Ensure a DNS PTR for the address IS NOT configured.

      3)create manifests and cluster from install-config.yaml

      installation should either:
      1)fail as early as possible, and provide some sort of feed back as to the fact that no hostname was provided.
      2)derive the Hostname from the bmh or the ignition files

              dhiggins@redhat.com Derek Higgins
              yporagpa yoav porag (Inactive)
              Jad Haj Yahya Jad Haj Yahya
              Red Hat Employee
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: