cinder-backup from ceph with ipv6 is broken

Bug #1640914 reported by Jon Bernard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
Fix Released
Undecided
Jon Bernard

Bug Description

When cinder is configured to use ipv6, a cinder-backup from a ceph volume will
fail to connect. This happens because cinder-backup calls to os-brick to
connect to the ceph cluster - which generates a temporary ceph.conf file in
/tmp. This file contains a list of monitor IP addresses and ports like:

mon_host =
    fd00:fd00:fd00:3000::14:6789,
    fd00:fd00:fd00:3000::17:6789,
    fd00:fd00:fd00:3000::1d:6789

For ipv6, the ip addresses must be enclosed in square brackets to prevent
confusion with the port number. The correct string should instead be:

mon_host =
    [fd00:fd00:fd00:3000::14]:6789,
    [fd00:fd00:fd00:3000::17]:6789,
    [fd00:fd00:fd00:3000::1d]:6789

The same change applied to ipv4 addresses works also, no regressions.

If you need a formal reference, see RFC 3986, Section 3.2.2.

Revision history for this message
Jon Bernard (jbernard) wrote :
Changed in cinder:
assignee: nobody → Jon Bernard (jbernard)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-brick 1.9.0

This issue was fixed in the openstack/os-brick 1.9.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-brick 1.6.2

This issue was fixed in the openstack/os-brick 1.6.2 release.

Eric Harney (eharney)
Changed in os-brick:
status: New → Fix Released
assignee: nobody → Jon Bernard (jbernard)
no longer affects: cinder
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.