Uploaded image for project: 'OPCT - OpenShift Provider Compatibility Tool'
  1. OPCT - OpenShift Provider Compatibility Tool
  2. OPCT-129 [ProviderCertTool][phase-2] plugin implementation: openshift-tests
  3. OPCT-154

[bug][preflight] openshift-tests extractor should account cluster without image-registry

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • OCPPLAN-9743 - Onboarding New Providers/Platforms (Phase 1)

      The openshift-tests utility extractor is considering that the internal registry exists and the release images are available internally, but it's not true in some platforms like vSphere that it's not installed by default on IPI deployments.

      The extractor is not also failing fast when the openshift-tests was unable to extract, the execution should be stopped (maybe creating a failed junit) when the openshift-tests is not present.

      Look at the errors on the `plugin` container related to the runner component:

      #./runner.sh:17>  20220602-185104> [runner] starting sonobuoy status scraper...
      #./runner.sh:17>  20220602-185104> [runner] starting openshift-tests utility extractor...
      #./runner.sh:17>  20220602-185104> [runner] Starting sonobuoy status collector...
      #./runner.sh:17>  20220602-185104> [runner] [utils_extractor] Starting...
      #./runner.sh:17>  20220602-185104> [runner] initializing plugin config...
      #./runner.sh:17>  20220602-185104> [runner] [utils_extractor] Login to OpenShift Registry...
      #./runner.sh:17>  20220602-185104> [runner] [init_config]
      #./runner.sh:17>  20220602-185104> [runner] Plugin Config: PLUGIN_NAME=[openshift-conformance-validated] PLUGIN_BLOCKED_BY=[openshift-kube-conformance] CERT_TEST_FILE=[]
      #./runner.sh:17>  20220602-185104> [runner] Setup config done.
      #./runner.sh:17>  20220602-185104> [runner] check and wait for dependencies...
      #./runner.sh:17>  20220602-185104> [runner] Check if status file exists=[/tmp/sonobuoy-status.json]
      #./runner.sh:17>  20220602-185104> [runner] Status file exists!
      #./runner.sh:17>  20220602-185104> [runner] [wait_utils_extractor] waiting for utils_extractor()...
      #./runner.sh:17>  20220602-185104> [runner] Check if status file exists=[/tmp/sonobuoy/results/openshift-tests.ready]
      Saved credentials for image-registry.openshift-image-registry.svc:5000
      info: Using internal registry hostname image-registry.openshift-image-registry.svc:5000
      Warning: the default reading order of registry auth file will be changed from "${HOME}/.docker/config.json" to podman registry config locations in the future version. "${HOME}/.docker/config.json" is deprecated, but can still be used for storing credentials as a fallback. See https://github.com/containers/image/blob/main/docs/containers-auth.json.5.md for the order of podman registry config locations.
      #./runner.sh:17>  20220602-185105> [runner] [utils_extractor] Extracting openshift-tests utility...
      Warning: the default reading order of registry auth file will be changed from "${HOME}/.docker/config.json" to podman registry config locations in the future version. "${HOME}/.docker/config.json" is deprecated, but can still be used for storing credentials as a fallback. See https://github.com/containers/image/blob/main/docs/containers-auth.json.5.md for the order of podman registry config locations.
      error: unable to read image image-registry.openshift-image-registry.svc:5000/openshift/tests:latest: Get "http://image-registry.openshift-image-registry.svc:5000/v2/": dial tcp 172.30.93.12:5000: connect: connection refused
      #./runner.sh:17>  20220602-185105> [runner] [utils_extractor] check if it was downloaded...
      #./runner.sh:17>  20220602-185105> [runner] [utils_extractor] move to /usr/bin/openshift-tests...
      mv: cannot stat './openshift-tests': No such file or directory
      #./runner.sh:17>  20220602-185105> [runner] [utils_extractor] unlock extractor...
      #./runner.sh:17>  20220602-185110> [runner] Check if status file exists=[/tmp/sonobuoy/results/openshift-tests.ready]
      #./runner.sh:17>  20220602-185115> [runner] Check if status file exists=[/tmp/sonobuoy/results/openshift-tests.ready]
      
      

       

      ENGINEERING DOCS

              rhn-support-mrbraga Marco Braga
              rhn-support-mrbraga Marco Braga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 6 hours
                  6h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h