Bug 570271
Summary: | Restart of a storage pool on root-squashed NFS share fails | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Laine Stump <laine> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED DEFERRED | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | unspecified | CC: | crobinso, cwei, dyuan, hbrock, jferlan, libvirt-maint, mkletzan, mzhan, tools-bugs, xen-maint, yoyzhang |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-04-10 15:29:00 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: | 628871 |
Description
Laine Stump
2010-03-03 17:46:53 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. More details: When a pool is started,the "refresh" callback is called. In the case of directory pools, this goes to virStorageBackendFileSystemRefresh(), which first opens the directory itself and reads each entry (this could fail if the directory is not readable by root), and then for each existing file in the directory, calls virStorageBackendProbeTarget(), which will open the file, fstat it, and lseek to the end, among other things - of course these also could fail if the storage volume file isn't readable by root (which it probably shouldn't be). Because the operations on the directories / files involve more than just reading from or writing to the file, the solution will be a bit involved. *** Bug 612343 has been marked as a duplicate of this bug. *** With the recent addition of virFileOpenAs(), the solution to this problem should be more straightforward. *** Bug 612346 has been marked as a duplicate of this bug. *** There's qemuOpenFile that could be used for this if you're using qemu connection, we just need to make that available in the storage driver, maybe similarly to xmlopt during domain parsing... I see OpenAs calls in src/storage/storage_driver.c nowadays, but no idea if it affects this bug without digging deeper. Anyone with a root-squash NFS setup can confirm this is still valid? (In reply to Cole Robinson from comment #12) > I see OpenAs calls in src/storage/storage_driver.c nowadays, but no idea if > it affects this bug without digging deeper. Anyone with a root-squash NFS > setup can confirm this is still valid? Setting NEEDINFO No response, so closing. If anyone can still reproduce and is affected by these, please reopen |