Description of problem: OSError: [Errno 30] Read-only file system: '/var/cache/rhn' when executing cron job 'python /usr/share/rhn/virtualization/poller.pyc'. Version-Release number of selected component (if applicable): rhev-hypervisor6-6.6-20150112.0 ovirt-node-3.1.0-0.42.20150109gitd06b7c5.el6.noarch How reproducible: 100% Steps to Reproduce: 1. [root@dhcp-9-150 admin]# cat /etc/cron.d/rhn-virtualization.cron 0-59/2 * * * * root python /usr/share/rhn/virtualization/poller.pyc 2. [root@dhcp-9-150 admin]# python /usr/share/rhn/virtualization/poller.pyc Traceback (most recent call last): File "/usr/share/rhn/virtualization/poller.py", line 327, in <module> File "/usr/share/rhn/virtualization/poller_state_cache.py", line 72, in save File "/usr/share/rhn/virtualization/poller_state_cache.py", line 165, in _save_state File "/usr/lib64/python2.6/os.py", line 157, in makedirs OSError: [Errno 30] Read-only file system: '/var/cache/rhn' Actual results: After step2,OSError: [Errno 30] Read-only file system: '/var/cache/rhn' when executing cron job 'python /usr/share/rhn/virtualization/poller.pyc'. Expected results: No error was happen when executing cron job 'python /usr/share/rhn/virtualization/poller.pyc'. Additional info:
I am not sure about the functional impact, at worst this can break any RHN usage.
Test version: rhev-hypervisor6-6.6-20150119.0.1.iso ovirt-node-3.2.1-5.el6.noarch Test steps: 1. [root@dhcp-66-73-174 log]# cat /etc/cron.d/rhn-virtualization.cron 0-59/2 * * * * root python /usr/share/rhn/virtualization/poller.pyc 2. [root@dhcp-66-73-174 log]# python /usr/share/rhn/virtualization/poller.pyc Traceback (most recent call last): File "/usr/share/rhn/virtualization/poller.py", line 327, in <module> File "/usr/share/rhn/virtualization/poller_state_cache.py", line 72, in save File "/usr/share/rhn/virtualization/poller_state_cache.py", line 165, in _save_state File "/usr/lib64/python2.6/os.py", line 157, in makedirs OSError: [Errno 30] Read-only file system: '/var/cache/rhn' [root@dhcp-66-73-174 log]# so this bug wasn't fixed, change the status into "assigned".
The directory was created at runtime, and that failed. Now we create the dir at build time.
This was actually already included in a build, because we respun RHEV-H, thus moving back to 3.5.0.
Test version: rhev-hypervisor6-6.6-20150123.2.iso ovirt-node-3.2.1-6.el6.noarch Test steps: [root@dhcp-66-73-174 admin]# cat /etc/cron.d/rhn-virtualization.cron 0-59/2 * * * * root python /usr/share/rhn/virtualization/poller.pyc [root@dhcp-66-73-174 admin]# python /usr/share/rhn/virtualization/poller.pyc [root@dhcp-66-73-174 admin]# echo $? 0 Test result: No error was happen when executing cron job 'python /usr/share/rhn/virtualization/poller.pyc'. so this bug has been fixed, changed the status into "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/RHEA-2015-0160.html