Skip to content

zync resync domain issues #236

@duomotomo

Description

@duomotomo

I had OpenShift 3.11 and 3scale 2.5 environment.
Recently i have upgraded to 3scale 2.6. Based on documentation at the end of migration process i have removed all routes and run zync domain resync with following command:

SYSTEM_SIDEKIQ_POD=$(oc get pods | grep sidekiq | awk '{print $1}')
echo ${SYSTEM_SIDEKIQ_POD}
oc exec -it ${SYSTEM_SIDEKIQ_POD} -- bash -c 'bundle exec rake zync:resync:domains'

After that I'v got many routes with "HostAlreadyClaimed" in my project:
oc get routes:
zync-3scale-api-2m5m4 HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-2tjhb HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-4dhsx HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-4w586 HostAlreadyClaimed apicast-production gateway edge/Redirect None
zync-3scale-api-56bkj HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-56gcm HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-5br9g HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-5ccbj brw-api-prod-brw-apicast-production. apicast-production gateway edge/Redirect None
zync-3scale-api-5cftp HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-5vx2b HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-5whgm HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-5x2xq api-brw-apicast-staging. apicast-staging gateway edge/Redirect None
zync-3scale-api-6kpdw HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-6t9tl HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-7t665 apicast- apicast-production gateway edge/Redirect None
zync-3scale-api-br694 HostAlreadyClaimed apicast-production gateway edge/Redirect None
zync-3scale-api-cxbr4 HostAlreadyClaimed apicast-production gateway edge/Redirect None
zync-3scale-api-czlm4 HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-d4c7b HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-jmp8c HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-jnrcb HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-jxdpj HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-km78n HostAlreadyClaimed apicast-staging gateway edge/Redirect None
zync-3scale-api-kq2nf HostAlreadyClaimed apicast-production gateway edge/Redirect None
zync-3scale-api-lzh86 HostAlreadyClaimed apicast-staging gateway edge/Redirect None

And so on. Look like because we are using path routing in our environment and public host is the same for many apis domain sync tries to create them with the same hostname. It seem this is not neccessary and should be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions