Skip to content

controller/blockdevice: should update DevPath once it changed (backport #195) #196

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

Merged
merged 1 commit into from
May 8, 2025

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 8, 2025

- when the node reboot, it might cause the device path change because of the interrupt order with the device. We need to update the device path once it changed.

Problem:
Sometimes we will see the duplicated status.deviceStatus.devPath of the blockdevice CR in the same node.

The device path would be change in following two cases:

  1. device is temporarily gone and back.
  2. Node reboot might also cause the device path change (depends on device interrupt).

So, we need to update the device path once it has changed

Solution:
Update device path once it has changed

Related Issue:
harvester/harvester#8164

Test plan:
Try to reboot, and you might see the spec.devPath is different from status.deviceStatus.devPath.
NOTE: It is hard to reproduce so that we can focus on the general use case, which should be kept the same.


This is an automatic backport of pull request #195 done by [Mergify](https://mergify.com).

    - when the node reboot, it might cause the device path change
      because of the interrupt order with the device. We need to
      update the device path once it changed.

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit 65b1ca6)
@Vicente-Cheng Vicente-Cheng merged commit e0d9734 into v1.5 May 8, 2025
7 checks passed
@Vicente-Cheng Vicente-Cheng deleted the mergify/bp/v1.5/pr-195 branch May 8, 2025 04:41
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