Manila only listens on IPv4 by default

Bug #1338825 reported by Pete Zaitcev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Low
Pete Zaitcev

Bug Description

[zaitcev(admin)@simbelmyne ~]$ netstat -atn | grep 8786
tcp 0 0 0.0.0.0:8786 0.0.0.0:* LISTEN
[zaitcev(admin)@simbelmyne ~]$
[zaitcev(admin)@simbelmyne ~]$ telnet simbelmyne 8786
Trying fd2d:acfb:74cc:1::a...
telnet: connect to address fd2d:acfb:74cc:1::a: Connection refused
Trying 192.168.128.10...
Connected to simbelmyne.
Escape character is '^]'.
^]c

telnet> c
Connection closed.
[zaitcev(admin)@simbelmyne ~]$

[root@simbelmyne zaitcev]# ps auxw| grep manila
manila 5018 0.0 0.3 316968 42868 ? Ss 16:57 0:00 /usr/bin/python /usr/bin/manila-api --config-file /usr/share/manila/manila-dist.conf --config-file /etc/manila/manila.conf --logfile /var/log/manila/api.log

[root@simbelmyne zaitcev]# grep listen /etc/manila/manila.conf
# IP address for OpenStack Share API to listen (string value)
#osapi_share_listen=0.0.0.0
# port for os share api to listen (integer value)
#osapi_share_listen_port=8786

[root@simbelmyne zaitcev]# more /usr/share/manila/manila-dist.conf
# XXX Oslo prevents Manila from starting unless this file exists

In conjunction with a bug in manilaclient (to be addressed separately -- it gives up after first failure), this prevents Manila from working at all.

This happens on manila-2013.2.dev365.g7783371 on Fedora 20. Apparently the following trips it:

[zaitcev@guren ~]$ host simbelmyne
simbelmyne.zaitcev.lan has address 192.168.128.10
simbelmyne.zaitcev.lan has IPv6 address fd2d:acfb:74cc:1::a

Pete Zaitcev (zaitcev)
description: updated
Alex Meade (alex-meade)
summary: - Manila only listens on IPv4
+ Manila only listens on IPv4 by default
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (master)

Change abandoned by Pete Zaitcev (<email address hidden>) on branch: master
Review: https://review.openstack.org/105317
Reason: See Alex Meade's comment about observed regression.

Changed in manila:
milestone: none → kilo-1
Changed in manila:
importance: Undecided → Low
Changed in manila:
milestone: kilo-1 → kilo-2
Changed in manila:
milestone: kilo-2 → kilo-3
Changed in manila:
milestone: kilo-3 → liberty-1
Changed in manila:
milestone: liberty-1 → none
Changed in manila:
assignee: nobody → Pete Zaitcev (zaitcev)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/105317
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=85d3c242a29e95da93949cd79959e066fc7948ed
Submitter: Jenkins
Branch: master

commit 85d3c242a29e95da93949cd79959e066fc7948ed
Author: Pete Zaitcev <email address hidden>
Date: Tue Jul 28 17:12:22 2015 -0600

    Listen on :: instead of 0.0.0.0 by default

    If Manila API runs on a system with IPv6, it listens on IPv4 by default,
    but clients try IPv6 first. The resulting retry is unnecessary. On Linux,
    it is easy to listen on both address families simply by opening an IPv6
    listening socket, so this patch makes use of that feature.

    The listening address may be set explicitly as before. Only the default
    is changed by this patch.

    Closes-Bug: #1338825
    Change-Id: I45dd3c94b332d14a49c78f480cf1f6f69749acf3

Changed in manila:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in manila:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in manila:
milestone: liberty-3 → 1.0.0
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.