| Summary: | [tgt-setup-lun] - adding inaccurate LUN to existing target will remove the target itself | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Max Benenson <mbenenso> | ||||||
| Component: | scsi-target-utils | Assignee: | Andy Grover <agrover> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Red Hat Kernel QE team <kernel-qe> | ||||||
| Severity: | urgent | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 6.0 | CC: | agrover, bdonahue, erezz, mchristi, syeghiay | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: |
Providing an existing target name to tgt-setup-lun when attempting to add a new LUN based on a nonexistant device correctly resulted in failure because a target with the same name already existed. If the user then followed the utility's suggestion to add the new LUN to the existing target, the operation failed (again, correctly) because the device did not exist. However, the rollback action associated with this second failure resulted in the target being removed. The rollback action now checks whether the target pre-existed the failed actions, so the target is not removed in this circumstance.
|
Story Points: | --- | ||||||
| Clone Of: | |||||||||
| : | 695867 (view as bug list) | Environment: | |||||||
| Last Closed: | 2011-05-19 14:15:02 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 695867 | ||||||||
| Attachments: |
|
||||||||
|
Description
Max Benenson
2011-02-09 15:06:23 UTC
Did you send some patches to the upstream tgt list for this? (In reply to comment #2) > Did you send some patches to the upstream tgt list for this? No, I did not. Created attachment 482991 [details]
fix
proposed fix attached.
Hey, I do not think Erez works at Voltaire anymore. Created attachment 483013 [details]
revised fix
fix in upstream git. Verified on 2.6.32-131.0.1.el6.x86_64.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Providing an existing target name to tgt-setup-lun when attempting to add a new LUN based on a nonexistant device correctly resulted in failure because a target with the same name already existed. If the user then followed the utility's suggestion to add the new LUN to the existing target, the operation failed (again, correctly) because the device did not exist. However, the rollback action associated with this second failure resulted in the target being removed. The rollback action now checks whether the target pre-existed the failed actions, so the target is not removed in this circumstance.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0734.html |