machine can be compose in a full pool because of typo

Bug #1753874 reported by E. MAS on 2018-03-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
High
Newell Jensen
2.3
High
Newell Jensen

Bug Description

In provisioningserver/drivers/pod/virsh.py

In the procedure get_pod_pool_size_map , the logic does not use the variable key ,
it always use "Capacity" so when we pass "Available" to choose the right pool it does not work .

    def get_pod_pool_size_map(self, key):
        """Return the mapping for a size calculation based on key."""
        pools = {}
        for pool in self.list_pools():
            output = self.run(['pool-info', pool]).strip()
            if output is None:
                # Skip if cannot get more information.
                continue
            pools[pool] = convert_size_to_bytes(
                self.get_key_value(output, "Capacity"))
        return pools

Related branches

Changed in maas:
assignee: nobody → Newell Jensen (newell-jensen)
importance: Undecided → High
status: New → In Progress
milestone: none → 2.4.x
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
Changed in maas:
milestone: 2.4.x → 2.4.0beta1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers