ironic/releasenotes/notes/file-symlink-b65bd6b407bd1683.yaml
Dmitry Tantsur 0b3ed093ea
Don't create a hardlink to a symlink when handling file:// URLs
While os.link is supposed to follow symlinks, it's actually broken [1]
on Linux. As a result, Ironic may end up creating a hard link to
a symlink. If the symlink is relative, chances are high accessing the
resulting file will cause a FileNotFoundError.

[1] https://github.com/python/cpython/issues/81793

Change-Id: Ic52f0ddb0c94410dd854ee525e3c57b2e78ea84d
2024-01-18 16:49:39 +01:00

7 lines
235 B
YAML

---
fixes:
- |
Fixes the behavior of ``file:///`` image URLs pointing at a symlink.
Ironic no longer creates a hard link to the symlink, which could cause
confusing FileNotFoundError to happen if the symlink is relative.