Cinder not working with IPv6 ISCSI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned | ||
os-brick |
Fix Released
|
Wishlist
|
Lukas Bezdicka |
Bug Description
Testing configuring Openstack completely with IPv6
Found that IP address parsing was thrown in a lot of cases because of need to have '[]' encasing the address, or not for use with URLs and the parsing of some user space 3rd party C binaries - iscsiadm for example. All the others are best left by using a name set to the IPv6 address in the /etc/hosts file, iSCSI though its not possible.
Got Cinder working by setting iscsi_ip_address (/etc/cinder/
--- nova/virt/
+++ nova/virt/
@@ -833,7 +833,7 @@
def _get_host_
"""Find device path in devtemfs."""
device = ("ip-%s-
- (transport_
+ (transport_
if self._get_
Nova-compute was looking for '/dev/disk/
This one can't be worked around by using the /etc/hosts file. iscsiadm and tgt ned the IPv6 address wrapped in '[]', and iscsadm uses it in output. The above patch could be matched with a bi ihte cinder code that puts '[]' around iscsi_ip_address if if it is not supplied.
More work is obvioulsy need on a convention for writing IPv6 addresses in the Openstack configuration files, and there will be a lot of places where code will need to be tweaked.
Lets start by fixing this blooper/lo hanging one first though as it makes it possible to get Cinder working in a pure IPv6 environment. Above may be a bit of a hack, but only one one code path needs adjustment...
affects: | app-catalog → nova |
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Triaged |
no longer affects: | cinder |
Changed in nova: | |
assignee: | Tony Breeds (o-tony) → nobody |
Changed in os-brick: | |
status: | Fix Released → Invalid |
status: | Invalid → Fix Released |
Changed in nova: | |
status: | In Progress → Confirmed |
Fix proposed to branch: master /review. openstack. org/204737
Review: https:/