Cannot attach to NetApp when first IP is not accessible

Bug #1806398 reported by Gorka Eguileor
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Gorka Eguileor

Bug Description

NetApp iSCSI drivers use discovery mode for multipathing, which means that we'll fail to attach a volume if the IP provided for the discovery is not accessible from the host.

Something similar would happen when using singlepath, as we are only trying to connect to one target/portal.

NetApp drivers should return all targets/portals available and not use discovery multipathing to avoid these issues.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/621575

Changed in cinder:
status: New → In Progress
Changed in cinder:
status: In Progress → Confirmed
Changed in cinder:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/621575
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=c65869626594522231709d9c90a30524a1f0d18c
Submitter: Zuul
Branch: master

commit c65869626594522231709d9c90a30524a1f0d18c
Author: Gorka Eguileor <email address hidden>
Date: Mon Dec 3 12:16:10 2018 +0100

    NetApp: Return all iSCSI targets-portals

    NetApp iSCSI drivers use discovery mode for multipathing, which means
    that we'll fail to attach a volume if the IP provided for the discovery
    is not accessible from the host.

    Something similar would happen when using singlepath, as we are only
    trying to connect to one target/portal.

    This patch changes NetApp drivers so the return target_iqns,
    target_portals, and target_luns parameters whenever there are more than
    one option.

    Closes-Bug: #1806398
    Change-Id: If6b5ad23c899032dbf7535ed91251cbfe54a223a

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/651183

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/651184

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.openstack.org/651199

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/stein)

Reviewed: https://review.openstack.org/651199
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=dee7292b0849e3d6e28941c8d203dfd39692f0c6
Submitter: Zuul
Branch: stable/stein

commit dee7292b0849e3d6e28941c8d203dfd39692f0c6
Author: Gorka Eguileor <email address hidden>
Date: Mon Dec 3 12:16:10 2018 +0100

    NetApp: Return all iSCSI targets-portals

    NetApp iSCSI drivers use discovery mode for multipathing, which means
    that we'll fail to attach a volume if the IP provided for the discovery
    is not accessible from the host.

    Something similar would happen when using singlepath, as we are only
    trying to connect to one target/portal.

    This patch changes NetApp drivers so the return target_iqns,
    target_portals, and target_luns parameters whenever there are more than
    one option.

    Closes-Bug: #1806398
    Change-Id: If6b5ad23c899032dbf7535ed91251cbfe54a223a
    (cherry picked from commit c65869626594522231709d9c90a30524a1f0d18c)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/rocky)

Reviewed: https://review.opendev.org/651183
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=8be2bb6d2a31b157a5247de9068806fd11ac4075
Submitter: Zuul
Branch: stable/rocky

commit 8be2bb6d2a31b157a5247de9068806fd11ac4075
Author: Gorka Eguileor <email address hidden>
Date: Mon Dec 3 12:16:10 2018 +0100

    NetApp: Return all iSCSI targets-portals

    NetApp iSCSI drivers use discovery mode for multipathing, which means
    that we'll fail to attach a volume if the IP provided for the discovery
    is not accessible from the host.

    Something similar would happen when using singlepath, as we are only
    trying to connect to one target/portal.

    This patch changes NetApp drivers so the return target_iqns,
    target_portals, and target_luns parameters whenever there are more than
    one option.

    Changes to be committed:
    modified: cinder/volume/drivers/netapp/eseries/library.py
    As part eseries driver code is still in the tree. Need to propose
    an additional patch to the stable branch, notice that patch
    would not be in master, even though both have the same issue.

    Closes-Bug: #1806398
    Change-Id: If6b5ad23c899032dbf7535ed91251cbfe54a223a
    (cherry picked from commit c65869626594522231709d9c90a30524a1f0d18c)
    (cherry picked from commit dee7292b0849e3d6e28941c8d203dfd39692f0c6)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/queens)

Reviewed: https://review.opendev.org/651184
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=7cc7322a0fb5a9c7f965bdf80de4c0cf71fdfe37
Submitter: Zuul
Branch: stable/queens

commit 7cc7322a0fb5a9c7f965bdf80de4c0cf71fdfe37
Author: Gorka Eguileor <email address hidden>
Date: Mon Dec 3 12:16:10 2018 +0100

    NetApp: Return all iSCSI targets-portals

    NetApp iSCSI drivers use discovery mode for multipathing, which means
    that we'll fail to attach a volume if the IP provided for the discovery
    is not accessible from the host.

    Something similar would happen when using singlepath, as we are only
    trying to connect to one target/portal.

    This patch changes NetApp drivers so the return target_iqns,
    target_portals, and target_luns parameters whenever there are more than
    one option.

    Changes to be committed:
    modified: cinder/volume/drivers/netapp/eseries/library.py
    As part eseries driver code is still in the tree. Need to propose
    an additional patch to the stable branch, notice that patch
    would not be in master, even though both have the same issue.

    Closes-Bug: #1806398
    Change-Id: If6b5ad23c899032dbf7535ed91251cbfe54a223a
    (cherry picked from commit c65869626594522231709d9c90a30524a1f0d18c)
    (cherry picked from commit dee7292b0849e3d6e28941c8d203dfd39692f0c6)
    (cherry picked from commit 8be2bb6d2a31b157a5247de9068806fd11ac4075)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.opendev.org/662757

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 14.0.1

This issue was fixed in the openstack/cinder 14.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 13.0.6

This issue was fixed in the openstack/cinder 13.0.6 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 12.0.8

This issue was fixed in the openstack/cinder 12.0.8 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/pike)

Reviewed: https://review.opendev.org/662757
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=d440a94baf360bb9b4b1dc0c83ee4559a8d80d13
Submitter: Zuul
Branch: stable/pike

commit d440a94baf360bb9b4b1dc0c83ee4559a8d80d13
Author: Gorka Eguileor <email address hidden>
Date: Mon Dec 3 12:16:10 2018 +0100

    NetApp: Return all iSCSI targets-portals

    NetApp iSCSI drivers use discovery mode for multipathing, which means
    that we'll fail to attach a volume if the IP provided for the discovery
    is not accessible from the host.

    Something similar would happen when using singlepath, as we are only
    trying to connect to one target/portal.

    This patch changes NetApp drivers so the return target_iqns,
    target_portals, and target_luns parameters whenever there are more than
    one option.

    Changes to be committed:
        modified: cinder/volume/drivers/netapp/eseries/library.py
        As part eseries driver code is still in the tree. Need to propose
        an additional patch to the stable branch, notice that patch
        would not be in master, even though both have the same issue.

    Closes-Bug: #1806398
    Change-Id: If6b5ad23c899032dbf7535ed91251cbfe54a223a
    (cherry picked from commit c65869626594522231709d9c90a30524a1f0d18c)
    (cherry picked from commit dee7292b0849e3d6e28941c8d203dfd39692f0c6)
    (cherry picked from commit 8be2bb6d2a31b157a5247de9068806fd11ac4075)
    (cherry picked from commit 7cc7322a0fb5a9c7f965bdf80de4c0cf71fdfe37)
    Conflicts:
            cinder/tests/unit/volume/drivers/netapp/dataontap/test_block_7mode.py
            cinder/tests/unit/volume/drivers/netapp/fakes.py
            cinder/tests/unit/volume/drivers/netapp/test_utils.py
            cinder/volume/drivers/netapp/utils.py

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 15.0.0.0rc1

This issue was fixed in the openstack/cinder 15.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.