Skip to content

Commit

Permalink
MachineConfig.py: Removed a condition which checks the lpar is in sha…
Browse files Browse the repository at this point in the history
…red mode

We need to boot the lpar in shared mode as per user requirement. so removed
a check

Signed-off-by: Shirisha G <[email protected]>
  • Loading branch information
shirishaganta1 committed Jun 29, 2024
1 parent 4ca0d5b commit f8419ed
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions testcases/MachineConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,12 @@ def LparSetup(self, lpar_config=""):
self.max_memory = int(self.cv_HMC.get_available_mem_resources()[
0]) + self.cv_HMC.get_stealable_mem_resources_lpar()
proc_mode = 'shared'
curr_proc_mode = self.cv_HMC.get_proc_mode()
if proc_mode in curr_proc_mode and not lpar_config:
log.info("System is already booted in shared mode.")
else:
if not lpar_config:
self.cv_HMC.profile_bckup()
self.cv_HMC.change_proc_mode(proc_mode, self.sharing_mode,
self.min_proc_units, self.desired_proc_units,
self.max_proc_units, self.min_memory,
self.desired_memory, self.max_memory,
self.overcommit_ratio)
self.cv_HMC.profile_bckup()
self.cv_HMC.change_proc_mode(proc_mode, self.sharing_mode,
self.min_proc_units, self.desired_proc_units,
self.max_proc_units, self.min_memory,
self.desired_memory, self.max_memory,
self.overcommit_ratio)
'''
If cpu=dedicated is passed in machine_config lpar proc mode
changes to dedicated mode. Pass sharing_mode, min_proc_units,
Expand Down

0 comments on commit f8419ed

Please sign in to comment.