Bug 22991

Summary: libvirt should requires netcat-openbsd
Product: Mageia Reporter: Adrien Guichard <guichard.adrien>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: guichard.adrien, lists.jjorge, marja11
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: libvirt-4.2.0-1.mga7 CVE:
Status comment:
Attachments: Patch to recommend netcat-openbsd instead of netcat

Description Adrien Guichard 2018-05-04 06:15:41 CEST
when trying to connect via ssh to libvirtd using virsh or virt-manager, connection fails complaining nc missing -U option.

"nc -U" is available in netcat-openbsd, not in netcat-traditional.

How to reproduce:
if using netcat-traditional in server
$ virsh -c qemu+ssh://root@192.168.1.2/system
erreur :impossible de se connecter à l'hyperviseur
erreur :End of file while reading data: nc: invalid option -- 'U'
nc -h for help: Erreur d'entrée/sortie


if using netcat-openbsd
$ LANG=C; virsh -c qemu+ssh://root@192.168.1.2/system
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # list
 Id    Name                           State
----------------------------------------------------
 1     mageia6                        running
 2     fedora27                       running

virsh #
Comment 1 Marja Van Waes 2018-05-04 12:16:14 CEST
Assigning to all packagers collectively, since there is no registered maintainer for this package.

Assignee: bugsquad => pkg-bugs
CC: (none) => marja11

Comment 2 Adrien Guichard 2018-05-09 07:46:54 CEST
Created attachment 10137 [details]
Patch to recommend netcat-openbsd instead of netcat

This patch makes libvirt-utils recommend netcat-openbsd.

netcat-openbsd is mandatory for "nc -U" support.

CC: (none) => guichard.adrien

Comment 3 José Jorge 2018-05-09 08:09:50 CEST
Applied

CC: (none) => lists.jjorge
Resolution: (none) => FIXED
Status: NEW => RESOLVED