]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[kea-packaging#48] Hammer: Do not reset-failed kea-ctrl-agent because it no longer... v2_6 Kea-2.6.4
authorAndrei Pavel <andrei@isc.org>
Tue, 15 Jul 2025 08:54:56 +0000 (11:54 +0300)
committerAndrei Pavel <andrei@isc.org>
Tue, 15 Jul 2025 09:29:48 +0000 (12:29 +0300)
hammer.py

index da8dcda16ed89b9eb7980b3cc646defd8621c859..773bce471f51ec57181877d4cea62ba3306ecf37 100755 (executable)
--- a/hammer.py
+++ b/hammer.py
@@ -2330,12 +2330,6 @@ def _build_rpm(system, revision, features, tarball_path, env, check_times, dry_r
         execute('rpm -qa | grep isc-kea | xargs sudo rpm -e', check_times=check_times, dry_run=dry_run, raise_error=False)
         execute(f'sudo rpm -i {rpm_root_path}/RPMS/{arch.strip()}/*rpm', check_times=check_times, dry_run=dry_run)
 
-        # Wait for systemd's rate limit period to pass to avoid "Start request repeated too quickly" after the failed
-        # implicit start from the installation of isc-kea-ctrl-agent above.
-        time.sleep(10)
-        # Reset systemd's rate limit period. Redundant, but just to be safe.
-        execute('sudo systemctl reset-failed kea-ctrl-agent.service', raise_error=False)
-
         _check_installed_rpm_or_debs(
             ['kea-ctrl-agent.service'],
             "Expected a file at path '/etc/kea/kea-api-password'",
@@ -2415,12 +2409,6 @@ def _build_deb(system, revision, features, tarball_path, env, check_times, dry_r
         # install packages
         execute('sudo dpkg -i kea-src/*deb', check_times=check_times, dry_run=dry_run)
 
-        # Wait for systemd's rate limit period to pass to avoid "Start request repeated too quickly" after the failed
-        # implicit start from the installation of isc-kea-ctrl-agent above.
-        time.sleep(10)
-        # Reset systemd's rate limit period. Redundant, but just to be safe.
-        execute('sudo systemctl reset-failed isc-kea-ctrl-agent.service')
-
         _check_installed_rpm_or_debs(
             ['isc-kea-ctrl-agent.service'],
             "Expected a file at path '/etc/kea/kea-api-password'",