Project

General

Profile

Bug #46398

cephadm: can't use custom prometheus image

Added by Patrick Seidensal 4 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Category:
cephadm/monitoring
Target version:
% Done:

0%

Source:
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

INFO:cephadm:Non-zero exit code 1 from /usr/bin/podman run --rm --net=host --ipc=host -e CONTAINER_IMAGE=registry.suse.de/suse/containers/suse-caasp/5/containers/caasp/v5/prometheus-server:2.11.1 -e NODE_NAME=home --entrypoint stat registry.suse.de/suse/containers/suse-caasp/5/containers/caasp/v5/prometheus-server:2.11.1 -c %u %g /var/lib/ceph
INFO:cephadm:stat:stderr stat: cannot stat '/var/lib/ceph': No such file or directory
Traceback (most recent call last):
  File "cephadm", line 4866, in <module>

  File "cephadm", line 1205, in _default_image
    return func()
  File "cephadm", line 2905, in command_deploy
    uid, gid = extract_uid_gid_monitoring(daemon_type)
  File "cephadm", line 1869, in deploy_daemon
    else:
  File "cephadm", line 1525, in create_daemon_dirs
    # type: (str, str, Union[int, str], int, int, Optional[str], Optional[str]) ->  None
  File "cephadm", line 1271, in make_log_dir
    # type: (str, Optional[int], Optional[int]) -> str
  File "cephadm", line 1816, in extract_uid_gid
    img = args.image
  File "cephadm", line 2296, in run
    # type: (Optional[int]) -> str
  File "cephadm", line 884, in call_throws
    raise RuntimeError('Failed command: %s' % ' '.join(command))
RuntimeError: Failed command: /usr/bin/podman run --rm --net=host --ipc=host -e CONTAINER_IMAGE=registry.suse.de/suse/containers/suse-caasp/5/containers/caasp/v5/prometheus-server:2.11.1 -e NODE_NAME=home --entrypoint stat registry.suse.de/suse/containers/suse-caasp/5/containers/caasp/v5/prometheus-server:2.11.1 -c %u %g /var/lib/ceph


Related issues

Related to Orchestrator - Bug #47745: cephadm: adopt {prometheus,grafana,alertmanager} fails with "RuntimeError: uid/gid not found" Pending Backport

History

#1 Updated by Patrick Seidensal 4 months ago

  • Status changed from New to In Progress

#2 Updated by Patrick Seidensal 4 months ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 35961

#3 Updated by Sebastian Wagner 3 months ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by Sebastian Wagner 3 months ago

  • Status changed from Pending Backport to Resolved
  • Target version set to v15.2.5

#5 Updated by Tim Serong 21 days ago

  • Related to Bug #47745: cephadm: adopt {prometheus,grafana,alertmanager} fails with "RuntimeError: uid/gid not found" added

Also available in: Atom PDF