Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-3016

Zync blocks route to other apicast when service is redirected to other apicast

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • 2.6 ER2
    • System, Zync
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • 3scale 2019-07-29

      Right now, zync is managing routes for every service. When the public base URL of service is updated, zync updates hostnames of routes in openshift. This is a problem for custom apicast.
      Example:

      1. Create and configure service in 3scale (Zync creates routes in openshift for default URLs for staging and production)
      2. Deploy custom apicast inside the same project as 3scale or in another project
      3. Create route for your custom apicast (e.g. my.apicast.example.com)
      4. Change public base URL of staging/production in 3scale admin portal to new hostname created in step 3 (my.apicast.example.com). We want to redirect traffic to custom apicast.
      5. Zync updates default routes (created by zync in step 1) of service to the new hostname which disables the route created in step 3 because openshift will choose older route when 2 routes have the same hostname
        That means hostname (my.apicast.example.com) is still connected to apicast-staging/apicast-production but not to custom apicast.

      There exist a workaround, when you change target service of openshift route (instead of apicast-staging/apicast-production you target it to your custom apicast). But this workaround works only when the custom apicast is deployed in the same project as 3scale.

      I would suggest that the service should have the option to disable creating routes, which means that we can create service without routes on openshift. This would solve problems connected with custom apicast.

      See linked issue THREESCALE-3001.

              Unassigned Unassigned
              jsmadis Jakub Smadis (Inactive)
              Michal Cichra Michal Cichra (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: