action #32632
closedWith caching enabled worker still requires /var/lib/openqa/share
0%
Description
When installing an openqa worker, it will still require the /var/lib/openqa/share directory created:
Mar 01 18:42:12 openqaworker12 worker[23687]: [info] CACHE: caching is enabled, setting up /var/lib/openqa/cache/e212.suse.de
Mar 01 18:42:12 openqaworker12 worker[23687]: [error] Ignoring host 'e212.suse.de': Working directory does not exist.
When creating the directory:
Mar 01 18:44:22 openqaworker12 worker[23920]: [info] CACHE: caching is enabled, setting up /var/lib/openqa/cache/e212.suse.de
Mar 01 18:44:22 openqaworker12 worker[23920]: [info] Project dir for host e212.suse.de is /var/lib/openqa/share
Mar 01 18:44:22 openqaworker12 worker[23920]: [info] registering worker openqaworker12 version 7 with openQA e212.suse.de using protocol version [1]
entrance level issue
Updated by SLindoMansilla over 6 years ago
- Status changed from New to In Progress
- Assignee set to SLindoMansilla
Updated by SLindoMansilla over 6 years ago
As spoken with mkittler, the directory is never created during runtime. So the directory should be installed with the package.
The directory is packaged in openQA-common with the directive %ghost; the package owns the directory but it doesn't create it.
Proposing to remove the %ghost directive: SR https://build.opensuse.org/request/show/616093
Updated by coolo over 6 years ago
See https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html on how to do it properly
Updated by SLindoMansilla over 6 years ago
- Status changed from In Progress to Feedback
PR, using tmpfiles.d: https://github.com/os-autoinst/openQA/pull/1689
Updated by SLindoMansilla over 6 years ago
PR merged, waiting for verification from devel:openQA
Updated by SLindoMansilla over 6 years ago
- Status changed from Feedback to Resolved
Verified on docker container.
Updated by coolo over 6 years ago
For the record: the worker doesn't need the /share dir, but isotovideo needs for all these tests:
coolo@cleopatra#os-autoinst-distri-opensuse>git grep /assets/
tests/boot/boot_from_pxe.pm: my $repo = $openqa_url . "/assets/repo/${image_name}";
tests/console/docker_image.pm: my $image_url = autoinst_url("/assets/other/$image_filename");
tests/kernel/install_ltp.pm: $ar_url = "http://openqa.suse.de/assets/repo/$we_repo";
tests/support_server/setup.pm: zypper_call('ar http://openqa.suse.de/assets/repo/SLE-12-SP3-SERVER-POOL-x86_64-Media1-CURRENT/ sles12sp3dvd1_repo');
tests/virt_autotest/virt_utils.pm: my $newrepo = "http://openqa.suse.de/assets/repo/" . get_var("REPO_0");
tests/virt_autotest/virt_utils.pm: my $daily_build_module = "http://openqa.suse.de/assets/repo/SLE-${version}-Module-\\2-POOL-x86_64-Build" . get_required_var('BUILD') . "-Media1/";
tests/virt_autotest/virt_utils.pm: . "http://openqa.suse.de/assets/repo/SLE-${version}-Module-\\1-POOL-x86_64-Build"
These assets aren't cached but rely on NFS.
Updated by okurz about 6 years ago
- Related to action #42182: openQA-worker package doesn't ship necessary folder (/var/lib/openqa/share) added