Closed steveb closed 2 months ago
Hi @steveb. Thanks for your PR.
I'm waiting for a metal3-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
/ok-to-test
/test metal3-centos-e2e-integration-test-main metal3-ubuntu-e2e-integration-test-main
[2024-08-27T07:15:52.536Z] dnf install -y dnsmasq dosfstools httpd httpd-tools inotify-tools ipcalc ipmitool iproute mod_ssl procps python3-jinja2 qemu-img sqlite syslinux-nonlinux util-linux xorriso
[2024-08-27T07:15:52.914Z] Last metadata expiration check: 0:02:06 ago on Tue Aug 27 07:13:46 2024.
[2024-08-27T07:15:52.914Z] No match for argument: inotify-tools
[2024-08-27T07:15:52.914Z] Error: Unable to find a match: inotify-tools
It doesn't seem to be able to install the package you added.
/hold please do not add inotify-tools to the list of packages, it comes from the epel repo (disabled by default by choice) and it's already installed here https://github.com/metal3-io/ironic-image/blob/main/prepare-image.sh#L81
Actually I'm going to go back to a polling approach, but fix the cpu churn issue, and also add some mitigation for partially written tar files
/test metal3-centos-e2e-integration-test-main metal3-ubuntu-e2e-integration-test-main
/retest
/approve /hold cancel
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: dtantsur
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Hi Steve, I was working on the same issue without seeing that you already work on it. In order to be sure that archive file is fully ready, I made use of the inotify close_write event. You can take a look at https://github.com/metal3-io/ironic-image/pull/548 regards,
https://github.com/metal3-io/ironic-image/pull/548 looks nice and clean. Seems like a good alternative to this change
/hold I'm holding this as concensus seems to be to use inotifywait anyways?
Closing my PR to make it clear which approach I think we should use :)
Currently runlogwatch.sh runs in a tight loop when there are no files, consuming CPU. Also there have been reports of truncated logs being outputted which would be explained by ironic not writing these files atomically [1]. This change improves this script by:
find
command which includes-mmin +0.1
so the file is only processed when it is at least 6 seconds old