You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2025/05/13 20:39:57 UTC
(airflow) branch v3-0-test updated: Clean-up /mnt disk in case it is not empty (#50549)
This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new 7b6eaac20f3 Clean-up /mnt disk in case it is not empty (#50549)
7b6eaac20f3 is described below
commit 7b6eaac20f37fef9702362c9c371bd36432aacd9
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Tue May 13 18:33:11 2025 +0200
Clean-up /mnt disk in case it is not empty (#50549)
Recently some of our jobs started to get runners with completely
filled /mnt volume and failed on "no space left on device".
We opened a support ticket to GitHub but as a mitigation we attempt
to clean-up the volume and see if the space is freed.
(cherry picked from commit 4f30ab3be54cc98e075258ffa3d8287cb5b4da4b)
---
scripts/ci/cleanup_docker.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/ci/cleanup_docker.sh b/scripts/ci/cleanup_docker.sh
index 3327145c8f0..13b7fc9898a 100755
--- a/scripts/ci/cleanup_docker.sh
+++ b/scripts/ci/cleanup_docker.sh
@@ -21,6 +21,10 @@ function cleanup_docker {
local target_docker_volume_location="/mnt/var-lib-docker"
echo "Checking free space!"
df -H
+ echo "Cleaning /mnt just in case it is not empty"
+ sudo rm -rf /mnt/*
+ echo "Checking free space!"
+ df -H
echo "Making sure that /mnt is writeable"
sudo chown -R "${USER}" /mnt
# This is faster than docker prune
@@ -31,6 +35,7 @@ function cleanup_docker {
sudo mkdir -p "${target_docker_volume_location}" /var/lib/docker
sudo mount --bind "${target_docker_volume_location}" /var/lib/docker
sudo chown -R 0:0 "${target_docker_volume_location}"
+
sudo systemctl start docker
}