action #55373
closedWorker::Cache thinks no space is used when cache resides in symlinked folder pointing to other partition
Updated by okurz over 5 years ago
- Copied from action #53261: tests incomplete with "No space left on device" openqaworker-arm-2 ran out of space in uploading files in jobs -> cache takes 500G, should be only 50G? added
Updated by coolo over 5 years ago
- Priority changed from Normal to High
- Target version set to Ready
That's strange as the cache size is calculcated by the sum of things inside it - how it's structured shouldn't matter.
Updated by coolo about 5 years ago
- Priority changed from High to Normal
As the partitioning was changed, it's no longer high prio
Updated by mkittler about 5 years ago
- Assignee set to mkittler
- Target version changed from Ready to Current Sprint
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
)
Updated by mkittler about 5 years ago
- Status changed from New to In Progress
Updated by okurz about 5 years ago
- Status changed from In Progress to Resolved
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 :)
Updated by kraih almost 5 years ago
- Status changed from Resolved to In Progress
- Assignee changed from mkittler to kraih
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.
Updated by kraih almost 5 years ago
- Status changed from In Progress to Feedback
Opened a PR with a solution. https://github.com/os-autoinst/openQA/pull/2658
Updated by kraih almost 5 years ago
- Status changed from In Progress to Feedback
Updated by okurz almost 5 years ago
- Status changed from Feedback to Resolved
- Target version changed from Current Sprint to Done
PR was merged 12 days ago. This is life on both o3 and osd and there were no reports from other users, assuming Resolved.