Bug 1571728
Summary: | targetcli cmd exits abnormally | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | jiyan <jiyan> |
Component: | targetcli | Assignee: | Maurizio Lombardi <mlombard> |
Status: | CLOSED WONTFIX | QA Contact: | Martin Hoyer <mhoyer> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.5 | CC: | dyuan, lmen, xuzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-02-15 07:38:40 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
jiyan
2018-04-25 10:17:34 UTC
Reproducible by deleting assigned backstore. To simplify: # targetcli 1. /backstores/fileio create file_or_dev=test1.img name=test1 size=10M 2. /iscsi create wwn=iqn.2018-04.com.redhat.test1 3. /iscsi/iqn.2018-04.com.redhat.test1/tpg1/luns create /backstores/fileio/test1 4. /backstores/fileio/ delete name=test1 5. /backstores/fileio create file_or_dev=test2.img name=test2 size=10M 6. /iscsi/iqn.2018-04.com.redhat.test1/tpg1/luns/ create /backstores/fileio/test2 Not reproducible from cmd line with individual targetcli commands. The problem is due to the fact that the iscsi target instance has a reference to a LUN that has been removed: /> ls o- / ......................................................................................................................... [...] o- backstores .............................................................................................................. [...] | o- block .................................................................................................. [Storage Objects: 0] | o- fileio ................................................................................................. [Storage Objects: 1] | | o- test3 ....................................................................... [/home/test3 (100.0MiB) write-back activated] | | o- alua ................................................................................................... [ALUA Groups: 1] | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized] | o- pscsi .................................................................................................. [Storage Objects: 0] | o- ramdisk ................................................................................................ [Storage Objects: 0] o- iscsi ............................................................................................................ [Targets: 1] | o- iqn.2003-01.org.linux-iscsi.ibm-p8-kvm-01-guest-07.ppc64:sn.01eb3cfc5684 .......................................... [TPGs: 1] | o- tpg1 ............................................................................................... [no-gen-acls, no-auth] | o- acls .......................................................................................................... [ACLs: 0] | o- luns .......................................................................................................... [LUNs: 1] | | o- lun0 .................................................................. [fileio/test3 (/home/test3) (default_tg_pt_gp)] | o- portals .................................................................................................... [Portals: 1] | o- 0.0.0.0:3260 ..................................................................................................... [OK] o- loopback ......................................................................................................... [Targets: 0] /> backstores/fileio/ delete test3 Deleted storage object test3. /> ls This LUN does not exist in configFS Ideally, when a LUN is removed, rtslib should scan the targets and remove all references to the LUN. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |