Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-966 convert2rhel tracebacks on the internet check when "Connection reset by peer"
  3. RHELC-1365

convert2rhel tracebacks on the internet check when "Connection reset by peer" - Integration tests

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Obsolete
    • Icon: Major Major
    • 2.1.0
    • None
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • 1
    • Testable
    • rhel-conversions

      The parent issue RHELC-966 has the label that triggered autocreation of this subtask to track the relative story point estimation for the integration test part of the issue.

      The parent issue description at the time of creation of this issue was:
      convert2rhel fails with:

      [03/09/2023 16:49:35] DEBUG - Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 90, in main
      systeminfo.system_info.resolve_system_info()
      File "/usr/lib/python2.7/site-packages/convert2rhel/systeminfo.py", line 127, in resolve_system_info
      self.has_internet_access = self._check_internet_access()
      File "/usr/lib/python2.7/site-packages/convert2rhel/systeminfo.py", line 389, in _check_internet_access
      response = urllib.request.urlopen(CHECK_INTERNET_CONNECTION_ADDRESS)
      File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
      return opener.open(url, data, timeout)
      File "/usr/lib64/python2.7/urllib2.py", line 431, in open
      response = self._open(req, data)
      File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
      '_open', req)
      File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
      result = func(*args)
      File "/usr/lib64/python2.7/urllib2.py", line 1244, in http_open
      return self.do_open(httplib.HTTPConnection, req)
      File "/usr/lib64/python2.7/urllib2.py", line 1217, in do_open
      r = h.getresponse(buffering=True)
      File "/usr/lib64/python2.7/httplib.py", line 1144, in getresponse
      response.begin()
      File "/usr/lib64/python2.7/httplib.py", line 457, in begin
      version, status, reason = self._read_status()
      File "/usr/lib64/python2.7/httplib.py", line 413, in _read_status
      line = self.fp.readline(_MAXLINE + 1)
      File "/usr/lib64/python2.7/socket.py", line 476, in readline
      data = self._sock.recv(self._rbufsize)
      error: [Errno 104] Connection reset by peer
      

      This issue can be worked around by adding an entry in /etc/hosts:

      1. echo "127.0.0.1 static.redhat.com" >> /etc/hosts
        This allows convert2rhel to move on.
        Checking internet connectivity using address 'http://static.redhat.com/test/rhel-networkmanager.txt'.
        WARNING - There was a problem while trying to connect to 'http://static.redhat.com/test/rhel-networkmanag
        er.txt' to check internet connectivity. This could be due to the host being offline, or the network block
        ing access to the endpoint... Some checks and actions will be skipped.
        [03/20/2023 16:12:40] FILE - Failed to retrieve data from host, reason: [Errno 111] Connection refused

              Unassigned Unassigned
              rhel-process-autobot RHEL Jira bot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: