Bug 1461161

Summary: Log Collection fails via IPv6
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Šimon Lukašík <slukasik>
Status: CLOSED ERRATA QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.8.0CC: abellott, cpelland, gtanzill, hkataria, jhardy, kmorey, mpovolny, obarenbo, tpapaioa
Target Milestone: GAKeywords: ZStream
Target Release: 5.8.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ipv6:log_collect
Fixed In Version: 5.8.1.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1452224 Environment:
Last Closed: 2017-08-02 17:31:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1452224    
Bug Blocks:    

Comment 2 CFME Bot 2017-06-13 17:16:28 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/3b4ce6e91aaf7c7423f4e62ffe986a32af84a390

commit 3b4ce6e91aaf7c7423f4e62ffe986a32af84a390
Author:     Oleg Barenboim <chessbyte>
AuthorDate: Mon Jun 12 14:32:37 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Tue Jun 13 13:10:23 2017 -0400

    Merge pull request #15344 from isimluk/rhbz#1452224
    
    Support IPv6 for log collection
    (cherry picked from commit db6dc4ca84b16bf80f7579bcc515e7a416c1cb27)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1461161

 app/models/file_depot_ftp.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 3 Tasos Papaioannou 2017-06-29 20:34:27 UTC
1.) Anonymous ftp log collection over IPv6 works with a hostname that resolves to an IPv6 address in the URI, e.g., with /etc/hosts:

# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
2001:db8:0:1::129 tpapaioa-cfme

the collection URIs ftp://localhost6/pub/upload and ftp://tpapaioa-cfme/pub/upload connect to ::1 and 2001:db8:0:1::129, respectively.

2.) Specifying an IPv6 address directly in the URI also works:

Log Depot URI        ftp://[::1]/pub/upload
Last Log Collection  2017-06-29 20:33:38 UTC
Last Message         Log files were successfully collected

Log Depot URI        ftp://[2001:db8:0:1::129]/pub/upload
Last Log Collection  2017-06-29 20:30:43 UTC
Last Message         Log files were successfully collected

Comment 5 errata-xmlrpc 2017-08-02 17:31:22 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://access.redhat.com/errata/RHSA-2017:1758