mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-22 18:08:16 +00:00
[kea-packaging#48] Hammer: Do not reset-failed kea-ctrl-agent because it no longer starts after installation so it no longer fails either
This commit is contained in:
parent
c28ec9c260
commit
66cc4ef5b4
12
hammer.py
12
hammer.py
@ -2412,12 +2412,6 @@ def _build_rpm(system, revision, features, env, check_times, dry_run,
|
|||||||
raise_error=False)
|
raise_error=False)
|
||||||
execute(f'sudo rpm -i {rpm_root_path}/RPMS/{arch.strip()}/*rpm', check_times=check_times, dry_run=dry_run)
|
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(
|
_check_installed_rpm_or_debs(
|
||||||
['kea-ctrl-agent.service'],
|
['kea-ctrl-agent.service'],
|
||||||
"Expected a file at path '/etc/kea/kea-api-user'",
|
"Expected a file at path '/etc/kea/kea-api-user'",
|
||||||
@ -2503,12 +2497,6 @@ def _build_deb(system, revision, features, env, check_times, dry_run,
|
|||||||
# install packages
|
# install packages
|
||||||
execute('sudo dpkg -i *deb', check_times=check_times, dry_run=dry_run)
|
execute('sudo dpkg -i *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(
|
_check_installed_rpm_or_debs(
|
||||||
['isc-kea-ctrl-agent.service'],
|
['isc-kea-ctrl-agent.service'],
|
||||||
"Expected a file at path '/etc/kea/kea-api-user'",
|
"Expected a file at path '/etc/kea/kea-api-user'",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user