Bug 870139
Summary: | 3.2 - No proper log when vdsm service fails to initialize due to permission error on logger (vdsm.log) | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | vvyazmin <vvyazmin> |
Component: | vdsm | Assignee: | Yaniv Bronhaim <ybronhei> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Leonid Natapov <lnatapov> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.2.0 | CC: | bazulay, cpelland, danken, dyasny, hateya, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul |
Target Milestone: | --- | Keywords: | EasyFix |
Target Release: | 3.2.0 | ||
Hardware: | x86_64 | ||
OS: | All | ||
Whiteboard: | infra | ||
Fixed In Version: | vdsm-4.10.2-3 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | Bug | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 915537 |
Description
vvyazmin@redhat.com
2012-10-25 15:56:30 UTC
My fix for that: http://gerrit.ovirt.org/#/c/9118 - it adds verification for the log file permissions before starting vdsm service. Some bugs with my solution: It doesn't verify the mode of the file and selinux permissions. Danken suggested another solution that raises another bug issue in coreutils (https://bugzilla.redhat.com/show_bug.cgi?id=879215). We are still trying to find alternative or a fix for that coreutil bug. Alternative like checking the permissions via vdsm process (and not by vdsmd script) won't help because the user can't receive reports about the failure without using log file (we can report to another log file though, but I don't know which), I prefer to stick with danken suggestion until the coreutil issue will be solved. About the alternative in the last paragraph... Could we log it to the syslog using: http://docs.python.org/2/library/syslog.html Still no news from https://bugzilla.redhat.com/show_bug.cgi?id=879215 So I posted http://gerrit.ovirt.org/#/c/9700/ (notice that by default assert message is being reported to syslog) And after fixing the su bug we'll add - http://gerrit.ovirt.org/#/c/9118/ Mar 5 16:37:22 cheetah01 respawn: slave '/usr/share/vdsm/vdsm' died too quickly, respawning slave Mar 5 16:37:22 cheetah01 python: error in accessing vdsm log file 3.2 has been released 3.2 has been released 3.2 has been released 3.2 has been released |