Commit e2e44bc
committed
Fix AnsibleEE job name collisions for long names
Previously, when the combined service + deployment + nodeset name
exceeded 63 characters (DNS1123 max), simple truncation could cause
different jobs to end up with identical names, leading to collisions.
Replace the arbitrary -10 prefix truncation with a hash-based approach:
- Build the full execution name without premature truncation
- If the name exceeds 63 characters, truncate to 54 characters and
append an 8-character SHA256 hash suffix
- This guarantees unique names even when truncation is required
Closes: OSPRH-26041
Signed-off-by: Sergii Golovatiuk <sgolovat@redhat.com>1 parent aa980a9 commit e2e44bc
1 file changed
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | 172 | | |
182 | 173 | | |
183 | 174 | | |
184 | 175 | | |
185 | 176 | | |
186 | | - | |
| 177 | + | |
187 | 178 | | |
188 | 179 | | |
189 | 180 | | |
190 | 181 | | |
191 | 182 | | |
192 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
193 | 189 | | |
194 | 190 | | |
195 | 191 | | |
| |||
0 commit comments