This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Commit 78ad580
committed
fix: lease-acquisition loop can fail with temporary grpc issues
a lease acquisition loop can fail in the following way very easily if a router
in openshift/k8s is restarted during the lease get operation.
this retry mechanism avoids this issue.
```
2025-11-28T15:22:39.557321889Z for lease: There are 9 approved
2025-11-28T15:22:39.557321889Z exporters, (i.e. ) but all of them are
2025-11-28T15:22:39.557321889Z already leased (7:30:58)
2025-11-28T15:22:44.577566967Z [11/28/25 15:22:44] INFO INFO:jumpstarter.client.lease:Waiting lease.py:355
2025-11-28T15:22:44.577566967Z for lease: There are 9 approved
2025-11-28T15:22:44.577566967Z exporters, (i.e. ) but all of them are
2025-11-28T15:22:44.577566967Z already leased (7:31:03)
2025-11-28T15:22:56.436248186Z Error: grpc error: Socket closed
```1 parent afaf058 commit 78ad580
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
80 | 99 | | |
81 | 100 | | |
82 | 101 | | |
| |||
136 | 155 | | |
137 | 156 | | |
138 | 157 | | |
139 | | - | |
140 | | - | |
| 158 | + | |
141 | 159 | | |
142 | 160 | | |
143 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments