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

[4.18] kubevirt hosted cluster with apiserver noderport using hostname ends without network policies

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • Done
    • Bug Fix
    • Hide
      * Before this update, the `HostedCluster` command failed to create network policies because of an invalid IP address format in the `nodePort` configuration. As a consequence, the creation of the hosted cluster failed due to an incorrect IP address determination. This release adds log messages for IP address type determination in the `virt` launcher network policy reconciliation. The additional log messages resolve the incorrect IP address determination in the `kubevirt` hosted cluster. As a result, the `HostedCluster` command successfully creates the network policies and the hosted cluster. (link:https://issues.redhat.com/browse/OCPBUGS-46629[OCPBUGS-46629])
      Show
      * Before this update, the `HostedCluster` command failed to create network policies because of an invalid IP address format in the `nodePort` configuration. As a consequence, the creation of the hosted cluster failed due to an incorrect IP address determination. This release adds log messages for IP address type determination in the `virt` launcher network policy reconciliation. The additional log messages resolve the incorrect IP address determination in the `kubevirt` hosted cluster. As a result, the `HostedCluster` command successfully creates the network policies and the hosted cluster. (link: https://issues.redhat.com/browse/OCPBUGS-46629 [ OCPBUGS-46629 ])
    • None
    • None
    • None
    • None

      Description of problem:

          When creating a kubevirt hosted cluster with the following apiserver publishing configuration
      
      - service: APIServer
          servicePublishingStrategy:
            type: NodePort
            nodePort:
              address: my.hostna.me
              port: 305030
      
      Shows following error:
      
      "failed to reconcile virt launcher policy: could not determine if amy.hostna.me is an IPv4 or IPv6 address"
      
      And network policies and not propertly deployed at the virtual machine namespaces.

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

       4.17

      How reproducible:

          Always

      Steps to Reproduce:

          1.Create a kubevirt hosted cluster with apiserver nodeport publish with a hostname
          2. Wait for hosted cluster creation.
          

      Actual results:

      Following error pops up and network policies are not created
      
      "failed to reconcile virt launcher policy: could not determine if amy.hostna.me is an IPv4 or IPv6 address"    

      Expected results:

          No error pops ups and network policies are created.

      Additional info:

          This is where the error get originated -> https://github.com/openshift/hypershift/blob/ef8596d4d69a53eb60838ae45ffce2bca0bfa3b2/hypershift-operator/controllers/hostedcluster/network_policies.go#L644
      
          That error should prevent network policies creation.

              kmajcher@redhat.com Krzysztof Majcher
              ellorent Felix Enrique Llorente Pastora
              None
              None
              Zheng Feng Zheng Feng
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: