Actions
action #55373
closedWorker::Cache thinks no space is used when cache resides in symlinked folder pointing to other partition
Actions
Added by okurz over 5 years ago. Updated almost 5 years ago.
That's strange as the cache size is calculcated by the sum of things inside it - how it's structured shouldn't matter.
As the partitioning was changed, it's no longer high prio
I've just looked at the code and it uses Mojo::File::list_tree
which apparently doesn't work with symlinks, e.g. I've just tried the following:
print(path('/hdd/openqa-devel/openqa/share/tests/opensuse')->list_tree->size);
31445
print(path('/hdd/openqa-devel/openqa/share/tests/sle')->list_tree->size);
0
(sle
is a symlink to opensuse
)
It's merged and deployed also to OSD. We do not use symlinks in our cache setup due to this ticket and I doubt it's worth the effort to change production setup back to crosscheck. I trust your testing :)
While working on #46742 i noticed that this fix only partially works. A symlinked cache directory currently causes all existing files to be purged from the cache with every new download. Think i know how to fix this though, so will prepare a PR.
Opened a PR with a solution. https://github.com/os-autoinst/openQA/pull/2658
PR was merged 12 days ago. This is life on both o3 and osd and there were no reports from other users, assuming Resolved.