]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: Fix node-exporter deployment. 38946/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Mon, 18 Jan 2021 11:33:36 +0000 (12:33 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Mon, 18 Jan 2021 11:33:36 +0000 (12:33 +0100)
Fixes: 2ce828d5f3682d3eee61e4a4a07a9eedb6a3d04e
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/cephadm/cephadm

index 7c95e08e0e319ccad69c5896856a7816e3f28174..b392b014ecd1bef6733f1e840fe7854d3f54989c 100755 (executable)
@@ -1937,6 +1937,7 @@ def create_daemon_dirs(fsid, daemon_type, daemon_id, uid, gid,
 
         # Set up directories specific to the monitoring component
         config_dir = ''
+        data_dir_root = ''
         if daemon_type == 'prometheus':
             data_dir_root = get_data_dir(fsid, daemon_type, daemon_id)
             config_dir = 'etc/prometheus'
@@ -1955,8 +1956,6 @@ def create_daemon_dirs(fsid, daemon_type, daemon_id, uid, gid,
             config_dir = 'etc/alertmanager'
             makedirs(os.path.join(data_dir_root, config_dir), uid, gid, 0o755)
             makedirs(os.path.join(data_dir_root, config_dir, 'data'), uid, gid, 0o755)
-        else:
-            assert False
 
         # populate the config directory for the component from the config-json
         for fname in required_files: