Bug 1130024
Summary: | Can't see images on ISO domain via symlink | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Jiri Belka <jbelka> | ||||||
Component: | ovirt-engine-core | Assignee: | Greg Padgett <gpadgett> | ||||||
Status: | CLOSED WONTFIX | QA Contact: | Aharon Canan <acanan> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 3.5 | CC: | adahms, amureini, bugs, ecohen, jbelka, laravot, michal.skrivanek, rbalakri, stirabos, tnisan, yeylon, ylavi | ||||||
Target Milestone: | m1 | ||||||||
Target Release: | 3.6.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | storage | ||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-08-13 10:54:46 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Jiri Belka
2014-08-14 08:08:42 UTC
I've looked into the issue, the cause here is that on the iso domain there's one iso which is actually a symbolic link which causes us to fail when executing the stat. Moving this bug to infra to decide how to proceed with it, I also suggest to add further logging in the infra so that it'll be easier to inspect on what exactly we fail. [root@str-02 11111111-1111-1111-1111-111111111111]# stat ovirt-node-iso-3.5.0.ovirt35.20140805.0.el6.iso File: `ovirt-node-iso-3.5.0.ovirt35.20140805.0.el6.iso' -> `/home/httpd/repo-tlv-builds/ovirt-3.5-pre/iso/ovirt-node-iso-3.5.0.ovirt35.20140805.0.el6.iso' Size: 93 Blocks: 8 IO Block: 4096 symbolic link Device: 803h/2051d Inode: 6029494 Links: 1 Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2014-08-27 15:31:00.779344025 +0200 Modify: 2014-08-07 10:54:34.525343959 +0200 Change: 2014-08-07 10:54:34.525343959 +0200 after - mv ovirt-node-iso-3.5.0.ovirt35.20140805.0.el6.iso ovirt-node-iso-3.5.0.ovirt35.20140805.0.el6.isotmp it succeeds. (i'm not fixing anything on the verb assuming that "stat" failure is never expected). The behavior of what needs to be seen in iso domain is purly storage related. both in terms of behavior and in terms of code. Moving back to storage. Jiri, please try to reproduce it without ioprocess to see if that issue existed also before. Please ignore my last comment, I'll elaborate more here. The issue seems to be that the linked file doesn't exist, and that our stat call tries to reach to the linked file and not to return the stat of the link. Jiri, if you can please verify that on your env (as i don't have the exact scenario) and also let's verify that this was always the behavior. thanks, Liron. Created attachment 934091 [details]
engine.log & vdsm.log
Yes, the problem is symlink.
But in my case I can't get ISO list either symlink works or is broken and it points outside of the directory with ISOs.
If symlink works and it is in same directory as all ISOs, it works OK. If it does not again no ISO list.
(In reply to Jiri Belka from comment #0) [...] > Expected results: > list of images Depending on the symlink'd iso location, the link target is likely not even mounted on the host where the iso domain is mounted so some failure would be expected. We might be able to show all images that are stat-able, though the argument could be made that it's better to not silently ignore an error such as the domain containing an unreachable image. What do you think? I don't know what would be right solution but I was recently getting target of a symlink and I was told that this introduces race. So take it into account or close this BZ. ISO domain management requires being able to stat the files, which can't be done reliably on a symlink. The effort to change this behavior is not worth the reward or the risk. Closing this as WONTFIX Andrew, this limitation should probably be documented Hi Tal, Thank you for the needinfo request. Just to confirm - should we inform users to *not* use symlinks for ISO files, or should we document the behavior that symlinks will work, but only when the object they are pointing to actually exists? Kind regards, Andrew (In reply to Andrew Dahms from comment #12) > Hi Tal, > > Thank you for the needinfo request. > > Just to confirm - should we inform users to *not* use symlinks for ISO > files, or should we document the behavior that symlinks will work, but only > when the object they are pointing to actually exists? > > Kind regards, > > Andrew Hi Andrew, Not Tal, but I'll answer :) The former, no symlinks. Not only are they error-prone in this case (they work in a very few specific scenarios), but also we're not planning to manage symlink'd images from Image Upload and having them on the domain may cause unexpected failures. Thanks, Greg *** Bug 1280225 has been marked as a duplicate of this bug. *** |