Closed yangchiu closed 10 months ago
The error is triggered by the actual size mismatching error of replica lvols. Checking the replica verification logics.
[longhorn-manager-dqzsx] time="2024-01-08T07:27:01Z" level=warning msg="Instance test-1-r-3fe7d78f is state error, error message: found mismatching lvol actual size 2750414848 with recorded prev lvol actual size 2097152 when validating lvol test-1-r-3fe7d78f-snap-rebuild-6d8f7e1c" func="controller.(*InstanceHandler).syncStatusWithInstanceManager" file="instance_handler.go:206
This is a transition error occuring in codes. When deleting a snapshot lvol, the merge of lvols results in a change of actual size.
I'm thinking if we really need the actual size validation. Can we remove the check and revisit it later if it is needed? WDYT? @shuo-wu @innobead
[ ] Where is the reproduce steps/test steps documented? The reproduce steps/test steps are at:
[ ] Does the PR include the explanation for the fix or the feature?
[ ] Have the backend code been merged (Manager, Engine, Instance Manager, BackupStore etc) (including backport-needed/*
)?
The PR is at https://github.com/longhorn/longhorn-spdk-engine/pull/90
[ ] Which areas/issues this PR might have potential impacts on? Area: v2 volume, snapshot, backup Issues
This is a transition error occuring in codes. When deleting a snapshot lvol, the merge of lvols results in a change of actual size.
I'm thinking if we really need the actual size validation. Can we remove the check and revisit it later if it is needed? WDYT? @shuo-wu @innobead
Sounds good to me.
Verified on master-head 20240109
The test steps
Result passed
Describe the bug
Delete replicas of a v2 volume during backup creation could cause the backup becomes
Error
state:And remove the error backup could cause the volume stuck in detaching/faulted state:
To Reproduce
test-1
with 3 replicas from UI and also create PV/PVC for it from UIError
state:attached
andhealthy
without problems, and once delete the error backup from UI, the volume gets stuck indetaching
andfaulted
:Please see volume
test-4
related logs in the support bundle for more details.Expected behavior
Support bundle for troubleshooting
supportbundle_43c90f10-cff2-486a-bf7b-dc91761bf1ea_2024-01-08T04-09-06Z.zip
Environment
Additional context
<!-Please add any other context about the problem here.-->