Skip to content

Commit

Permalink
cephadm: fix alertmanager not implemented yet
Browse files Browse the repository at this point in the history
```
Traceback (most recent call last):
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 391, in do_work
    res = self._on_complete_(*args, **kwargs)
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 455, in call_self
    return f(self, *inner_args)
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 2576, in _create_alertmanager
    custom_config=self._generate_alertmanager_config)
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 2051, in _create_daemon
    stdin=json.dumps(cephadm_config))
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 1459, in _run_cephadm
    code, '\n'.join(err)))
RuntimeError: cephadm exited with an error code: 1, stderr:ERROR: alertmanager not implemented yet
```

Signed-off-by: Patrick Seidensal <[email protected]>
  • Loading branch information
p-se committed Mar 3, 2020
1 parent 8d728e0 commit 41fd2f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cephadm/cephadm
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,8 @@ def extract_uid_gid_monitoring(daemon_type):
uid, gid = 65534, 65534
elif daemon_type == 'grafana':
uid, gid = extract_uid_gid(file_path='/var/lib/grafana')
elif daemon_type == 'alertmanager':
uid, gid = extract_uid_gid(file_path='/etc/alertmanager')
else:
raise Error("{} not implemented yet".format(daemon_type))
return uid, gid
Expand Down

0 comments on commit 41fd2f5

Please sign in to comment.