Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8708

f8-arq generated route hostname likely too long

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.0
    • FIS 2.0
    • FIS-Fabric8
    • None
    • % %
    • Fuse 7.0 Sprint 16

      The route hostname lenght limit is 63 characters. Given the way f8-arq test namespace gets generated, the route hostname is likely above the limit (depends on project name and domain suffix)

      e.g. listing routes when running arquillian tests in spring-boot-camel-config-archetype:

      $ oc get routes -o yaml
      apiVersion: v1
      items:
      - apiVersion: v1
        kind: Route
        metadata:
          annotations:
            openshift.io/host.generated: "true"
          creationTimestamp: 2017-01-22T14:38:23Z
          name: spring-boot-camel-config
          namespace: itest-6a246afd-bcc8-4a57-8f78-c7cf0e32750d
          resourceVersion: "4786567"
          selfLink: /oapi/v1/namespaces/itest-6a246afd-bcc8-4a57-8f78-c7cf0e32750d/routes/spring-boot-camel-config
          uid: 6d5ff1bd-e0b0-11e6-8a61-525400ed540c
        spec:
          host: spring-boot-camel-config-itest-6a246afd-bcc8-4a57-8f78-c7cf0e32750d.apps.devel.xpaas
          to:
            kind: Service
            name: spring-boot-camel-config
            weight: 100
        status:
          ingress:
          - conditions:
            - lastTransitionTime: 2017-01-22T14:38:23Z
              message: 'host name validation errors: spec.host: Invalid value: "spring-boot-camel-config-itest-6a246afd-bcc8-4a57-8f78-c7cf0e32750d.apps.devel.xpaas":
                must be no more than 63 characters'
              reason: InvalidHost
              status: "False"
              type: Admitted
            host: spring-boot-camel-config-itest-6a246afd-bcc8-4a57-8f78-c7cf0e32750d.apps.devel.xpaas
            routerName: router
      kind: List
      metadata: {}
      

              Unassigned Unassigned
              maschmid@redhat.com Marek Schmidt
              Lukas Lowinger Lukas Lowinger
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: