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

For IPv6-primary dual-stack cluster, kubelet.service renders only single node-ip

XMLWordPrintable

    • No
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Bug Fix
    • Done

      This is a clone of issue OCPBUGS-8676. The following is the description of the original issue:

      When implementing support for IPv6-primary dual-stack clusters, we have extended the available IP families to

      const (
      	IPFamiliesIPv4                 IPFamiliesType = "IPv4"
      	IPFamiliesIPv6                 IPFamiliesType = "IPv6"
      	IPFamiliesDualStack            IPFamiliesType = "DualStack"
      	IPFamiliesDualStackIPv6Primary IPFamiliesType = "DualStackIPv6Primary"
      )
      

      At the same time definitions of kubelet.service systemd unit still contain the code

      {{- if eq .IPFamilies "DualStack"}}
              --node-ip=${KUBELET_NODE_IPS} \
      {{- else}}
              --node-ip=${KUBELET_NODE_IP} \
      {{- end}}
      

      which only matches the "old" dual-stack family. Because of this, an IPv6-primary dual-stack renders node-ip param with only 1 IP address instead of 2 as required in dual-stack.

              mkowalsk@redhat.com Mat Kowalski
              openshift-crt-jira-prow OpenShift Prow Bot
              Rio Liu Rio Liu
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: