[BUG] Backing Image deletion stuck if it's deleted during uploading process and bids is ready-for-transfer state #6086
Closed
Description
Describe the bug (🐛 if you encounter this issue)
backingimage and backingimagedatasource deletion got stuck, if the backing image is deleted during upload process and bids just changes to ready-for-transfer
state
To Reproduce
Steps to reproduce the behavior:
- Via Longhorn GUI, upload backing image from local
- Delete backingimage as bids just turns into
ready-for-transfer
state - Found backingimage stuck in deletion, the delete operation never finish
- Found backingimagedatasource stuck in deletion, the delete operation never finish
- Checking longhorn manager's log, it looped with log "backing image data source status is failed not failed-and-cleanup"
Expected behavior
The backingimage related resource should be deleted without stucking
Environment
Harvester v1.2.0 master-head with longhorn embedded, but it could be reproduced without Harvester's operations
- Longhorn version: v1.4.2
Additional Context
This is found by Harvester issue harvester/harvester#4027
Metadata
Assignees
Type
Projects
Status
Resolved
Status
Closed