Systems that connect to the Internet using an HTTP proxy server cannot convert using Red Hat CDN or Satellite through RHSM. To work around this problem, enable HTTP proxy for yum and then configure the HTTP proxy for RHSM:
Configure yum to use an HTTP proxy as described in How to enable Proxy settings for Yum Command on RHEL?
For Oracle Linux conversions, define and enable repositories pointing to the following URLs:
Oracle Linux 7: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/os/
Oracle Linux 8: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/
Install the subscription-manager package.
Configure HTTP proxy for RHSM as described in How to configure HTTP Proxy for Red Hat Subscription Management.
Prevent the configuration file from being deleted during the conversion:
chattr +i /etc/rhsm/rhsm.conf
Perform the conversion to RHEL.
(BZ#1965487)
Description of problem:
We are release locked to 8.3, we have updated to the latest Centos Kernel (4.18.0-240.22.1.el8_3.x86_64). The customer is using satellite and we have triple checked on another RHEL 8 machine registered the same way, that 8.3 AppStream and 8.3 BaseOS are sync'd and available. and we can see that the RHEL kernel*-4.18.0-240.22.1.el8_3.x86_64 is available and provides the same modules.
# sed -i 's|releasever=8|releasever=8.3|' /usr/share/convert2rhel/configs/centos-8-x86_64.cfg
Customer has a proxy but configures it in the env as http_proxy and https_proxy as well as in /etc/yum.conf.
Version-Release number of selected component (if applicable):
convert2rhel-0.21-1.el7.noarch
Steps to Reproduce:
1. proxy configured with
# export http_proxy=X.X.X.X
# export https_proxy=X.X.X.X
# echo "proxy=X.X.X.X" >> /etc/yum.conf
2. workaround for 8.3 Centos:
# sed -i 's|releasever=8|releasever=8.3|' /usr/share/convert2rhel/configs/centos-8-x86_64.cfg
3. convert2rhel --debug --org="Richemont_International_SA" --activationkey $activationkey
Actual results:
CRITICAL - The following kernel modules are not supported in RHEL:
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/net/netfilter/xt_TRACE.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/input/rmi4/rmi_spi.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/sound/drivers/mpu401/snd-mpu401.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/media/usb/gspca/gspca_mr97310a.ko.xz
...
...<listed for every kernel module>
Expected results:
convert2rhel should allow for proxies in the environment. perhaps a --proxy option
An error message related to the connectivity to the repository or something more clear the issue is not related to kernel modules, but with the repository connection.
Additional info:
Hi John, thanks for the report. Using proxy is currently not easily possible with Convert2RHEL. I admit the error talking about kernel modules is confusing. We've improved it in upstream (https://github.com/oamg/convert2rhel/pull/285) and it will be part of the next release.
A workaround:
1. Configure /etc/yum.conf to make yum use a proxy per https://access.redhat.com/solutions/4200391
2. Install subscription-manager
- on CentOS Linux 7 and 8, subscription-manager is available in the standard repos, so just run `yum install subscription-manager`
- on CentOS Linux 6, enable the contrib repo: `yum install --enablerepo contrib subscription-manager`
- on Oracle Linux, add the following repositories first: https://github.com/oamg/convert2rhel/blob/v0.21/convert2rhel/subscription.py#L34
3. Edit the proxy settings in /etc/rhsm/rhsm.conf per https://access.redhat.com/solutions/57669
4. Run `chattr +i /etc/rhsm/rhsm.conf` to make it undeletable (convert2rhel is re-installing any installed subscription-manager and the config file would be removed)
5. Run convert2rhel
Description of problem: We are release locked to 8.3, we have updated to the latest Centos Kernel (4.18.0-240.22.1.el8_3.x86_64). The customer is using satellite and we have triple checked on another RHEL 8 machine registered the same way, that 8.3 AppStream and 8.3 BaseOS are sync'd and available. and we can see that the RHEL kernel*-4.18.0-240.22.1.el8_3.x86_64 is available and provides the same modules. # sed -i 's|releasever=8|releasever=8.3|' /usr/share/convert2rhel/configs/centos-8-x86_64.cfg Customer has a proxy but configures it in the env as http_proxy and https_proxy as well as in /etc/yum.conf. Version-Release number of selected component (if applicable): convert2rhel-0.21-1.el7.noarch Steps to Reproduce: 1. proxy configured with # export http_proxy=X.X.X.X # export https_proxy=X.X.X.X # echo "proxy=X.X.X.X" >> /etc/yum.conf 2. workaround for 8.3 Centos: # sed -i 's|releasever=8|releasever=8.3|' /usr/share/convert2rhel/configs/centos-8-x86_64.cfg 3. convert2rhel --debug --org="Richemont_International_SA" --activationkey $activationkey Actual results: CRITICAL - The following kernel modules are not supported in RHEL: /lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/net/netfilter/xt_TRACE.ko.xz /lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/input/rmi4/rmi_spi.ko.xz /lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/sound/drivers/mpu401/snd-mpu401.ko.xz /lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/media/usb/gspca/gspca_mr97310a.ko.xz ... ...<listed for every kernel module> Expected results: convert2rhel should allow for proxies in the environment. perhaps a --proxy option An error message related to the connectivity to the repository or something more clear the issue is not related to kernel modules, but with the repository connection. Additional info: