wip: Add e2e test that checks PreferredLinkTarget is updated#594
wip: Add e2e test that checks PreferredLinkTarget is updated#594jsafrane wants to merge 17 commits intoopenshift:mainfrom
Conversation
Also setowner ref
Co-authored-by: Jan Šafránek <jsafrane@redhat.com>
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Update LocalVolume + LocalVolumeSets with a check for PreferredLinkTarget update. The check picks one PV / LVDL, on the corresponding node adds a new symlink to the corresponding device that's more preferred than the current one, and expects that the LVDL gets updated. Then it removes the symlink + checks the old PreferredLinkTarget is restored. The test expects the test disks are NVME. It creates a symlink `scsi-1`, which is more preferable by LSO. I also added some common functionality to add / remove symlinks easily and updated newNodeJob to get hostname instead of the whole Node object - it saves one API call to get a Node from hostname label from PV nodeAffinity.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@jsafrane: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
See the last commit only, the rest is #592
Update LocalVolume + LocalVolumeSets with a check for PreferredLinkTarget update.
The check picks one PV / LVDL, on the corresponding node it adds a new symlink to the corresponding device that's more preferred than the current one, and expects that the LVDL gets updated. Then it removes the symlink + checks the old PreferredLinkTarget is restored.
The test expects the test disks are NVMe. It creates a symlink
scsi-1, which is more preferable by LSO. It can be extended in the future to addscsi-3,wwn-etc to check which one is actually the preferred one.I also added some common functionality to add / remove udev-like symlinks on nodes easily and updated
newNodeJobto get hostname instead of the whole Node object - it saves one API call to get a Node from hostname label from PVnodeAffinity.WIP: