Bug 1244548
| Summary: | lioadm target creation artificially limited by iscsi_num_targets | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Lee Yarwood <lyarwood> |
| Component: | openstack-cinder | Assignee: | Gorka Eguileor <geguileo> |
| Status: | CLOSED ERRATA | QA Contact: | lkuchlan <lkuchlan> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.0 (RHEL 7) | CC: | ddomingo, eharney, jschluet, scohen, sgotliv, yeylon, yrabl |
| Target Milestone: | z5 | Keywords: | ZStream |
| Target Release: | 5.0 (RHEL 7) | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-cinder-2014.1.4-7.el7ost | Doc Type: | Bug Fix |
| Doc Text: |
In previous releases, LIO used the iSCSI targets table, which was unnecessary. As a result, quick attach/detach sequences incorrectly filled the table and resulted in an attachment failure. This, in turn, meant that lioadm target creation was artificially limited by iscsi_num_targets.
With this release, LIO no longer uses the target table. As a result, LIO is no longer limited by iscsi_num_targets.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-09-10 11:47:15 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
Lee Yarwood
2015-07-19 22:37:01 UTC
Since we can't just backport a Liberty fix as is to Kilo/Juno/Icehouse, we can take a code proposed by Lee, but probably just put it in the parent class ExportMixin. ExportMixin introduces a default implementation of the "_get_target_and_lun" which is already overridden in the same way in 2 out of 4 sub-classes. Lee's code proposes to do the same fix in the LioAdm the third sub-class, so it's probably a good opportunity to just change a default behavior in the ExportMixin. This bug is already fixed in 6.0 and later, so it only affects 5.0. To keep it in line with how it's done in all other versions we should just do: + def _get_iscsi_target(self, context, vol_id): + return 0 + + def _get_target_and_lun(self, context, volume): + lun = 0 # For lio, the lun starts at lun 0. + iscsi_target = 0 # NOTE: Not used by lio. + return iscsi_target, lun verified on openstack-cinder-2014.1.5-1.el7ost.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1759.html |