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

noProxy do not respect a CIDR like 192.168.201.0/24

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.18.z
    • HyperShift
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      Creating a hosted cluster with following proxy settings & API IP of 192.168.201.20
      
        configuration:
          proxy:
            httpProxy: 'http://192.168.201.2:3128'
            httpsProxy: 'http://192.168.201.2:3128'
            noProxy: '192.168.201.0/24,.apps.ocp7.stormshift.coe.muc.redhat.com'
            trustedCA:
              name: 'redhat-root-ca-bundle-v1'    
      
      
      Result into a kube-api-proxy compontent who try to reach the API Server via proxy and not direct! 
      
      The noProxy check here do not support a CIDR: https://github.com/openshift/hypershift/blob/main/hypershift-operator/controllers/nodepool/apiserver-haproxy/haproxy.go#L281-L314
      
      Internal conversation: https://redhat-external.slack.com/archives/C01C8502FMM/p1752514958754469

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

          oc get installplan,clusterversion -A
      NAMESPACE                 NAME                                             CSV                                        APPROVAL    APPROVED
      metallb-system            installplan.operators.coreos.com/install-qb26h   metallb-operator.v4.18.0-202506251003      Automatic   true
      multicluster-engine       installplan.operators.coreos.com/install-2kdrx   multicluster-engine.v2.8.2                 Automatic   true
      open-cluster-management   installplan.operators.coreos.com/install-qffp2   advanced-cluster-management.v2.13.3        Automatic   true
      openshift-cnv             installplan.operators.coreos.com/install-7hjqx   kubevirt-hyperconverged-operator.v4.18.8   Automatic   true
      openshift-operators       installplan.operators.coreos.com/install-624fr   web-terminal.v1.13.0                       Automatic   true
      openshift-operators       installplan.operators.coreos.com/install-jbn89   trident-operator.v25.2.1                   Automatic   true
      openshift-operators       installplan.operators.coreos.com/install-lhzcg   devspacesoperator.v3.21.0                  Automatic   true
      
      NAMESPACE   NAME                                         VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
                  clusterversion.config.openshift.io/version   4.18.19   True        False         22h     Cluster version is 4.18.19

      How reproducible:

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

          

              Unassigned Unassigned
              rbohne Robert Bohne
              None
              None
              Yu Li Yu Li
              None
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: