Description of problem: During subscribe sku in rhevh, it will show "IOError: [Errno 30] Read-only file system: '/var/lib/rhsm/branded_name'" in the terminal Version-Release number of selected component (if applicable): subscription-manager-1.15.9-14.el7.x86_64 python-rhsm-1.15.4-5.el7.x86_64 vdsm-4.17.8-1.el7ev.noarch How reproducible: Always Steps to Reproduce: 1. Add rhev-hypervisor7-7.2-20151009.0 to rhevm-3.6.0 2. Register rhevh to satellite6.1.0 3. Subscribe sku in rhevh: [root@hp-z220-06 ~]# subscription-manager subscribe --pool=8a9330a650a23efa0150a2b3047001a9 Successfully attached a subscription for: Red Hat Enterprise Linux for Virtual Datacenters, Standard [Errno 30] Read-only file system: '/var/lib/rhsm/branded_name' [root@hp-z220-06 ~]# subscription-manager subscribe --pool=8a9330a650a23efa0150a2b3028e0103 --quantity=2 Successfully attached a subscription for: Red Hat Enterprise Linux Server, Premium (Physical or Virtual Nodes) [Errno 30] Read-only file system: '/var/lib/rhsm/branded_name' 4. Check the rhsm log: [root@hp-z220-06 ~]# tail -f /var/log/rhsm/rhsm.log Actual results: Although rhevh subscribe sku successfully, it show error info in the terminal. it also show IOError info in the log: 2015-10-27 07:56:48,954 [INFO] subscription-manager:18252 @entbranding.py:152 - No brand info file found (<BrandFile path=/var/lib/rhsm/branded_name>) 2015-10-27 07:56:48,954 [DEBUG] subscription-manager:18252 @entbranding.py:61 - Current branded name info, if any: None 2015-10-27 07:56:48,955 [DEBUG] subscription-manager:18252 @entbranding.py:62 - Fresh ent cert has branded product info: Red Hat Enterprise Linux 2015-10-27 07:56:48,955 [INFO] subscription-manager:18252 @rhelentbranding.py:43 - Updating product branding info for: Red Hat Enterprise Linux 2015-10-27 07:56:48,955 [ERROR] subscription-manager:18252 @managercli.py:160 - Unable to attach: [Errno 30] Read-only file system: '/var/lib/rhsm/branded_name' 2015-10-27 07:56:48,955 [ERROR] subscription-manager:18252 @managercli.py:161 - [Errno 30] Read-only file system: '/var/lib/rhsm/branded_name' Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/managercli.py", line 1545, in _do_command File "/usr/share/rhsm/subscription_manager/certlib.py", line 31, in update File "/usr/share/rhsm/subscription_manager/certlib.py", line 17, in run File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 43, in _do_update File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 149, in perform File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 169, in branding_hook File "/usr/share/rhsm/subscription_manager/entbranding.py", line 38, in install File "/usr/share/rhsm/subscription_manager/entbranding.py", line 65, in install File "/usr/share/rhsm/subscription_manager/rhelentbranding.py", line 44, in _install File "/usr/share/rhsm/subscription_manager/entbranding.py", line 125, in save File "/usr/share/rhsm/subscription_manager/entbranding.py", line 173, in write IOError: [Errno 30] Read-only file system: '/var/lib/rhsm/branded_name' Expected results: it shouldn't show any error info in the terminal and rhsm log when subscribe sku in rhevh Additional info:
Register rhevh to satellite6.1 with active key also has the same problem. However, it hasn't this problem if register rhevh with username and password [root@hp-z220-05 ~]# subscription-manager register --org="Default_Organization" --activationkey="testkey" The system has been registered with ID: 02e0f289-3c4c-4358-bcd7-f16134bba428 [Errno 30] Read-only file system: '/var/lib/rhsm/branded_name' [root@hp-z220-05 ~]# subscription-manager register --username=admin --password=admin Registering to: intel-waimeabay-hedt-01.ml3.eng.bos.redhat.com:443/rhsm The system has been registered with ID: 02420c25-cdd3-4997-97d6-0baed19f1d10
I have to reproduce this bug on rhev-hypervisor7-7.2-20151009.0 test Version-Release number of selected component (if applicable): rhev-hypervisor7-7.2-20151009.0 subscription-manager-1.15.9-14.el7.x86_64 python-rhsm-1.15.4-5.el7.x86_64 vdsm-4.17.8-1.el7ev.noarch Steps to Reproduce: 1. Add rhev-hypervisor7-7.2-20151009.0 to rhevm-3.6.0 2. Register rhevh to satellite6.1.0(need to register via commend line) 3. In rhevh command line: #vi /etc/hosts #add Satellite_sercer_ip:Satellite_sercer_hostname in the End #wget http://ip/xx/sam-virtwho/sam_ca/katello-server-ca.pem to /etc/rhsm/ca #vi /etc/rhsm/rhsm.conf #edit: hostname=Satellite hostname, profile=/rhsm, baseurl=https://hostname/pulp/repos, repo_ca_cert=%(ca_cert_dir)skatello-server-ca.pem 4.#subscription-manager register --username=xx --password=xx 5.#subscription-manager attach --pool=8a90c20exxxxxxxxxxxxxxxxxxx103 Successfully attached a subscription for: Red Hat Enterprise Linux Server, Premium (Physical or Virtual Nodes) [Errno 30] Read-only file system: '/var/lib/rhsm/branded_name' 6.Check the rhsm log:# tail -f /var/log/rhsm/rhsm.log
I can reproduce this bug on rhev-hypervisor7-7.2-20151009.0. Test version: subscription-manager-1.10.14-10.el7.x86_64 python-rhsm-1.13.2-1.el7.x86_64 vdsm-4.17.13-1.el7ev.noarch RHEV-H 7.2-20151210.1.el7ev ovirt-node-3.6.0-0.24.20151209gitc0fa931.el7ev.noarch Steps to Reproduce: 1. Add rhev-hypervisor7-7.2-20151009.0 to rhevm-3.6.0 2. Register rhevh to satellite6.1.0(need to register via commend line) 3. In rhevh command line: #vi /etc/hosts #add Satellite_sercer_ip:Satellite_sercer_hostname in the End #wget http://ip/xx/sam-virtwho/sam_ca/katello-server-ca.pem to /etc/rhsm/ca #vi /etc/rhsm/rhsm.conf #edit: hostname = Satellite hostname, profix = /rhsm, baseurl = https://hostname/pulp/repos, repo_ca_cert=%(ca_cert_dir)skatello-server-ca.pem 4.#subscription-manager register --username=xx --password=xx 5.#subscription-manager attach --pool=XX Test result: After step5,output info: Successfully attached a subscription for: Red Hat Enterprise Linux Server, Premium (Physical or Virtual Nodes) So the bug is fixed on ovirt-node-3.6.0-0.22.20151126git72acbb2.el7, change bug status to VERIFIED
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0378.html