Bug 1385630

Summary: Backup of IPv6-only host fails
Product: [Fedora] Fedora Reporter: Fritz Elfert <fritz>
Component: BackupPCAssignee: Benjamin Lefoul <lef>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: bjohnson, kevin, lef
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: BackupPC-3.3.1-6.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-27 03:20:04 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:
Attachments:
Description Flags
Patch, fixing this bug
none
Corresponding diff of the spec file none

Description Fritz Elfert 2016-10-17 12:28:35 UTC
Created attachment 1211336 [details]
Patch, fixing this bug

Description of problem:
If attempting to backup a host where the name resolves to an IPv6 address, the backup fails with the following entry in the log file:

Can't find host HOSTNAME via netbios
where HOSTNAME is a clickable link to that host's status page.

Version-Release number of selected component (if applicable):
BackupPC-3.3.1-5.fc24.x86_64
(AFAIK, applies to any version)

How reproducible:
always


Steps to Reproduce:
1. In /etc/BackupPC/hosts, add a host which resolves to an IPv6-Address only.
2. Start a backup of that host
3.

Actual results:
Backup fails, "Can't find host HOSTNAME via netbios" shown in host log and "No ping (host not found)" shown in status overview.


Expected results:
Backup succeeds.

Additional info:

Comment 1 Fritz Elfert 2016-10-17 12:31:22 UTC
Created attachment 1211340 [details]
Corresponding diff of the spec file

Comment 2 Fritz Elfert 2016-10-17 12:43:40 UTC
- The attached patch (1st Attachment) was done against upstream's CVS at Sourceforge but applies flawlessly to the unpacked tarball in rpmbuild.
- Because the attached patch is generic against upstream, it contains some
additions which are not needed on Fedora, because on Fedora the regular ping command can handle both IPv4 and IPv6 addresses. (It introduces a new config var named 'PingPath6' which gets selected, if the target is an IPv6-host).
On Fedora, this new config var can simply point to the same like the 'PingPath' var. On the other hand, Fedora provides ping6 as well and it does not hurt to set it to /usr/bin/ping6.

Cheers
 -Fritz

Comment 3 Benjamin Lefoul 2016-10-18 05:20:43 UTC
Thanks for the patch.

Comment 4 Fedora Update System 2016-10-18 17:27:20 UTC
BackupPC-3.3.1-6.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-8ecbe8673a

Comment 5 Fedora Update System 2016-10-19 07:23:15 UTC
BackupPC-3.3.1-6.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-2304101703

Comment 6 Fedora Update System 2016-10-19 08:29:18 UTC
BackupPC-3.3.1-6.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-353a88458b

Comment 7 Fedora Update System 2016-10-23 22:53:31 UTC
BackupPC-3.3.1-6.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2016-10-27 03:20:04 UTC
BackupPC-3.3.1-6.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2016-10-27 06:19:29 UTC
BackupPC-3.3.1-6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.