]> 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>
Wed, 24 Mar 2021 21:45:55 +0000 (16:45 -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>
src/cephadm/cephadm

index 1a3387b08e781430eaadf464f75c3a920da2dd8b..dc5c7e0507c1b5ea5776fcc263f8ae3d24ff2de3 100755 (executable)
@@ -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)