Active resize validation around PPT ratio is broken for None values

Bug #1715475 reported by Matt Rabe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pypowervm
Fix Released
Undecided
Matt Rabe

Bug Description

The existing logic in utils/validation.py is:

        if self.ppt_ratio != curr_mem_cfg.ppt_ratio:
            msg = ("The virtual machine must be powered off before changing "
                   "the physical page table ratio. Power off virtual "
                   "machine %s and try again.") % self.cur_lpar_w.name
            raise ValidatorException(msg)

But the LPARBuilder won't put the PPT ratio element into the wrapper if the value is None. At the platform this is fine and the PPT ratio will remain the same value on resize. The validator should not throw this exception if the value is None.

Matt Rabe (mdrabe)
Changed in pypowervm:
assignee: nobody → Matt Rabe (mdrabe)
description: updated
description: updated
Revision history for this message
Matt Rabe (mdrabe) wrote :
Changed in pypowervm:
status: New → Fix Released
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.