Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-4383

Configure GitHubBuildTrigger in IPV6 environment unsuccessfully

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • None
    • quay-v3.8.0
    • documentation, quay-builder
    • None
    • False
    • None
    • False
    • 0

    Description

      Description of problem:

      Due to github doesn't support IPV6,  configure GitHubBuildTrigger in IPV6 environment unsuccessfully.

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

      quay v3.8.0
      registry.redhat.io/quay/quay-operator-rhel8@sha256:3cc8300710d1ea542d9aff3d524566b575e8df48d845ae0fd6506a719bc8205f
      registry.redhat.io/quay/quay-rhel8@sha256:299a48cbedf65ba912799bb65ef859206c58e66c32ce6d225a51de78e1bcb098
      brew.registry.redhat.io/rh-osbs/quay-quay-builder-rhel8:v3.8.0

      How reproducible:

      always

      Steps to Reproduce:
      1. deploy quay 3.8
      2. configure GitHub build trigger

      # cat config.yaml
      ......
      FEATURE_BUILD_SUPPORT: true
      FEATURE_GITLAB_BUILD: true
      GITLAB_TRIGGER_CONFIG:
          CLIENT_ID: b17....f52 
          CLIENT_SECRET: bb....9 
      GITLAB_TRIGGER_KIND:
          GITLAB_ENDPOINT: https://gitlab.com/
      FEATURE_BITBUCKET_BUILD: true
      BITBUCKET_TRIGGER_CONFIG:
          CONSUMER_KEY: U....d 
          CONSUMER_SECRET: f.....Z 
      FEATURE_GITHUB_BUILD: true
      GITHUB_TRIGGER_CONFIG:
        API_ENDPOINT: https://api.github.com/
        CLIENT_ID: 2...d
        CLIENT_SECRET:  7.....8
        GITHUB_ENDPOINT: https://github.com/
      BUILDMAN_HOSTNAME: quayregistry-quay-builder-quay-enterprise.apps.whuipv602.qe.devcluster.openshift.com:443 
      BUILD_MANAGER:
      - ephemeral
      - ALLOWED_WORKER_COUNT: 20 
        ORCHESTRATOR_PREFIX: buildman/production/
        ORCHESTRATOR:
          REDIS_HOST: quayregistry-quay-redis
          REDIS_PASSWORD: ""
          REDIS_SSL: false
          REDIS_SKIP_KEYSPACE_EVENT_SETUP: false
        EXECUTORS:
        - EXECUTOR: kubernetesPodman
          DEBUG: true
          NAME: openshift
          BUILDER_NAMESPACE: virtual-builds 
          SETUP_TIME: 180
          QUAY_USERNAME: '|....6'
          QUAY_PASSWORD: e......8 
          BUILDER_CONTAINER_IMAGE: brew.registry.redhat.io/rh-osbs/quay-quay-builder-rhel8:v3.8.0 
          # Kubernetes resource options
          K8S_API_SERVER: api.whuipv602.qe.devcluster.openshift.com:6443 
          K8S_API_TLS_CA: /conf/stack/extra_ca_certs/build_cluster.crt
          VOLUME_SIZE: 8G
          KUBERNETES_DISTRIBUTION: openshift
          CONTAINER_MEMORY_LIMITS: 1G 
          CONTAINER_CPU_LIMITS: 1000m
          CONTAINER_MEMORY_REQUEST: 1G 
          CONTAINER_CPU_REQUEST: 500m
          NODE_SELECTOR_LABEL_KEY: ""
          NODE_SELECTOR_LABEL_VALUE: ""
          SERVICE_ACCOUNT_NAME: quay-builder 
          SERVICE_ACCOUNT_TOKEN: ey......PEQ 
      USERFILES_LOCATION: default
      USERFILES_PATH: userfiles

      Actual results:

      Configure GitHubBuildTrigger in IPV6 environment unsuccessfully.

      $ oc logs quayregistry-quay-app-799b5644dd-c4jgb
      ......
      +------------------------+-------------------------------------------+--------+
      |      Field Group       |                   Error                   | Status |
      +------------------------+-------------------------------------------+--------+
      ........
      | Email                  | -                                         | 🟢     |
      +------------------------+-------------------------------------------+--------+
      | GitHubBuildTrigger     | Could not verify GitHub OAuth credentials | 🔴     |
      +------------------------+-------------------------------------------+--------+

      Expected results:

      Configure GitHubBuildTrigger in IPV6 environment successfully.

      Additional info:

      git.com doesn't supprot IPV6.  gitlab and bitbucket support IPV6.

      So gitlab and bitbucket builder trigger can configure successfully.

      $ host api.github.com
      api.github.com has address 20.205.243.168
      $ host github.com
      github.com has address 20.205.243.166
      github.com mail is handled by 5 alt1.aspmx.l.google.com.
      github.com mail is handled by 5 alt2.aspmx.l.google.com.
      github.com mail is handled by 1 aspmx.l.google.com.
      github.com mail is handled by 10 alt3.aspmx.l.google.com.
      github.com mail is handled by 10 alt4.aspmx.l.google.com.
      $ host gitlab.com
      gitlab.com has address 172.65.251.78
      gitlab.com has IPv6 address 2606:4700:90:0:f22e:fbec:5bed:a9b9
      gitlab.com mail is handled by 1 aspmx.l.google.com.
      gitlab.com mail is handled by 5 alt2.aspmx.l.google.com.
      gitlab.com mail is handled by 10 alt3.aspmx.l.google.com.
      gitlab.com mail is handled by 10 alt4.aspmx.l.google.com.
      gitlab.com mail is handled by 5 alt1.aspmx.l.google.com.
      $ host bitbucket.org
      bitbucket.org has address 104.192.141.1
      bitbucket.org has IPv6 address 2406:da00:ff00::22c5:2ef4
      bitbucket.org has IPv6 address 2406:da00:ff00::22cd:e0db
      bitbucket.org has IPv6 address 2406:da00:ff00::22c0:3470
      bitbucket.org has IPv6 address 2406:da00:ff00::3403:4be7
      bitbucket.org has IPv6 address 2406:da00:ff00::22e9:9f55
      bitbucket.org has IPv6 address 2406:da00:ff00::6b17:d1f5
      bitbucket.org mail is handled by 10 mxa-001d9801.gslb.pphosted.com.
      bitbucket.org mail is handled by 10 mxb-001d9801.gslb.pphosted.com.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-stevsmit Steven Smith
              rhwhu Weihua Hu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: