Commit 9f1a4ea
committed
Fix find_resource_slot live mode: extract host from label_allocations
The host (instance_parent) for reservations was only checked in
sliver.get_labels(), which stores request labels and typically does
not contain the allocated host. The actual host assignment lives in
sliver.get_label_allocations(). This caused all reservations to have
host=None, silently skipping resource subtraction and making reserved
resources appear available.
Now checks label_allocations first, falling back to labels. Also adds
warning logging when host is None and debug logging for each
reservations extracted data.1 parent a885ed1 commit 9f1a4ea
1 file changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1388 | 1388 | | |
1389 | 1389 | | |
1390 | 1390 | | |
1391 | | - | |
1392 | | - | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
1393 | 1403 | | |
1394 | 1404 | | |
1395 | 1405 | | |
| |||
1398 | 1408 | | |
1399 | 1409 | | |
1400 | 1410 | | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
1401 | 1417 | | |
1402 | 1418 | | |
1403 | 1419 | | |
1404 | 1420 | | |
1405 | 1421 | | |
1406 | 1422 | | |
1407 | 1423 | | |
1408 | | - | |
| 1424 | + | |
1409 | 1425 | | |
1410 | 1426 | | |
1411 | 1427 | | |
| |||
0 commit comments