From cb8ba013697922c14e2ea69014717e82b95c735f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 24 Mar 2021 11:58:34 -0400 Subject: [PATCH] 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) --- src/cephadm/cephadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index baa2ee52d92cb..0d34724b1bceb 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) -- 2.39.5