From: Sage Weil Date: Wed, 24 Mar 2021 15:58:34 +0000 (-0400) Subject: cephadm: fix --cap-add=NET_ADMIN X-Git-Tag: v17.1.0~2466^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6a176b02b13c7551705ecffcff4285d52b58e526;p=ceph-ci.git cephadm: fix --cap-add=NET_ADMIN Podman wants the = sign. This aligns us with the other --cap-add user (SYS_PTRACE), which uses =. Signed-off-by: Sage Weil --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 1a3387b08e7..dc5c7e0507c 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -2395,7 +2395,7 @@ def get_container(ctx: CephadmContext, elif daemon_type == Keepalived.daemon_type: name = '%s.%s' % (daemon_type, daemon_id) envs.extend(Keepalived.get_container_envs()) - container_args.extend(['--cap-add NET_ADMIN']) + container_args.extend(['--cap-add=NET_ADMIN']) elif daemon_type == CephIscsi.daemon_type: entrypoint = CephIscsi.entrypoint name = '%s.%s' % (daemon_type, daemon_id)