Created attachment 1239329 [details] The error abrt caught Description of problem: When add a host to ovirt, there is a python error: __init__.py:925:_open:IOError: [Errno 13] Permission denied: '/var/log/ovirt-imageio-daemon/daemon.log' Version-Release number of selected component (if applicable): RHV host: vdsm-4.19.1-1.el7ev.x86_64 libvirt-2.5.0-1.virtcov.el7.x86_64 ovirt-imageio-daemon-0.5.0-0.el7ev RHEVM: ovirt-engine-4.1.0-0.3.beta2.el7.noarch How reproducible: 100% Steps to Reproduce: 1. Install abrt-cli in rhv-host. Create a datacenter and cluster, add a host. Then check python error: # abrt-cli ls id 688e64d3033f6869cf8db65b43c67b629db31a09 reason: __init__.py:925:_open:IOError: [Errno 13] Permission denied: '/var/log/ovirt-imageio-daemon/daemon.log' time: Wed 11 Jan 2017 01:05:04 AM EST cmdline: /usr/bin/python /usr/bin/ovirt-imageio-daemon package: ovirt-imageio-daemon-0.5.0-0.el7ev uid: 36 (vdsm) count: 1 Directory: /var/spool/abrt/Python-2017-01-11-01:05:04-1865 Run 'abrt-cli report /var/spool/abrt/Python-2017-01-11-01:05:04-1865' for creating a case in Red Hat Customer Portal The backtrace: __init__.py:925:_open:IOError: [Errno 13] Permission denied: '/var/log/ovirt-imageio-daemon/daemon.log' Traceback (most recent call last): File "/usr/bin/ovirt-imageio-daemon", line 14, in <module> server.main(sys.argv) File "/usr/lib/python2.7/site-packages/ovirt_imageio_daemon/server.py", line 50, in main configure_logger() File "/usr/lib/python2.7/site-packages/ovirt_imageio_daemon/server.py", line 68, in configure_logger logging.config.fileConfig(conf, disable_existing_loggers=False) File "/usr/lib64/python2.7/logging/config.py", line 78, in fileConfig handlers = _install_handlers(cp, formatters) File "/usr/lib64/python2.7/logging/config.py", line 156, in _install_handlers h = klass(*args) File "/usr/lib64/python2.7/logging/handlers.py", line 117, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.7/logging/handlers.py", line 64, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.7/logging/__init__.py", line 902, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib64/python2.7/logging/__init__.py", line 925, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/ovirt-imageio-daemon/daemon.log' Local variables in innermost frame: self: <logging.handlers.RotatingFileHandler object at 0x13f4a90> Actual results: As above Expected results: No python error Additional info: I remember that there is a similar error when adding RHEL7.3 host to Ovirt4.0. But I don't have env now. Pls check if there is the same error in RHEL7.3 and Ovirt4.0.
Hi Han Han, A few questions for further investigation of the issue: * What are the exact steps that the test is performing to install the host? * Can you please check the owner and group of the log file (/var/log/ovirt-imageio-daemon/daemon.log) @Nir - are you familiar with this issue perhaps?
The first question: First of all, prepare a ovirt4.1.beta server.Then install a host with RHEL7.4. and prepare vdsm repo on it. Prepare abrt environment: # yum install abrt-cli -y # vim /etc/abrt/abrt-action-save-package-data.conf OpenGPGCheck = no # systemctl restart abrtd And do following steps on ovirt: 1. Create a datacenter with default options. 2. Create a cluster for the datacenter with these options: CPU Architecture: x86_64; CPU Type: Intel Conroe Family or AMD Opteron G1(decided by your RHV-host CPU vendor); other options by default 3. Add a host for the cluster, filled with name, address, password, waiting the host up in Ovirt At last, check it by abrt # abrt-cli ls id 688e64d3033f6869cf8db65b43c67b629db31a09 reason: __init__.py:925:_open:IOError: [Errno 13] Permission denied: '/var/log/ovirt-imageio-daemon/daemon.log' time: Wed 11 Jan 2017 01:05:04 AM EST cmdline: /usr/bin/python /usr/bin/ovirt-imageio-daemon package: ovirt-imageio-daemon-0.5.0-0.el7ev uid: 36 (vdsm) count: 1 Directory: /var/spool/abrt/Python-2017-01-11-01:05:04-1865 Run 'abrt-cli report /var/spool/abrt/Python-2017-01-11-01:05:04-1865' for creating a case in Red Hat Customer Portal The Autoreporting feature is disabled. Please consider enabling it by issuing 'abrt-auto-reporting enabled' as a user with root privileges Go to the Directory and check backtrace or other info. The second question: Unluckily, there is no file in the dir /var/log/ovirt-imageio-daemon/: # ls -alZ /var/log/ovirt-imageio-daemon/daemon.log ls: cannot access /var/log/ovirt-imageio-daemon/daemon.log: No such file or directory # ls -alZ /var/log/ovirt-imageio-daemon/ drwxr-xr-x. root kvm system_u:object_r:var_log_t:s0 . drwxr-xr-x. root root system_u:object_r:var_log_t:s0 ..
(In reply to Han Han from comment #2) > The first question: > First of all, prepare a ovirt4.1.beta server.Then install a host with > RHEL7.4. and prepare vdsm repo on it. > Prepare abrt environment: > # yum install abrt-cli -y > # vim /etc/abrt/abrt-action-save-package-data.conf > OpenGPGCheck = no > # systemctl restart abrtd > > And do following steps on ovirt: > 1. Create a datacenter with default options. > 2. Create a cluster for the datacenter with these options: CPU Architecture: > x86_64; CPU Type: Intel Conroe Family or AMD Opteron G1(decided by your > RHV-host CPU vendor); other options by default > 3. Add a host for the cluster, filled with name, address, password, waiting > the host up in Ovirt > At last, check it by abrt > # abrt-cli ls > id 688e64d3033f6869cf8db65b43c67b629db31a09 > reason: __init__.py:925:_open:IOError: [Errno 13] Permission denied: > '/var/log/ovirt-imageio-daemon/daemon.log' > time: Wed 11 Jan 2017 01:05:04 AM EST > cmdline: /usr/bin/python /usr/bin/ovirt-imageio-daemon > package: ovirt-imageio-daemon-0.5.0-0.el7ev > uid: 36 (vdsm) > count: 1 > Directory: /var/spool/abrt/Python-2017-01-11-01:05:04-1865 > Run 'abrt-cli report /var/spool/abrt/Python-2017-01-11-01:05:04-1865' for > creating a case in Red Hat Customer Portal > > The Autoreporting feature is disabled. Please consider enabling it by issuing > 'abrt-auto-reporting enabled' as a user with root privileges > > Go to the Directory and check backtrace or other info. > > > > The second question: > Unluckily, there is no file in the dir /var/log/ovirt-imageio-daemon/: > # ls -alZ /var/log/ovirt-imageio-daemon/daemon.log > ls: cannot access /var/log/ovirt-imageio-daemon/daemon.log: No such file or > directory @Nir - are you familiar with this issue perhaps? in which step the daemon.log file should be created? > # ls -alZ /var/log/ovirt-imageio-daemon/ > drwxr-xr-x. root kvm system_u:object_r:var_log_t:s0 . > drwxr-xr-x. root root system_u:object_r:var_log_t:s0 ..
Duplicate of bug 1401901?
(In reply to Nir Soffer from comment #5) > Duplicate of bug 1401901? Seems so. Nir/Daniel - please verify this and close as a duplicate (or, conclude that this is not true and actually fix it, of course :-))
Indeed similar to bug 1401901. Moving to MODIFIED for verification.
4.0.6 has been the last oVirt 4.0 release, please re-target this bug.
Verified on ovirt-engine-4.1.0.3-0.1.el7 Install abrt-cli and enable it on host and add it to the system - works fine with no errors when executing $ abrt-cli