]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: fix --cap-add=NET_ADMIN
authorSage Weil <sage@newdream.net>
Wed, 24 Mar 2021 15:58:34 +0000 (11:58 -0400)
committerSage Weil <sage@newdream.net>
Fri, 26 Mar 2021 12:33:13 +0000 (07:33 -0500)
Podman wants the = sign.  This aligns us with the other --cap-add user
(SYS_PTRACE), which uses =.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 6a176b02b13c7551705ecffcff4285d52b58e526)

src/cephadm/cephadm

index baa2ee52d92cbac85b84f09e197baa5e9474eaef..0d34724b1bcebede739d552b9e83b2d8daee49f6 100755 (executable)
@@ -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)