Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
- Description of problem:
When using the latest version convert2rhel-1.1-1.el7, it will give the error when excute the convrt2rhel command which using the RHSM:
$ convert2rhel --username <username> --config-file <config_file_name> --pool <pool_ID>
Checking internet connectivity using address 'http://static.redhat.com/test/rhel-networkmanager.txt'.
[03/14/2023 14:03:45] 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 1128, in getresponse
response.begin()
File "/usr/lib64/python2.7/httplib.py", line 453, in begin
version, status, reason = self._read_status()
File "/usr/lib64/python2.7/httplib.py", line 409, 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
- Version-Release number of selected component (if applicable):
convert2rhel-1.1-1.el7
- How reproducible:
1. Follow the doc:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/converting_from_an_rpm-based_linux_distribution_to_rhel/index#proc_preparing-for-a-rhel-conversion_converting-from-a-linux-distribution-to-rhel
2. use Convert2RHEL with RHSM.
3. The testOS (Oracle linux/Centos) have the internet connection
4. convert2rhel --username <username> --config-file <config_file_name> --pool <pool_ID> --debug
Actual results:
- Give the error when checking the internet connectivity:
Checking internet connectivity using address 'http://static.redhat.com/test/rhel-networkmanager.txt'.
Expected results:
- Is the "http://static.redhat.com/test/rhel-networkmanager.txt" right?
Should not be the "https://static.redhat.com/test/rhel-networkmanager.txt" which is "https", not "http"?
Additional info:
- I check the src package of the convert2rhel-1.1-1, which change the _check_internet_access() function in systeminfo.py, and the variable CHECK_INTERNET_CONNECTION_ADDRESS is below:
36 CHECK_INTERNET_CONNECTION_ADDRESS = "http://static.redhat.com/test/rhel-networkmanager.txt"
Is the "http" setting as expect?