-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
kdump: Show message in 'Test configuration' to verify the crash #19107
Conversation
Nice! One more additional idea is whether we can check this automatically? That once you reboot and visit kdupm page again it would show big green check mark that there is fresh kernel dump in designed location? |
I have been thinking also about this to send as followup (since this PR is really simple and fixes jira/bugzilla, I think it's worth it to merge separately ASAP). And about the automatic check. I guess we have to save to browser's localStorage the timestamp of the last simulated kernel crash. And then we can check the last write to the crash dump location. As long as we only support it for crash dump location at Local filesystem/SSH/NFS, it should be fairly easy to check. For others, I think it's right now not feasible to implement. EDIT: Or maybe just looking at kdump service logs + the timestamp should be enough |
@garrett updated the design: Also, if you configure kdump to use SSH, it will not move it to NFS:SSH:Local: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Minor nitpicks:
- The modals should have an icon (specifically, the golden
<!>
icon, like in the mockups) - There should be an X on closable modals (either with "Cancel", as the case here, and also on "Close" ones (not the case here; just pointing that out))
Additionally: I notice the width is wider in the screenshots than in the modal. Generally, for less complex modals (especially confirmations), going with the narrower ones would be better for readability. However, there is some path and filename info here; going too narrow could provide more opportunities for wrapping (not great here). So it's probably fine at your width. This is just a comment, not something to change. 😉
6006f68
to
55c6ab4
Compare
Hi skobyda, I'm Tao Liu from kdump team, came from bz2215024. Thanks a lot for your efforts on this. Since cockpit support is one subtask of bz2215024, and I have worked on the TUI part for sometime, I can share some of my thoughts:
Anyway, it's currently an early design phase for me, we can share thoughts or discuss kdump APIs if you need some underlying support. Thanks, |
Yes, that will be a followup
That's exactly what I have as work-in-progress locally. My plan was to generate timestamp when "Test configuration" is triggered and store in in browser's storage. But "kdumpctl test-check" would work be even better! while using the similar principle.
From our point of view, we are alsofine with calling some command to reset the timestamp manually when user uses our UI to change configuration file. |
^_^
OK, I will try to design the kdumpctl APIs in consideration of cockpit, hope it can be clean and easy to use. Just FYI, there is the repo which we used for implementing TUI "kdumpctl test/test-check" etc, currently just a POC in the ltao-dev branch.
OK, thanks! |
I'm working on integrating the discussion into a new mockup! Here's what I have so far: Source: Kdump.penpot in Kdump.zip It's still lacking a lot, such as: the modals for each option, the alert for when the service is out of sync (that is: if it's enabled and the service isn't running), other error cases, etc. — but the bulk of the direction to modernize the Kdump page (and bring it up to established patterns in both Cockpit and PatternFly) is there. |
54d1cb9
to
bc80683
Compare
OK thanks, we can discuss there. |
7e21bcc
to
b586196
Compare
086b465
to
1ea4253
Compare
This adds message showing a location where user can verify whetever crash was successful: Local filesystem: "To verify whether the crash was successful check /var/crash location for kernel crash dump(vmcore)." SSH: "To verify whether the crash was successful check /var/crash location at [email protected] for kernel crash dump(vmcore)" NFS: "To verify whether the crash was successful check /var/crash location at myserver.com:/export/cores for kernel crash dump(vmcore)." Closes https://issues.redhat.com/browse/RHELPLAN-125375 Closes https://bugzilla.redhat.com/show_bug.cgi?id=2097440
' ' + _("Results of the crash will be stored in $0 as $1, if kdump is properly configured."), | ||
<span className="pf-v5-u-font-family-monospace-vf">{path}</span>, | ||
<span className="pf-v5-u-font-family-monospace-vf">vmcore</span>); | ||
} else if (target.type === "ssh" || target.type == "nfs") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This added line is not executed by any test. Details
<span className="pf-v5-u-font-family-monospace-vf">{target.type === "ssh" ? "SSH" : "NFS"}</span>, | ||
<span className="pf-v5-u-font-family-monospace-vf">{`${target.server}:${target.type === "nfs" ? target.export + path : path}`}</span>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 2 added lines are not executed by any test. Details
Garrett's ack'ed the changes on matrix.
This adds message showing a location where user can verify whetever crash was successful:
Closes https://issues.redhat.com/browse/RHELPLAN-125375
Closes https://bugzilla.redhat.com/show_bug.cgi?id=2097440
Kdump: Show location of kdump to verify the successful configuration test
You can now see the location where kdump can be found if testing of kdump settings is successful.