Skip to content

Commit 58a8c79

Browse files
Merge pull request #854 from shirishaganta1/fix-shared-dlpar-machineconfig
MachineConfig.py: Removed a condition which checks the lpar is in shared mode
2 parents 4ca0d5b + f8419ed commit 58a8c79

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

testcases/MachineConfig.py

+6-11
Original file line numberDiff line numberDiff line change
@@ -272,17 +272,12 @@ def LparSetup(self, lpar_config=""):
272272
self.max_memory = int(self.cv_HMC.get_available_mem_resources()[
273273
0]) + self.cv_HMC.get_stealable_mem_resources_lpar()
274274
proc_mode = 'shared'
275-
curr_proc_mode = self.cv_HMC.get_proc_mode()
276-
if proc_mode in curr_proc_mode and not lpar_config:
277-
log.info("System is already booted in shared mode.")
278-
else:
279-
if not lpar_config:
280-
self.cv_HMC.profile_bckup()
281-
self.cv_HMC.change_proc_mode(proc_mode, self.sharing_mode,
282-
self.min_proc_units, self.desired_proc_units,
283-
self.max_proc_units, self.min_memory,
284-
self.desired_memory, self.max_memory,
285-
self.overcommit_ratio)
275+
self.cv_HMC.profile_bckup()
276+
self.cv_HMC.change_proc_mode(proc_mode, self.sharing_mode,
277+
self.min_proc_units, self.desired_proc_units,
278+
self.max_proc_units, self.min_memory,
279+
self.desired_memory, self.max_memory,
280+
self.overcommit_ratio)
286281
'''
287282
If cpu=dedicated is passed in machine_config lpar proc mode
288283
changes to dedicated mode. Pass sharing_mode, min_proc_units,

0 commit comments

Comments
 (0)