Bug 702044
Summary: | Can't attach iso from readonly filesystem to VM because it can't be chowned | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | David Jaša <djasa> | |
Component: | libvirt | Assignee: | Laine Stump <laine> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 6.2 | CC: | dallan, dyuan, mzhan, riek, rwu, sreichar, weizhan, yury, zpeng | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | libvirt-0.9.2-1.el6 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 862756 1012085 (view as bug list) | Environment: | ||
Last Closed: | 2011-12-06 11:06:34 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 862756 |
Description
David Jaša
2011-05-04 15:53:26 UTC
Nepřípustný argument == EINVAL The error comes (as you'd guess) from chown(2). But the manpage for chown doesn't mention the possibility of returning EINVAL. virSecurityDACSetOwnership already special cases EOPNOTSUPP, EPERM, and EROFS to ignore them. Would it be acceptable in all cases to just ignore EINVAL as well? *** Bug 709454 has been marked as a duplicate of this bug. *** The following fix has been pushed to upstream libvirt, and will be in the next rebase for RHEL6: commit 62ed801c13787cc844e75db7cd2d4c8a42454fcc Author: Laine Stump <laine> Date: Fri Jun 3 11:59:09 2011 -0400 security driver: ignore EINVAL when chowning an image file This fixes: https://bugzilla.redhat.com/show_bug.cgi?id=702044 https://bugzilla.redhat.com/show_bug.cgi?id=709454 Both of these complain of a failure to use an image file that resides on a read-only NFS volume. The function in the DAC security driver that chowns image files to the qemu user:group before using them already has special cases to ignore failure of chown on read-only file systems, and in a few other cases, but it hadn't been checking for EINVAL, which is what is returned if the qemu user doesn't even exist on the NFS server. Since the explanation of EINVAL in the chown man page almost exactly matches the log message already present for the case of EOPNOTSUPP, I've just added EINVAL to that same conditional. The question in Comment 1 was already answered in IRC (the answer was "yes"). This should be fixed by the libvirt-0.9.2-1.el6 rebase Set it as VERIFIED per comment9 *** Bug 712170 has been marked as a duplicate of this bug. *** Perfect, thanks! 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. http://rhn.redhat.com/errata/RHBA-2011-1513.html |