Bug 22991 - libvirt should requires netcat-openbsd
Summary: libvirt should requires netcat-openbsd
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-04 06:15 CEST by Adrien Guichard
Modified: 2018-05-09 08:09 CEST (History)
3 users (show)

See Also:
Source RPM: libvirt-4.2.0-1.mga7
CVE:
Status comment:


Attachments
Patch to recommend netcat-openbsd instead of netcat (713 bytes, patch)
2018-05-09 07:46 CEST, Adrien Guichard
Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.