Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated backport of #1793: nettest: add iproute #1798

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Revert to busybox nc for metricsproxy
nmap-ncat is causing issues in metricsproxy with globalnet:

Ncat: Version 7.92 ( https://nmap.org/ncat )
Ncat: Listening on :::8081
Ncat: Listening on 0.0.0.0:8081
Ncat: Connection from 10.129.0.19.
Ncat: Connection from 10.129.0.19:45064.
Ncat: assertion failed: count <= INT_MAX QUITTING.

It's not clear how to fix that, so this installs busybox and reverts
to busybox nc instead. To avoid having too many changes in nettest,
nmap-ncat is preserved for other uses.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
skitt committed Jan 6, 2025

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
commit 3b924e8cd652bae564bd97f144e5ea8501bb39a9
2 changes: 1 addition & 1 deletion package/Dockerfile.nettest
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ COPY scripts/shared/dnf_install /

RUN /dnf_install -a ${TARGETPLATFORM} -v ${FEDORA_VERSION} -r /output/nettest \
glibc bash glibc-minimal-langpack coreutils-single libcurl-minimal \
bind-utils curl-minimal iperf3 iproute iputils netperf nmap-ncat tcpdump
bind-utils busybox curl-minimal iperf3 iproute iputils netperf nmap-ncat tcpdump

FROM scratch
ARG TARGETPLATFORM
2 changes: 1 addition & 1 deletion scripts/nettest/metricsproxy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

# Arguments: source-port target-IP target-port
exec /usr/bin/ncat -v -lk -p "$1" -c "/usr/bin/ncat $2 $3"
exec /usr/sbin/busybox nc -v -lk -p "$1" -e /usr/sbin/busybox nc "$2" "$3"