Cinder cannot attach iSCSI volume to instance over IPv6

Bug #1560934 reported by Attila Darazs
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Giulio Fidente

Bug Description

Relevant errors from the controller's /var/log/cinder/volume.log:

2016-03-23 03:03:24.739 24784 INFO cinder.volume.flows.manager.create_volume [req-38929f0f-6be5-4413-8efb-83e77b8ef5d0 48bd2edb8cc7401e837bbae5f3b18a99 1f6231e896d346c5a15c377c8ba9c559 - - -] Volume volume-a17948cf-14ef-4fd0-b93f-4fd8c3f4fcc4 (a17948cf-14ef-4fd0-b93f-4fd8c3f4fcc4): created successfully
2016-03-23 03:03:24.745 24784 INFO cinder.volume.manager [req-38929f0f-6be5-4413-8efb-83e77b8ef5d0 48bd2edb8cc7401e837bbae5f3b18a99 1f6231e896d346c5a15c377c8ba9c559 - - -] Created volume successfully.
2016-03-23 03:03:46.755 24784 INFO cinder.volume.targets.lio [req-ce060250-5eb3-4349-b7a1-45543b195069 48bd2edb8cc7401e837bbae5f3b18a99 1f6231e896d346c5a15c377c8ba9c559 - - -] Creating iscsi_target for volume: volume-a17948cf-14ef-4fd0-b93f-4fd8c3f4fcc4
2016-03-23 03:03:50.043 24784 ERROR cinder.volume.targets.lio [req-ce060250-5eb3-4349-b7a1-45543b195069 48bd2edb8cc7401e837bbae5f3b18a99 1f6231e896d346c5a15c377c8ba9c559 - - -] Failed to create iscsi target for volume id:volume-a17948cf-14ef-4fd0-b93f-4fd8c3f4fcc4.
[..]
2016-03-23 03:03:50.043 24784 ERROR cinder.volume.targets.lio Stdout: u'Error: creating NetworkPortal: ensure port 3260 on ip fd00:fd00:fd00:3000::11 is not in use by another service.\n'
[..]
2016-03-23 03:03:50.070 24784 ERROR cinder.volume.manager ISCSITargetCreateFailed: Failed to create iscsi target for volume volume-a17948cf-14ef-4fd0-b93f-4fd8c3f4fcc4.
[..]
2016-03-23 03:03:50.114 24784 ERROR oslo_messaging.rpc.dispatcher VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Create export for volume failed.

For the full log, see http://logs.openstack.org/45/289445/23/check-tripleo/gate-tripleo-ci-f22-nonha/0ef3627/

Revision history for this message
Attila Darazs (adarazs) wrote :
Changed in tripleo:
assignee: nobody → Emilien Macchi (emilienm)
Changed in tripleo:
assignee: Emilien Macchi (emilienm) → Giulio Fidente (gfidente)
status: New → In Progress
Changed in tripleo:
assignee: Giulio Fidente (gfidente) → Attila Darazs (adarazs)
Revision history for this message
Giulio Fidente (gfidente) wrote :
Changed in tripleo:
importance: Undecided → High
tags: added: puppet
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/296458
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=e6aa510e9d0f84f555dc49e110cc558337567df8
Submitter: Jenkins
Branch: master

commit e6aa510e9d0f84f555dc49e110cc558337567df8
Author: Giulio Fidente <email address hidden>
Date: Wed Mar 23 14:56:29 2016 +0100

    Pass iSCSI bind address in brackets to Cinder when IPv6

    Configure the Cinder iscsi_ip_address key using brackets when
    the IP address is of v6 class.

    Closes-Bug: 1560934
    Change-Id: I783e939ae304385674909bfd9f1cac95e04cef22

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

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/297078

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

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

Changed in tripleo:
assignee: Attila Darazs (adarazs) → Giulio Fidente (gfidente)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/liberty)

Reviewed: https://review.openstack.org/297078
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=db56d9afd09b3ca8cb27c6d32b08fcec89df6820
Submitter: Jenkins
Branch: stable/liberty

commit db56d9afd09b3ca8cb27c6d32b08fcec89df6820
Author: Giulio Fidente <email address hidden>
Date: Wed Mar 23 14:56:29 2016 +0100

    Pass iSCSI bind address in brackets to Cinder when IPv6

    Configure the Cinder iscsi_ip_address key using brackets when
    the IP address is of v6 class.

    Closes-Bug: 1560934
    Change-Id: I783e939ae304385674909bfd9f1cac95e04cef22
    (cherry picked from commit e6aa510e9d0f84f555dc49e110cc558337567df8)

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/298827

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/298828

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/297222
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=992f85b94842abf038c20c21550a3138bea47d85
Submitter: Jenkins
Branch: master

commit 992f85b94842abf038c20c21550a3138bea47d85
Author: Giulio Fidente <email address hidden>
Date: Thu Mar 24 16:23:08 2016 +0100

    Add quotes around the cinder_iscsi_ip_address value

    In I783e939ae304385674909bfd9f1cac95e04cef22 we add brackets around
    the cinder_iscsi_ip_address if IPv6 but that causes hiera to try
    mapping the value into an array, while it isn't. This change adds
    quotes around the brackets.

    Change-Id: Id9bb4b12542f1943e9df702486d68424539c7a59
    Closes-Bug: 1560934

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/liberty)

Reviewed: https://review.openstack.org/298827
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=7308ffa07203e779db10e320ae5f463b25a55746
Submitter: Jenkins
Branch: stable/liberty

commit 7308ffa07203e779db10e320ae5f463b25a55746
Author: Giulio Fidente <email address hidden>
Date: Thu Mar 24 16:23:08 2016 +0100

    Add quotes around the cinder_iscsi_ip_address value

    In I783e939ae304385674909bfd9f1cac95e04cef22 we add brackets around
    the cinder_iscsi_ip_address if IPv6 but that causes hiera to try
    mapping the value into an array, while it isn't. This change adds
    quotes around the brackets.

    Change-Id: Id9bb4b12542f1943e9df702486d68424539c7a59
    Closes-Bug: 1560934
    (cherry picked from commit 992f85b94842abf038c20c21550a3138bea47d85)

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/mitaka)

Reviewed: https://review.openstack.org/298828
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=3195660dcd447ba4ffd7d384e57f0b2614c72650
Submitter: Jenkins
Branch: stable/mitaka

commit 3195660dcd447ba4ffd7d384e57f0b2614c72650
Author: Giulio Fidente <email address hidden>
Date: Thu Mar 24 16:23:08 2016 +0100

    Add quotes around the cinder_iscsi_ip_address value

    In I783e939ae304385674909bfd9f1cac95e04cef22 we add brackets around
    the cinder_iscsi_ip_address if IPv6 but that causes hiera to try
    mapping the value into an array, while it isn't. This change adds
    quotes around the brackets.

    Change-Id: Id9bb4b12542f1943e9df702486d68424539c7a59
    Closes-Bug: 1560934
    (cherry picked from commit 992f85b94842abf038c20c21550a3138bea47d85)

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/tripleo-heat-templates 5.0.0.0b1

This issue was fixed in the openstack/tripleo-heat-templates 5.0.0.0b1 development milestone.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/tripleo-heat-templates 2.1.0

This issue was fixed in the openstack/tripleo-heat-templates 2.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

This issue was fixed in the openstack/tripleo-heat-templates 2.1.0 release.

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

Other bug subscribers

Bug attachments

Remote bug watches

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