Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support to configure the multiple lpars. #787

Closed
wants to merge 3 commits into from

Conversation

SamirMulani
Copy link
Contributor

@SamirMulani SamirMulani commented Sep 21, 2023

This enhancement introduces support for configuring multiple lpars, such as lpar1, lpar2, and so on, especially when they are in shared mode.

To configure the multiple lpars user needs to pass below two parameters,

lpar_config=multi
lpar_list=lpar1, lpar2 ...etc

In this case, the user is required to explicitly specify these two parameters in the .conf file, and it's important to ensure that all lpars have unique passwords.

@abdhaleegit
Copy link
Collaborator

@PraveenPenguin @SamirMulani we can still limit this change to single input parameter

lpar_config=multi
lpar_list=lpar1, lpar2 .

can we remove lpar_config parameter... and make sure to perform lpar config if more than one lpar given in lpar_list ?

@@ -197,12 +229,13 @@ def LparSetup(self):
self.overcommit_ratio = 1
proc_mode = 'shared'
curr_proc_mode = self.cv_HMC.get_proc_mode()
if proc_mode in curr_proc_mode:
print("==========================> samir===========================###########################: ", lpar_config)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this ?

log.info("System is already booted in shared mode.")
else:
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.overcommit_ratio)
self.desired_proc_units, self.max_proc_units, self.overcommit_ratio)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please run autopep8 to fix indents

This enhancement introduces support for configuring multiple lpars,
such as lpar1, lpar2, and so on, especially when they are in shared mode.

To configure the multiple lpars user need to pass below two parameters,
lpar_config=multi
lpar_lis=lpar1, lpar2 ...etc
In this case, users are required to explicitly specify these two parameters
in the .conf file, and it's important to ensure that all lpars have unique
passwords.

Signed-off-by: Samir Mulani <[email protected]>

Added support to configure the multiple lpars.

In this commit addressed review comments,
1. Removed lpar_config option.

Signed-off-by: Samir Mulani <[email protected]>

Added support to configure the multiple lpars.

Addressed review comments.

1. Fixed indentation issues.
2. Removed unwanted debug print statement.

Signed-off-by: Samir Mulani <[email protected]>
SamirMulani and others added 2 commits November 16, 2023 17:24
We've made adjustments to the conditions for checking multiple LPAR configurations. Now, during the configuration process for multiple LPARs, if an LPAR is already in shared mode, we've also included support for modifying the EC (Entitlement Capacity) versus VP (Virtual Processore

Signed-off-by: Samir Mulani <[email protected]>
@SamirMulani
Copy link
Contributor Author

@abdhaleegit @PraveenPenguin Created a new pull request with all requested changes,
#796

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants