Skip to content

Conversation

@seeteena
Copy link

Signed-off-by: Seeteena Thoufeek s1seetee@linux.vnet.ibm.com

@sourabhjains
Copy link
Contributor

Hello @seeteena

Merged your pull request to the next branch.
fbe9530

Thanks for your contribution.

  • Sourabh Jain

@hegdevasant
Copy link

When I run this I see ;

servicereport 2.2.2

RSCT configuration check FAIL

IBM Power Repo Package check FAIL Manual Fix Needed install ibm-power-repo package, run /opt/ibm/lop/configure to agree with the license

<-- Mix of upper and small case is not nice! Probably this should be added at the end ..
Also it doesn't describe how to get ibm-power-repo package . Remember its not shipped by distros

RSCT Installation path FAIL
RSCT package check FAIL
RSCT service status FAIL

-Vasant

@sourabhjains
Copy link
Contributor

Thanks for the review @hegdevasant

Will add instructions to install ibm-power-repo package.

  • Sourabh Jain

The RSCT plugin performs following checks to validate RSCT configuations.

1. Check for RSCT installation path
2. Check for RSCT Package information
3. Check for RSCT Service check
4. Check for ibm-power-repo package

The RSCT plugin performs following checks to repair RSCT configurations.

1. Repair and fix RSCT installation path
2. Repair and fix RSCT Package information if any of the RSCT package is
missing
3. Repair and fix RSCT Service check if any of the RSCT services is down
4. Notifies/WARN user to enable and accept licensing for ibm-power-repo package
if RSCT Packages is not available on the system.

ibm-power-repo package needs to be enabled and accept licensing in
order to install RSCT packages on the system

More info on RSCT:
https://www.ibm.com/support/knowledgecenter/SGVKBA_3.2/admin/bl503_ovrv.html
https://www.ibm.com/support/pages/service-and-productivity-tools

Signed-off-by: Seeteena Thoufeek <s1seetee@linux.vnet.ibm.com>
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
@sourabhjains
Copy link
Contributor

Any update on this pull request?



def check_rsct_warning_check(self):
"""IBM Power Repo Package Check"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider renaming the function to a name that is more closely associated with the package check it is performing, as the current function name does not align with its intended purpose.

return Check(self.check_rsct_installation_path.__doc__,
installation_path_exists)

def get_subsystem_status(self, subsystem):
Copy link
Contributor

Choose a reason for hiding this comment

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

Adding rsct in the function makes it more meaning full.

subsys_list.append((subsystem, subsys_status))
else:
subsys_status = True
subsys_list.append((subsystem, subsys_status))
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's have only one subsys_list.append call. Take it out from if and else.

The same goes for the RSCT package check.

from servicereportpkg.validate.schemes.schemes import PSeriesScheme


class RSCT(Plugin, PSeriesScheme):
Copy link
Contributor

Choose a reason for hiding this comment

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

I hope that no changes are required if this plugin is executed on different distributions.

# Author: Seeteena Thoufeek <s1seetee@linux.vnet.ibm.com>

"""Plugin to repair the rsct configuration check"""

Copy link
Contributor

Choose a reason for hiding this comment

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

Consider adding RSCT full form at least once in the plugin and commit message.

ibm-power-repo package. \n 1. Download and install ibm-power-repo package. \
\n 2. run /opt/ibm/lop/configure to agree with the license. \
\n Refer https://www.ibm.com/support/pages/service-and-productivity-tools \
for more details")
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's have a variable to store the above string.

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