]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/workunits/rgw: drop netstat usage 67185/head
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Fri, 21 Nov 2025 21:20:04 +0000 (22:20 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Tue, 3 Feb 2026 14:02:38 +0000 (15:02 +0100)
commitcc55305ed5c954ec15b177f3e7904e75eb1bd9f8
treef050b82a028c794fdcba8b30b6f9891089aeaa92
parentebdb888f8c62b979a78b3b18132147bc10366ed6
qa/workunits/rgw: drop netstat usage

The `netstat` is deprecated now in modern Linux and usually
requires an extra package dependency to be installed.
Usually it is `net-tools`, however, for example, opensuse,
`netstat` does not present in it. Thus, let us use `ss` as
an alternative.

When using `netstat -nltp` we get lines like:
   'tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      25156/valgrind.bin  \ntcp6       0      0 :::443                  :::*                    LISTEN      25156/valgrind.bin  \n'
When using `ss -nltp` we get lines like:
   'LISTEN 0      4096           0.0.0.0:443       0.0.0.0:*    users:(("memcheck-amd64-",pid=66045,fd=72))'
so we need to filter processes by `memcheck`. However further
parsing code works equivalently as for netstat.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
(cherry picked from commit 82063f99024a8937dfa105e0828beda1bc730247)
qa/workunits/rgw/test_rgw_d4n.py
qa/workunits/rgw/test_rgw_datacache.py