Skip to content

[BUG] volume is stuck in attaching/detaching loop with error Failed to init frontend: device... #4959

Description

@PhanLe1010

Volume stuck in attaching/detaching loop with the error:

2022-11-24T11:26:30.985743332Z tgtd: target_mgmt(147) Failed to unbind by address: ALL
Failed to init frontend: device pvc-3b45d723-d8fa-4c75-b334-0508faa92ea0: fail to delete target iqn.2019-10.io.longhorn:pvc-3b45d723-d8fa-4c75-b334-0508faa92ea0

From Longhorn engine, the error tgtd: target_mgmt(147) Failed to unbind by address: ALL comes from this function call

From the tgtadm, it comes from this line of code. Digging deeper we can see that it was probably there is no tgt target with the corresponding target id at here

@innobead and I feel like we shouldn't error out when trying to unbind while tgt target does not exist. However, we will need to investigate more and try to reproduce the issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/stabilitySystem or volume stabilityarea/v1-data-enginev1 data engine (iSCSI tgt)area/volume-attach-detachVolume attach & detach relatedbackport/1.3.3kind/bugpriority/0Must be implement or fixed in this release (managed by PO)reproduce/always100% reproduciblerequire/auto-e2e-testRequire adding/updating auto e2e test cases if they can be automatedrequire/knowledge-baseRequire adding knowledge base documentseverity/1Function broken (a critical incident with very high impact (ex: data corruption, failed upgrade)

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions