Skip to content

[BUG] Backing Image deletion stuck if it's deleted during uploading process and bids is ready-for-transfer state #6086

Closed
@WebberHuang1118

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 bi_upload
  • Delete backingimage as bids just turns into ready-for-transfer state
    • Delete backingimage by $ kubectl -n longhorn-system delete backingimage img1 --cascade=foreground bi_delete_ready_for_transfer
  • Found backingimage stuck in deletion, the delete operation never finish bi_delete_stuck
  • Found backingimagedatasource stuck in deletion, the delete operation never finishbids_delete_stuck
  • Checking longhorn manager's log, it looped with log "backing image data source status is failed not failed-and-cleanup" longhorn_manager_log_looping

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

Type

No type

Projects

  • Status

    Closed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions