| |
@@ -17,6 +17,7 @@
|
| |
|
| |
import monitor_gating_single_build
|
| |
import monitor_gating_multi_builds
|
| |
+ from utils import run_command
|
| |
|
| |
s = sched.scheduler(time.time, time.sleep)
|
| |
conf = toml.load
|
| |
@@ -52,6 +53,12 @@
|
| |
|
| |
def schedule(conf):
|
| |
""" Run the test and schedules the next one. """
|
| |
+
|
| |
+ if conf.get("kb_principal") and conf.get("kb_keytab_file"):
|
| |
+ print(f"Logging into kerberos using: {conf['kb_keytab_file']}")
|
| |
+ cmd = ["kinit", conf["kb_principal"], "-kt", conf["kb_keytab_file"]]
|
| |
+ run_command(cmd)
|
| |
+
|
| |
delay = conf["delay"]
|
| |
delay_when_failing = conf["delay_when_failing"]
|
| |
blocker_tags = conf["blocker_tags"]
|
| |
This solves the issue of ticket expiring underneath us, this
way each run will have re-logged in using the keytab thus
ensuring that we are good to proceed in that front.
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr