Bug 1378428

Summary: openstack-swift-proxy.service fails to start in IPv6 envrionment
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: puppet-tripleoAssignee: Emilien Macchi <emacchi>
Status: CLOSED ERRATA QA Contact: Omri Hochman <ohochman>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: cschwede, dbecker, egafford, emacchi, jjoyce, jschluet, jslagle, mabrams, mburns, morazi, nyechiel, rhel-osp-director-maint, sclewis, scohen, shardy, slinaber, tvignaud
Target Milestone: rcKeywords: Regression, Triaged
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-tripleo-5.1.0-0.20160921213932.ceccbfd.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-14 16:03:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1390010    
Bug Blocks:    
Attachments:
Description Flags
proxy-server.conf none

Description Marius Cornea 2016-09-22 11:51:11 UTC
Created attachment 1203693 [details]
proxy-server.conf

Description of problem:
openstack-swift-proxy.service fails to start in IPv6 envrionment:

swift-proxy-server[4552]: Traceback (most recent call last):
swift-proxy-server[4552]: File "/usr/bin/swift-proxy-server", line 23, in <module>
swift-proxy-server[4552]: sys.exit(run_wsgi(conf_file, 'proxy-server', **options))
swift-proxy-server[4552]: File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 908, in run_wsgi
swift-proxy-server[4552]: loadapp(conf_path, global_conf=global_conf)
swift-proxy-server[4552]: File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 396, in loadapp
swift-proxy-server[4552]: return ctx.create()
swift-proxy-server[4552]: File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
swift-proxy-server[4552]: return self.object_type.invoke(self)
swift-proxy-server[4552]: File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 207, in invoke
swift-proxy-server[4552]: app = filter(app)
swift-proxy-server[4552]: File "/usr/lib/python2.7/site-packages/swift/common/middleware/memcache.py", line 117, in cache_filter
swift-proxy-server[4552]: return MemcacheMiddleware(app, conf)
swift-proxy-server[4552]: File "/usr/lib/python2.7/site-packages/swift/common/middleware/memcache.py", line 105, in __init__
swift-proxy-server[4552]: max_conns=max_conns)
swift-proxy-server[4552]: File "/usr/lib/python2.7/site-packages/swift/common/memcached.py", line 156, in __init__
swift-proxy-server[4552]: for server in servers))
swift-proxy-server[4552]: File "/usr/lib/python2.7/site-packages/swift/common/memcached.py", line 156, in <genexpr>
swift-proxy-server[4552]: for server in servers))
swift-proxy-server[4552]: File "/usr/lib/python2.7/site-packages/swift/common/memcached.py", line 115, in __init__
swift-proxy-server[4552]: server, DEFAULT_MEMCACHED_PORT)
swift-proxy-server[4552]: File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 2098, in parse_socket_string
swift-proxy-server[4552]: raise ValueError("IPv6 addresses must be between '[]'")
swift-proxy-server[4552]: ValueError: IPv6 addresses must be between '[]'


Version-Release number of selected component (if applicable):
openstack-puppet-modules-9.0.0-0.20160802183056.8c758d6.el7ost.noarch
openstack-heat-templates-0.0.1-0.20160906185549.ac2db55.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy IPv6 enabled overcloud 
2. Check swift-proxy-server status

Actual results:
● openstack-swift-proxy.service                                               loaded failed failed    OpenStack Object Storage (swift) - Proxy Server


Expected results:
Service is running

Additional info:
Attaching /etc/swift/proxy-server.conf

Comment 2 Marius Cornea 2016-09-22 11:55:32 UTC
Adding the memcache_servers addresses in square brackets made it work:

memcache_servers = [fd00:fd00:fd00:2000::18]:11211,[fd00:fd00:fd00:2000::11]:11211,[fd00:fd00:fd00:2000::1c]:11211

Comment 3 James Slagle 2016-09-22 16:27:05 UTC
emilien, can you take a look at this one?

Comment 5 James Slagle 2016-10-03 14:36:41 UTC
i believe this has been built downstream. can you confirm and if so, set the Fixed in Version and move the bug to MODIFIED?

Comment 20 errata-xmlrpc 2016-12-14 16:03:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-2948.html