tests: Replace ncat with socat in migration test and drop ncat from containers

nmap / ncat has a somewhat problematic license (e.g. saying claiming
that derived work is also considered for software that "is designed
specifically to execute Covered Software and parse the results", e.g.
by executing ncat from your own program, you might already fall into
this category) - so for example in openSUSE 16, you can only find it
in the "non-OSS" repository.

We are currently only using it in the migration functional test, and
that likely does not fall into this "derived work" category yet (since
it is also doing some other stuff), but still, to be safe, we should
move away from using it now.

Unfortunately, switching to one of the other flavors of netcat is
also not a real option (see commit f700abbbeb),
but socat should be a solid replacement here instead.

To avoid that someone else easily uses ncat again, let's also remove
it from our container files now.

Suggested-by: Daniel P. Berrangé <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
Acked-by: Peter Xu <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-ID: <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
This commit is contained in:
Thomas Huth authored and Alex Bennée committed 2026-03-23 13:13:07 +00:00
1 parent b68e5bc1ed
commit 643a171f56
21 files changed
+2 -22

No files matched your search

@@ -101,7 +101,6 @@ packages:
- make
- mtools
- multipath-tools
- ncat
- nettle-dev
- ninja-build
- openssh-client
@@ -102,7 +102,6 @@ packages:
- make
- mtools
- multipath-tools
- ncat
- nettle-dev
- ninja-build
- openssh-client
@@ -100,7 +100,6 @@ packages:
- make
- mtools
- multipath-tools
- ncat
- nettle-dev
- ninja-build
- openssh-client
-1
View File
@@ -76,7 +76,6 @@ RUN apk update && \
ndctl-dev \
net-tools \
nettle-dev \
nmap-ncat \
numactl-dev \
openssh-client \
pcre2-dev \
-1
View File
@@ -87,7 +87,6 @@ RUN dnf --quiet distro-sync -y && \
ncurses-devel \
nettle-devel \
ninja-build \
nmap-ncat \
numactl-devel \
openssh-clients \
pam-devel \
@@ -37,7 +37,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
locales \
make \
mtools \
ncat \
ninja-build \
openssh-client \
pkgconf \
@@ -37,7 +37,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
locales \
make \
mtools \
ncat \
ninja-build \
openssh-client \
pkgconf \
@@ -37,7 +37,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
locales \
make \
mtools \
ncat \
ninja-build \
openssh-client \
pkgconf \
@@ -37,7 +37,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
locales \
make \
mtools \
ncat \
ninja-build \
openssh-client \
pkgconf \
@@ -37,7 +37,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
locales \
make \
mtools \
ncat \
ninja-build \
openssh-client \
pkgconf \
@@ -37,7 +37,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
locales \
make \
mtools \
ncat \
ninja-build \
openssh-client \
pkgconf \
@@ -37,7 +37,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
locales \
make \
mtools \
ncat \
ninja-build \
openssh-client \
pkgconf \
@@ -37,7 +37,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
locales \
make \
mtools \
ncat \
ninja-build \
openssh-client \
pkgconf \
@@ -37,7 +37,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
locales \
make \
mtools \
ncat \
ninja-build \
openssh-client \
pkgconf \
-1
View File
@@ -109,7 +109,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
make \
mtools \
multipath-tools \
ncat \
nettle-dev \
ninja-build \
openssh-client \
@@ -96,7 +96,6 @@ exec "$@"\n' > /usr/bin/nosync && \
ncurses-devel \
nettle-devel \
ninja-build \
nmap-ncat \
numactl-devel \
openssh-clients \
pam-devel \
@@ -42,7 +42,6 @@ exec "$@"\n' > /usr/bin/nosync && \
make \
mtools \
ninja-build \
nmap-ncat \
openssh-clients \
python3 \
python3-PyYAML \
-1
View File
@@ -96,7 +96,6 @@ exec "$@"\n' > /usr/bin/nosync && \
ncurses-devel \
nettle-devel \
ninja-build \
nmap-ncat \
numactl-devel \
openssh-clients \
pam-devel \
@@ -107,7 +107,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
make \
mtools \
multipath-tools \
ncat \
nettle-dev \
ninja-build \
openssh-client \
+2 -2
View File
@@ -84,6 +84,6 @@ class MigrationTest(QemuSystemTest):
self.skipTest('ncat is not available')
with Ports() as ports:
free_port = self._get_free_port(ports)
dst_uri = 'exec:ncat -l localhost %u' % free_port
src_uri = 'exec:ncat localhost %u' % free_port
dst_uri = 'exec:socat TCP-LISTEN:%u -' % free_port
src_uri = 'exec:socat - TCP:localhost:%u' % free_port
self.migrate(dst_uri, src_uri)
-1
View File
@@ -83,7 +83,6 @@ packages:
- meson
- mtools
- ncursesw
- netcat
- nettle
- ninja
- nsis