]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: fix get_data_dir calls for ha-rgw daemons 39143/head
authorAdam King <adking@redhat.com>
Thu, 28 Jan 2021 17:12:57 +0000 (12:12 -0500)
committerAdam King <adking@redhat.com>
Thu, 28 Jan 2021 17:12:57 +0000 (12:12 -0500)
calls need to use the context's data dir rather than daemon type
puts these calls in line with the other daemons

Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/cephadm

index 4739a471e619a4045cb20734bbd2a3e2a6e7c589..ea560d2bddf92a49a82d00768cba1f8ed85f0ee8 100755 (executable)
@@ -2302,7 +2302,7 @@ def get_container_mounts(ctx, fsid, daemon_type, daemon_id,
 
     if daemon_type == HAproxy.daemon_type:
         assert daemon_id
-        data_dir = get_data_dir(fsid, daemon_type, daemon_type, daemon_id)
+        data_dir = get_data_dir(fsid, ctx.data_dir, daemon_type, daemon_id)
         mounts.update(HAproxy.get_container_mounts(data_dir))
 
     if daemon_type == CephIscsi.daemon_type:
@@ -2313,7 +2313,7 @@ def get_container_mounts(ctx, fsid, daemon_type, daemon_id,
 
     if daemon_type == Keepalived.daemon_type:
         assert daemon_id
-        data_dir = get_data_dir(fsid, daemon_type, daemon_type, daemon_id)
+        data_dir = get_data_dir(fsid, ctx.data_dir, daemon_type, daemon_id)
         mounts.update(Keepalived.get_container_mounts(data_dir))
 
     if daemon_type == CustomContainer.daemon_type: