blazar/releasenotes/notes/bug-1958307-63bf308ca6a97068.yaml
Pierre Riteau 39c67f09b8 Fix list_allocations for multi-host reservations
The get_reservation_allocations_by_host_ids function builds an
allocation dictionary that looks like this:

    allocations = {
        'r1': ['host1'],
        'r2': ['host1', 'host2']
    }

The list returned by this function was only using the first host of each
reservation:

    allocations[r['id']][0]

Loop over hosts to build the list of (reservation, lease, host) tuples.

Change-Id: I55b3cb4e736f6f747c8b3254c62fa40bac3f288f
Closes-Bug: #1958307
2022-01-18 23:21:43 +01:00

7 lines
204 B
YAML

---
fixes:
- |
Fixes result of the List Allocations API for reservations with multiple
physical hosts. For more details, see `bug 1958307
<https://bugs.launchpad.net/blazar/+bug/1958307>`_.