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

fix: set LHv2 DiskDriver to "auto" if unset (backport #152) #154

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Oct 11, 2024

Problem:
We need to force DiskDriver to "auto" if it's not explicitly set, because Longhorn also does that internally. If we don't do this, the subsequent reflect.DeepEqual() in LonghornV2Provisioner.Update() will always fail because we have an empty string, but the LHN CR will have it set to "auto" which results in a weird resync loop.

Solution:
This PR.

Related Issue:
harvester/harvester#6709

Test plan:
Add an LHv2 disk. Verify we don't see the errors mentioned in the related issue.


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

We need to force DiskDriver to "auto" if it's not explicitly set,
because Longhorn also does that internally.  If we don't do this,
the subsequent reflect.DeepEqual() in LonghornV2Provisioner.Update()
will always fail because we have an empty string, but the LHN CR
will have it set to "auto" which results in a weird resync loop.

Related issue: harvester/harvester#6709

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 09e26bc)
@Vicente-Cheng
Copy link
Collaborator

Before #153, the CI failure is expected.

@Vicente-Cheng Vicente-Cheng merged commit 93aa99c into v0.7.x Oct 11, 2024
4 of 5 checks passed
@Vicente-Cheng Vicente-Cheng deleted the mergify/bp/v0.7.x/pr-152 branch October 23, 2024 02:20
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.

2 participants