Bug 1232036

Summary: radosgw-agent can't use IPv6 destination
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Yehuda Sadeh <yehuda>
Component: RGWAssignee: Alfredo Deza <adeza>
Status: CLOSED CURRENTRELEASE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3.1CC: adeza, cbodley, ceph-eng-bugs, flucifre, hnallurv, kbader, kdreyer, mbenjamin, owasserm, sweil, vakulkar
Target Milestone: rcKeywords: Rebase
Target Release: 1.3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: radosgw-agent-1.2.3-1.el7cp Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-29 22:18:43 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:    
Bug Blocks: 1230323, 1262054    

Description Yehuda Sadeh 2015-06-15 22:57:23 UTC
Description of problem:

Cannot specify IPv6 destination in radosgw-agent. 

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. Specify IPv6 address as the radosgw-agent destination, e.g.:


$ radosgw-agent  --src-access-key ... --src-secret-key ... --dest-access-key ... --dest-secret-key ... http://[1235:56:0:70:5:ffff:4:1234]

Actual results:
Fails:
2015-06-15 15:57:29,965 873 [radosgw_agent][ERROR ] NetworkError: unable to connect to [1235:56:0:70:5:ffff:4:1234] [Errno 22] Invalid argument


Expected results:
Should not fails

Additional info:

Comment 2 Federico Lucifredi 2015-06-16 00:14:30 UTC
Document in release notes.

Workaround: specifying a host name with and associated ipv6 address should work.

Comment 4 Alfredo Deza 2015-06-18 15:03:24 UTC
We will also need to drop Python 2.6 support because urlparse does not support IPV6 in 2.6

Comment 5 Ken Dreyer (Red Hat) 2015-06-22 15:32:23 UTC
(In reply to Alfredo Deza from comment #4)
> We will also need to drop Python 2.6 support because urlparse does not
> support IPV6 in 2.6

From a 1.3 product perspective, this is fine. RHEL 7 ships Python 2.7.5, and Ubuntu Trusty ships Python 2.7.6. And those are the only platforms that 1.3.0 supports.

Comment 6 Alfredo Deza 2015-06-23 19:31:15 UTC
We are now issuing a warning only that this will not work in Python 2.6 and that hostnames should be a fine workaround.

Pull request with changes at https://github.com/ceph/radosgw-agent/pull/31

Comment 7 Alfredo Deza 2015-07-06 13:58:55 UTC
merged commit 1afb6e0 into master

Comment 8 Ken Dreyer (Red Hat) 2015-07-14 20:32:21 UTC
I think we should tag and release a new version upstream with these changes.

Alfredo, Yehuda, should we go with "v1.3" ?

Comment 9 Alfredo Deza 2015-07-15 15:36:24 UTC
the currently released version is 1.2.2, this was a minor bugfix (no functionality was added), would you object to 1.2.3 ? 

I can get this built/pushed today.

Comment 10 Ken Dreyer (Red Hat) 2015-07-15 15:37:37 UTC
(In reply to Alfredo Deza from comment #9)
> the currently released version is 1.2.2, this was a minor bugfix (no
> functionality was added), would you object to 1.2.3 ? 

No objection - that would be excellent.

Comment 11 Alfredo Deza 2015-07-15 17:03:50 UTC
1.2.3 has been released both to PyPI (https://pypi.python.org/pypi/radosgw-agent) and the ceph package repos.

Comment 15 Federico Lucifredi 2015-11-04 18:09:22 UTC
Moving to 1.3.2.

Comment 23 Ken Dreyer (Red Hat) 2016-09-29 22:18:43 UTC
We believe this to be fixed in the latest version of the RHCS 1.3 product; closing.