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

OpenShift 4.20 BMO creates IRONIC_ENDPOINT with trailing '.'

    • None
    • False
    • Hide

      None

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

      Description of problem:

       When BMO creates the IRONIC_ENDPOINT a trailing '.' is added to the service endpoint. When defining a proxy, the NO_PROXY entries that are auto-generated do not include the trailing '.' and the BMO cannot reach the ironic EP. 

      
      {"level":"info","ts":1772564208.2929318,"logger":"controllers.BareMetalHost","msg":"provisioner is not ready","baremetalhost":{"name":"openshift-master-1","namespace":"openshift-machine-api"},"Error":"Not ready","RequeueAfter":30}
      {"level":"info","ts":1772564208.2930386,"logger":"provisioner.ironic","msg":"error caught while checking endpoint, will retry","host":"openshift-machine-api~openshift-master-2","endpoint":"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/","error":"Get \"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/\": Service Unavailable"}
      {"level":"info","ts":1772564208.2930677,"logger":"controllers.HostFirmwareSettings","msg":"provisioner is not ready","hostfirmwaresettings":{"name":"openshift-master-2","namespace":"openshift-machine-api"},"Error":"not ready","RequeueAfter":30}
      {"level":"info","ts":1772564208.2931678,"logger":"provisioner.ironic","msg":"error caught while checking endpoint, will retry","host":"zts-2n3~zt-sno3.inbound.vz.bos2.lab","endpoint":"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/","error":"Get \"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/\": Service Unavailable"}
      {"level":"info","ts":1772564208.2931771,"logger":"controllers.BareMetalHost","msg":"provisioner is not ready","baremetalhost":{"name":"zt-sno3.inbound.vz.bos2.lab","namespace":"zts-2n3"},"Error":"Not ready","RequeueAfter":30}
      {"level":"info","ts":1772564208.2932756,"logger":"provisioner.ironic","msg":"error caught while checking endpoint, will retry","host":"zt-sno4~zt-sno4.inbound.vz.bos2.lab","endpoint":"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/","error":"Get \"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/\": Service Unavailable"}
      {"level":"info","ts":1772564208.2933016,"logger":"controllers.BareMetalHost","msg":"provisioner is not ready","baremetalhost":{"name":"zt-sno4.inbound.vz.bos2.lab","namespace":"zt-sno4"},"Error":"Not ready","RequeueAfter":30}
      {"level":"info","ts":1772564208.2933822,"logger":"provisioner.ironic","msg":"error caught while checking endpoint, will retry","host":"openshift-machine-api~openshift-master-1","endpoint":"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/","error":"Get \"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/\": Service Unavailable"}
      
      
      -> oc rsh metal3-baremetal-operator-595fc8466-f78kg  
      sh-5.1$ export NO_PROXY=".cluster.local,.hub.inbound.vz.bos2.lab,.svc,10.128.0.0/14,127.0.0.1,172.30.0.0/16,192.168.44.191,192.168.59.0/25,2600:52:7:59::/64,5050,6180,6185,6385,6388,8089,9999,api-int.hub.inbound.vz.bos2.lab,fd01::/48,fd02::/112,localhost,"
      sh-5.1$ curl https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/ curl: (56) Received HTTP code 503 from proxy after CONNECT
      
      
      sh-5.1$ export NO_PROXY=".cluster.local,.hub.inbound.vz.bos2.lab,.svc,10.128.0.0/14,127.0.0.1,172.30.0.0/16,192.168.44.191,192.168.59.0/25,2600:52:7:59::/64,5050,6180,6185,6385,6388,8089,9999,api-int.hub.inbound.vz.bos2.lab,fd01::/48,fd02::/112,localhost,.cluster.local."
      sh-5.1$ curl -k https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/
      {"id": "v1", "links": [{"href": "https://192.168.59.6:6385/v1/", "rel": "self"}, {"href": "https://docs.openstack.org//ironic/latest/contributor//webapi.html", "rel": "describedby", "type": "text/html"}], "media_types": {"base": "application/json", "type": "application/vnd.openstack.ironic.v1+json"}, "chassis": [{"href": "https://192.168.59.6:6385/v1/chassis/", "rel": "self"}, {"href": "https://192.168.59.6:6385/chassis/", "rel": "bookmark"}], "nodes": [{"href": "https://192.168.59.6:6385/v1/nodes/", "rel": "self"}, {"href": "https://192.168.59.6:6385/nodes/", "rel": "bookmark"}], "ports": [{"href": "https://192.168.59.6:6385/v1/ports/", "rel": "self"}, {"href": "https://192.168.59.6:6385/ports/", "rel": "bookmark"}], "drivers": [{"href": "https://192.168.59.6:6385/v1/drivers/", "rel": "self"}, {"href": "https://192.168.59.6:6385/drivers/", "rel": "bookmark"}], "version": {"id": "v1", "links": [{"href": "https://192.168.59.6:6385/v1/", "rel": "self"}], "status": "CURRENT", "min_version": "1.1", "version": "1.99"}}

       

       

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

          4.20.15

      How reproducible:

          Every time

      Steps to Reproduce:

          1. Install
          2. Define a proxy config
          3. Attempt to manage BMH with BMO
          

      Actual results:

          {"level":"info","ts":1772564208.2931678,"logger":"provisioner.ironic","msg":"error caught while checking endpoint, will retry","host":"zts-2n3~zt-sno3.inbound.vz.bos2.lab","endpoint":"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/","error":"Get \"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/\": Service Unavailable"} {"level":"info","ts":1772564208.2931771,"logger":"controllers.BareMetalHost","msg":"provisioner is not ready","baremetalhost":{"name":"zt-sno3.inbound.vz.bos2.lab","namespace":"zts-2n3"},"Error":"Not ready","RequeueAfter":30} {"level":"info","ts":1772564208.2932756,"logger":"provisioner.ironic","msg":"error caught while checking endpoint, will retry","host":"zt-sno4~zt-sno4.inbound.vz.bos2.lab","endpoint":"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/","error":"Get \"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/\": Service Unavailable"} {"level":"info","ts":1772564208.2933016,"logger":"controllers.BareMetalHost","msg":"provisioner is not ready","baremetalhost":{"name":"zt-sno4.inbound.vz.bos2.lab","namespace":"zt-sno4"},"Error":"Not ready","RequeueAfter":30} {"level":"info","ts":1772564208.2933822,"logger":"provisioner.ironic","msg":"error caught while checking endpoint, will retry","host":"openshift-machine-api~openshift-master-1","endpoint":"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/","error":"Get \"https://metal3-state.openshift-machine-api.svc.cluster.local.:6388/v1/\": Service Unavailable"} 

      Expected results:

          Working BMH

      Additional info:

          

              eterrell@redhat.com Eduardo Otubo
              dphillip@redhat.com Davis Phillips
              Jad Haj Yahya Jad Haj Yahya
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: