RHEL 7.9无法通过subscription-manager完成订阅注册问题求助
RHEL 7.9无法通过subscription-manager完成订阅注册问题求助
大家好,我这边碰到个棘手的问题想请教各位:
我们团队已经用Red Hat免费开发者订阅好几年了,一直都没出过岔子,但最近测试用的虚拟机突然弹出错误,提示系统因为没有有效订阅而无法获取更新。
我按照常规流程执行了订阅刷新的命令,确认Red Hat账户的登录信息都是正确的,而且在Red Hat门户里看到当前账户下已经注册了8台虚拟机,完全在免费订阅的限额内。但执行注册命令时还是报错:Unable to find available subscriptions for all your installed products.,导致订阅注册失败。
这台测试机的系统是RHEL 7.9,因为我们的生产环境目前还在用这个版本,所以一直保留着它进行测试。想请问各位大佬,这个订阅问题的可能原因是什么?有没有什么排查方向或者解决建议?
以下是命令执行的完整输出:
[root@hostname logs]# subscription-manager clean All local data removed [root@hostname logs]# subscription-manager register --auto-attach Registering to: subscription.rhsm.redhat.com:443/subscription Username: my.name@my.company.com Password: The system has been registered with ID: 2xxxxxx0-fxxx-4xxx-axxx-7xxxxxxxxxxc The registered system name is: hostname.local.example.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Unable to find available subscriptions for all your installed products. [root@hostname logs]# hostnamectl Static hostname: hostname.local.example.com Icon name: computer-vm Chassis: vm Machine ID: 9xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd Boot ID: 6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0 Virtualization: kvm Operating System: Red Hat Enterprise Linux CPE OS Name: cpe:/o:redhat:enterprise_linux:7.9:GA:server Kernel: Linux 3.10.0-1160.81.1.el7.x86_64 Architecture: x86-64 [root@hostname logs]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.9 (Maipo)
我自己初步想到的排查方向,也请各位帮忙看看有没有遗漏:
- 会不会是RHEL 7.9的订阅权限在免费开发者订阅里有变化?不过印象里Red Hat开发者订阅应该支持RHEL 7的维护版本才对。
- 有没有可能账户里的订阅已经被其他机器占满了?但门户显示只有8台,远低于免费订阅的限额(记得是最多16台?)。
- 是否是
--auto-attach参数的问题?自动匹配订阅时没找到合适的,或许手动指定订阅池会有用?
如果各位有其他建议或者排查步骤,麻烦不吝赐教,谢谢大家!
备注:内容来源于stack exchange,提问作者James




