From c709b46b9b45ce567750f65575df11a946ef4215 Mon Sep 17 00:00:00 2001 From: Vladimir Nadvornik Date: Fri, 3 Oct 2025 13:43:35 +0200 Subject: [PATCH] Fix calling of squid -z in mgrpxy cache clear (bsc#1247644) --- mgrpxy/cmd/cache/kubernetes.go | 4 ---- mgrpxy/cmd/cache/podman.go | 4 ---- uyuni-tools.changes.nadvornik.cache_fix | 1 + 3 files changed, 1 insertion(+), 8 deletions(-) create mode 100644 uyuni-tools.changes.nadvornik.cache_fix diff --git a/mgrpxy/cmd/cache/kubernetes.go b/mgrpxy/cmd/cache/kubernetes.go index bcf1678415d..d421b4dcb00 100644 --- a/mgrpxy/cmd/cache/kubernetes.go +++ b/mgrpxy/cmd/cache/kubernetes.go @@ -29,9 +29,5 @@ func kubernetesCacheClear( return utils.Errorf(err, L("failed to remove cached data")) } - if _, err := cnx.Exec("squid", "-z", "--foreground"); err != nil { - return utils.Errorf(err, L("failed to re-create the cache directories")) - } - return kubernetes.Restart(namespace, kubernetes.ProxyApp) } diff --git a/mgrpxy/cmd/cache/podman.go b/mgrpxy/cmd/cache/podman.go index 3070aedc7e9..283560ab742 100644 --- a/mgrpxy/cmd/cache/podman.go +++ b/mgrpxy/cmd/cache/podman.go @@ -27,9 +27,5 @@ func podmanCacheClear( return utils.Errorf(err, L("failed to remove cached data")) } - if _, err := cnx.Exec("sh", "-c", "squid -z --foreground"); err != nil { - return utils.Errorf(err, L("failed to re-create the cache directories")) - } - return systemd.RestartService(podman.ProxyService) } diff --git a/uyuni-tools.changes.nadvornik.cache_fix b/uyuni-tools.changes.nadvornik.cache_fix new file mode 100644 index 00000000000..5e6d3ebee6a --- /dev/null +++ b/uyuni-tools.changes.nadvornik.cache_fix @@ -0,0 +1 @@ +- Fix calling of squid -z in mgrpxy cache clear (bsc#1247644)