Skip to content

Commit

Permalink
Merge pull request #854 from shirishaganta1/fix-shared-dlpar-machinec…
Browse files Browse the repository at this point in the history
…onfig

MachineConfig.py: Removed a condition which checks the lpar is in shared mode
  • Loading branch information
PraveenPenguin authored Jul 1, 2024
2 parents 4ca0d5b + f8419ed commit 58a8c79
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 58a8c79

Please sign in to comment.