Commit 9be613c
committed
gen_nodes/gen_hosts: fix recursive loop and template errors in sysbench
The sysbench workflow had multiple template resolution issues:
1. "Collect dynamically supported filesystems" task was causing a
recursive loop due to using 'vars' which includes all variables
in the current context, including 'sysbench_enabled_filesystems'
that the task is trying to set.
2. Subsequent tasks using 'vars' in template loops were getting
"CapturedExceptionMarker" errors when trying to concatenate
lists, due to template resolution failures.
3. Missing | list filters in map() chains were causing template
evaluation errors.
Fix this by:
- Using 'hostvars[inventory_hostname]' instead of 'vars' to avoid
circular references in all sysbench-related tasks
- Adding | list filters to ensure all map() operations return lists
- Renaming local variables consistently across both roles
This affects both gen_nodes and gen_hosts roles that have identical
problematic task patterns.
Fixes: 8da9287 ("workflows: add new sysbench workflow with MySQL
support with fs support")
Generated-by: Claude AI
Signed-off-by: Daniel Gomez <[email protected]>1 parent 1d49e8c commit 9be613c
2 files changed
+20
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
| 288 | + | |
| 289 | + | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | | - | |
306 | | - | |
307 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
442 | | - | |
| 441 | + | |
| 442 | + | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
475 | 475 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| |||
0 commit comments