Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1157

GitHub Issue #914: convert2rhel silently hangs if too many (list too long) third-party packages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • 3
    • Testable

      https://github.com/Jskud has created an issue in GitHub https://github.com/oamg/convert2rhel/issues/914

      Title: convert2rhel silently hangs if too many (list too long) third-party packages
      Description:
      I'm converting from CentOS 7.9 to RHEL 7 using convert2rhel.

      I had 568 third-party packages which generated an internal command line of over 25K characters.

      Trying multiple times, each time the conversion process hung; with --debug, I got this traceback:
      ` [2023-09-13T13:29:41+0000] DEBUG - Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 113, in main_locked
      pre_conversion_results = actions.run_actions()
      File "/usr/lib/python2.7/site-packages/convert2rhel/actions/_init_.py", line 707, in run_actions
      results = system_checks.run()
      File "/usr/lib/python2.7/site-packages/convert2rhel/actions/_init_.py", line 587, in run
      successes, failures, skips = self.next_stage.run(successes, failures, skips)
      File "/usr/lib/python2.7/site-packages/convert2rhel/actions/_init_.py", line 559, in run
      action.run()
      File "/usr/lib/python2.7/site-packages/convert2rhel/actions/pre_ponr_changes/handle_packages.py", line 40, in run
      pkg_list = pkghandler.format_pkg_info(sorted(third_party_pkgs, key=self.extract_packages))
      File "/usr/lib/python2.7/site-packages/convert2rhel/utils.py", line 242, in wrapper
      process.join()
      File "/usr/lib64/python2.7/multiprocessing/process.py", line 145, in join
      res = self._popen.wait(timeout)
      File "/usr/lib64/python2.7/multiprocessing/forking.py", line 154, in wait
      return self.poll(0)
      File "/usr/lib64/python2.7/multiprocessing/forking.py", line 135, in poll
      pid, sts = os.waitpid(self.pid, flag)
      KeyboardInterrupt
      `
      I managed to observe the troublesome command using *ps" – it was a very long repoquery command, which generates over 28K of output when run standalone.

      When I cut my third-party packages way down and restarted the conversion process, it got past that Convert: List third-party packages point, and now underway.

              Unassigned Unassigned
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: