]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
debian/control: add iproute2 to build dependencies 66732/head
authorKefu Chai <k.chai@proxmox.com>
Wed, 24 Dec 2025 05:55:26 +0000 (13:55 +0800)
committerKefu Chai <k.chai@proxmox.com>
Wed, 24 Dec 2025 06:17:24 +0000 (14:17 +0800)
Test scripts like qa/tasks/cephfs/mount.py expect the ip command to be
available in the container environment. Without it, tests fail with:

```
  /bin/bash: line 1: ip: command not found

  File "/ceph/qa/tasks/cephfs/mount.py", line 96, in cleanup_stale_netnses_and_bridge
    p = remote.run(args=['ip', 'netns', 'list'],
  ...
  teuthology.exceptions.CommandFailedError: Command failed with status 127: 'ip netns list'
```

Add iproute2 to the debian package build dependencies when the
<pkg.ceph.check> build profile is enabled. This ensures the package is
available during container-based builds, since buildcontainer-setup.sh
→ script/run-make.sh → install-deps.sh → debian/control → generated
dependency package chain respects build profiles configured via
`FOR_MAKE_CHECK` and `WITH_CRIMSON` environment variables set in
Dockerfile.build.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
debian/control

index 215c4194ab60abf85ffd85c0e211468adc8a5490..18eb8429867b45cbe205467bbeaf8d1e24ca7054 100644 (file)
@@ -21,6 +21,7 @@ Build-Depends: automake,
                golang,
                gperf,
                g++ (>= 11),
+               iproute2 <pkg.ceph.check>,
                javahelper,
                jq <pkg.ceph.check>,
                jsonnet <pkg.ceph.check>,