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

OpTestPstore.py:This patch checks for new files creation under /sys/fs/pstore #584

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shirishaganta
Copy link

@shirishaganta shirishaganta commented Apr 2, 2020

After triggering crash with kdump it checks for
new files creation under /sys/fs/pstore

Signed-off-by: shirisha Ganta shiganta@in.ibm.com

@ruscur
Copy link
Collaborator

ruscur commented Apr 2, 2020

Can one of the admins verify this patch?

1. Check Pstore is configured properly or not
2. Trigger crash.
3. Check new files are created or not under /sys/fs/pstore
4. Enable FADUMP

Choose a reason for hiding this comment

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

Why are you doing this in pstore test case path?

#
# OpenPOWER Automated Test Project
#
# Contributors Listed Below - COPYRIGHT 2017

Choose a reason for hiding this comment

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

2020?

res = self.con.run_command( "cat /boot/config-`uname -r` | grep -i --color=never 'CONFIG_PSTORE=y'")
print(res)
if(res[0]!='CONFIG_PSTORE=y'):
self.fail("PSTORE is not configured")

Choose a reason for hiding this comment

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

Can't we load pstore as module?

self.con = self.cv_SYSTEM.console
self.c = self.cv_SYSTEM.cv_HOST.get_ssh_connection()

def pstore_check(self):

Choose a reason for hiding this comment

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

Better pstore_config_check?


def kernel_crash(self):
#1. This function will trigger a Crash
#2. Check for lpar or baremetal

Choose a reason for hiding this comment

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

Probably you should check this before crashing (may be as part of setup).

else:
print("New file %s is not created" % i)

def setup_fadump(self):

Choose a reason for hiding this comment

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

I don't think fadump stuff should be included in this file.

print("Fadump service is not configured properly")

class KernelCrash_Kdump(OpTestKernelBase):

Choose a reason for hiding this comment

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

Why kdump stuff is coming here. We already have multiple files/classes doing kdump/fadump stuff.

self.kernel_crash()


def crash_suite():

Choose a reason for hiding this comment

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

Why do you need crash_suite here ?

@shirishaganta
Copy link
Author

After addressing the above comments, Changed the testcase according to that

…s/pstore

After triggering crash with kdump, it checks for
new files creation under /sys/fs/pstore

Signed-off-by: shirisha Ganta <shiganta@in.ibm.com>
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.

None yet

3 participants