Uploaded image for project: 'Operator Ecosystem'
  1. Operator Ecosystem
  2. OPECO-1868

operator-sdk `run bundle` should add the proxy to the catalogsource if the cluster is config with http-proxy

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • False
    • False
    • Undefined

      Description of problem:
      OperatorSDK run bundle generate the catalogsource without the "HTTP-PROXY" if the cluster configed with the "HTTP-PROXY". And the catalogsource pod can't be built success.

      Version-Release number of selected component (if applicable):
      operator-sdk version: "v1.8.0-ocp", commit: "016423f32c9757a10dc7a9e953818bc20ae3eba4", kubernetes version: "v1.20.2", go version: "go1.16.5", GOOS: "linux", GOARCH: "amd64"
      cv:4.8.0-0.nightly-2021-06-19-005119

      How reproducible:
      always

      Steps to Reproduce:
      1.install one disconnected cluster with HTTP-PROXY
      2.run operator-sdk run bundle (image from the network)
      $operator-sdk run bundle quay.io/xxxx/blacklist-xxxxle:v4.8

      Actual results:
      The catalogsource pods failed at download the image "quay.io/xxxx/blacklist-xxxxle:v4.8" without the HTTP-PROXY config.

      `time="2021-06-22T06:50:23Z" level=info msg="adding to the registry" bundles="[quay.io/xxxx/blacklist-xxxxle:v4.8]"
      time="2021-06-22T06:50:54Z" level=error msg="permissive mode disabled" bundles="[quay.io/olmqe/blacklist-bundle:v4.8]" error="[error resolving name : failed to do request: Head \"
      https://quay.io/v2/xxxx/blacklist-xxxxle/manifests/v4.8
      \": dial tcp 3.213.173.170:443: i/o timeout, image \"quay.io/xxxx/blacklist-xxxxle:v4.8\": not found]"
      Error: [error resolving name : failed to do request: Head "
      https://quay.io/v2/xxxx/blacklist-xxxxle/manifests/v4.8
      ": dial tcp 3.213.173.170:443: i/o timeout, image "quay.io/xxxx/blacklist-xxxxle:v4.8": not found]`

      Expected results:
      The pod of catalogsource should add the cluster HTTP-PROXY automatically.

      Additional info:

      Original bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1980169

              Unassigned Unassigned
              rhn-engineering-jesusr Jesus Rodriguez (Inactive)
              Jia Fan Jia Fan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: