From: Sage Weil Date: Wed, 24 Mar 2021 15:58:34 +0000 (-0400) Subject: cephadm: fix --cap-add=NET_ADMIN X-Git-Tag: v16.2.0~5^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cb8ba013697922c14e2ea69014717e82b95c735f;p=ceph.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 (cherry picked from commit 6a176b02b13c7551705ecffcff4285d52b58e526) --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index baa2ee52d92c..0d34724b1bce 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -2402,7 +2402,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)