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

kubelet service is unable to parse the "kubelet_node_name" when multiple domain name used

XMLWordPrintable

    • No
    • CLOUD Sprint 253
    • 1
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the logic that fetches the name of a node did not account for the possibility of multiple values for the returned hostname from the {aws-short} metadata service.
      When multiple domains are configured for a VPC DHCP option, this hostname might return multiple values.
      The space between multiple values caused the logic to crash.
      With this release, the logic is updated to use only the first returned hostname as the node name.
      (link:https://issues.redhat.com/browse/OCPBUGS-10498[*OCPBUGS-10498*])
      Show
      * Previously, the logic that fetches the name of a node did not account for the possibility of multiple values for the returned hostname from the {aws-short} metadata service. When multiple domains are configured for a VPC DHCP option, this hostname might return multiple values. The space between multiple values caused the logic to crash. With this release, the logic is updated to use only the first returned hostname as the node name. (link: https://issues.redhat.com/browse/OCPBUGS-10498 [* OCPBUGS-10498 *])
    • Bug Fix
    • Done

      Description of problem:

      The customer requires multiple domain names in their AWS VPCs DHCP option set which is to allow on-prem DNS(infoblox) lookups to work. 
      
      The problem is that kubelet service is unable to parse the node name properly. 
      
      ~~~
      hyperkube[2562]: Error: failed to run Kubelet: failed to create kubelet: could not initialize volume plugins for KubeletVolumePluginMgr: parse "http://example.compute.internal example.com:9001": invalid character " " in host name
      ~~~
      
      /etc/systemd/system/kubelet.service.d/20-aws-node-name.conf
      [Service]
      Environment="KUBELET_NODE_NAME=ip-x-x-x-x.example.example test.example"
                                                               ^
                                                              space
      
      
      The is customer is aware of this KCS article. If the cu follows what the KCS article says, it will break their DNS functionality. 
      
      Kubelet fails to start on nodes during OCP 4.x IPI installation on AWS - Red Hat Customer Portal
      https://access.redhat.com/solutions/6978959
      
      
      

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

       

      How reproducible:

      always

      Steps to Reproduce:

      1. Create/adding a node with multiple domain names
      2. Add base domain to the DHCP option in the VPC setting
      3.
      

      Actual results:

      kubelet is failing to start

      Expected results:

      should be able to add a worker node that has multiple domain names

      Additional info:

       

              joelspeed Joel Speed
              rhn-support-dchong Daniel Chong
              Huali Liu Huali Liu
              Jeana Routh Jeana Routh
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: