Fix/kdump makedumpfile install#4533
Conversation
…BLMariner - Enhanced Makedumpfile._install() to try separate makedumpfile package on RedHat/CBLMariner - Added robust _check_exists() with fallback path checks for common locations - Resolves: install 'makedumpfile' failed. After installed, it cannot be detected
…ency On newer Redhat-family releases the kdumpctl command moved from kexec-tools into the separate kdump-utils package, causing 'install kdumpredhat failed. After installed, it cannot be detected.' Install kdump-utils as a fallback when kdumpctl is still missing and the package is available in the repos. Also restore Makedumpfile to KdumpBase dependencies so the compressed vmcore can be created during a crash.
On newer Redhat-family images, makedumpfile is no longer bundled in kexec-tools and ships as a standalone package. Install it as a fallback when the binary is still missing after installing kexec-tools and the package is available in the repos.
There was a problem hiding this comment.
Pull request overview
This PR updates LISA’s kdump tooling installation logic to handle newer Red Hat-family and Mariner packaging changes where makedumpfile and/or kdumpctl may be split into separate packages instead of being bundled with kexec-tools.
Changes:
- On Redhat/CBLMariner, install
kexec-toolsfirst, then fall back to installingmakedumpfileif the binary is still missing and the package exists in repos. - On newer Redhat-family releases, fall back to installing
kdump-utilsifkdumpctlis still missing and the package exists in repos. - Add clarifying comments about kdump’s tool dependencies and distro packaging behavior.
| # On Red Hat / Mariner, makedumpfile is historically bundled in the | ||
| # kexec-tools package. On newer releases it may be shipped as a | ||
| # standalone makedumpfile package instead, so fall back to it when | ||
| # the binary is still missing and the package is available. | ||
| self.node.os.install_packages("kexec-tools") |
✅ AI Test Selection — PASSED1 test case(s) selected (view run) Marketplace image: redhat rhel 9_5 latest
Test case details
|
|
@Sandygit01 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Description
Related Issue
Type of Change
Checklist
Test Validation
Key Test Cases:
Impacted LISA Features:
Tested Azure Marketplace Images:
Test Results