machine can be compose in a full pool because of typo

Bug #1753874 reported by E. MAS
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Newell Jensen
2.3
Fix Released
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.