Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1503

Transient OSBS failure when building operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • Build, Operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • RHDH Install&Run 3253

      It looks like the build pipelines in GitLab have been failing for a couple of days now..

      I wanted to let Gustavo/QE know that he could switch to using rhdh.redhat.com in his CR when testing the operator (https://gitlab.cee.redhat.com/rhdh-qe/auto-instance/-/merge_requests/2), now that https://github.com/janus-idp/operator/pull/201 has been merged a few days ago.

      But the latest build of the operator is still using janus-idp.io..

      I saw this error in one of the linked tasks: https://gitlab.cee.redhat.com/rhidp/rhdh/-/jobs/20126013

       

      [2024-02-19 14:26:54,662 cachito.workers.pkg_managers.gomod DEBUG gomod._run] Running '['go', 'clean', '-modcache']'
      [2024-02-19 14:26:54,670 cachito.workers.tasks.utils INFO utils.set_request_state] Setting the state of request 1221328 to "failed" with the reason "An unknown error occurred"
      [2024-02-19 14:26:55,641 celery.app.trace ERROR trace._log_error] Task cachito.workers.tasks.gomod.fetch_gomod_source[78378233-6e01-4b44-adc0-c6469727e021] raised unexpected: FileNotFoundError(2, 'No such file or directory')
      Traceback (most recent call last):
        File "/usr/local/lib/python3.11/site-packages/celery/app/trace.py", line 477, in trace_task
          R = retval = fun(*args, **kwargs)
                       ^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.11/site-packages/celery/app/trace.py", line 760, in __protected_call__
          return self.run(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/src/cachito/workers/tasks/utils.py", line 145, in task_with_state_check
          return task_fn(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
        File "/src/cachito/workers/tasks/gomod.py", line 187, in fetch_gomod_source
          gomod = resolve_gomod(
                  ^^^^^^^^^^^^^^
        File "/usr/lib64/python3.11/contextlib.py", line 81, in inner
          return func(*args, **kwds)
                 ^^^^^^^^^^^^^^^^^^^
        File "/src/cachito/workers/pkg_managers/gomod.py", line 322, in resolve_gomod
          go = _select_go_toolchain(git_dir_path)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/src/cachito/workers/pkg_managers/gomod.py", line 1067, in _select_go_toolchain
          if (modfile_version := _get_gomod_version(source_dir)) is None:
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/src/cachito/workers/pkg_managers/gomod.py", line 1053, in _get_gomod_version
          with open(go_mod) as f:
               ^^^^^^^^^^^^
      FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/cachito/bundles/temp/1221328/app/go.mod

              nickboldt Nick Boldt
              rh-ee-asoro Armel Soro
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: