Project

General

Profile

Actions

Bug #47916

closed

podman containers running in a detached state do not output logs to journald

Added by Michael Fritch over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
cephadm (binary)
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When a service has failed, it can be difficult to determine the actual cause:

# cephadm logs --name nfs.bar.host1 -- -n 50 
Inferring fsid 9cfc6bda-89b5-413b-830f-01c8ddad63ec
-- Logs begin at Sat 2020-10-03 13:38:32 MDT, end at Tue 2020-10-20 11:04:26 MDT. --
Oct 14 08:19:10 host1 bash[11662]: Error: Failed to evict container: "": Failed to find container "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-remove" in state: no container with name or ID ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-remove found: no such container
Oct 14 08:19:11 host1 bash[11704]: Error: no container with ID or name "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-remove" found: no such container
Oct 14 08:19:26 host1 systemd[1]: ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec@nfs.bar.host1.service: Failed with result 'exit-code'.
Oct 14 08:19:36 host1 systemd[1]: ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec@nfs.bar.host1.service: Scheduled restart job, restart counter is at 2. 
Oct 14 08:19:36 host1 systemd[1]: Stopped Ceph nfs.bar.host1 for 9cfc6bda-89b5-413b-830f-01c8ddad63ec.
Oct 14 08:19:36 host1 systemd[1]: Starting Ceph nfs.bar.host1 for 9cfc6bda-89b5-413b-830f-01c8ddad63ec...
Oct 14 08:19:36 host1 podman[11911]: Error: no container with name or ID ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1 found: no such container
Oct 14 08:19:36 host1 bash[11955]: Error: Failed to evict container: "": Failed to find container "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-add" in state: no container with name or ID ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-add found: no such container
Oct 14 08:19:36 host1 bash[11996]: Error: no container with ID or name "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-add" found: no such container
Oct 14 08:19:48 host1 bash[12197]: Error: Failed to evict container: "": Failed to find container "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1" in state: no container with name or ID ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1 found: no such container
Oct 14 08:19:48 host1 bash[12239]: Error: no container with ID or name "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1" found: no such container
Oct 14 08:19:54 host1 bash[12285]: 23af0d3df127d4c29c1ea37ba74f673999ec1770abacf4eb65b8cf3a5b4333c3
Oct 14 08:19:54 host1 systemd[1]: Started Ceph nfs.bar.host1 for 9cfc6bda-89b5-413b-830f-01c8ddad63ec.
Oct 14 08:20:06 host1 systemd[1]: ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec@nfs.bar.host1.service: Main process exited, code=exited, status=1/FAILURE
Oct 14 08:20:06 host1 bash[12482]: Error: Failed to evict container: "": Failed to find container "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-remove" in state: no container with name or ID ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-remove found: no such container
Oct 14 08:20:06 host1 bash[12527]: Error: no container with ID or name "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-remove" found: no such container
Oct 14 08:20:19 host1 systemd[1]: ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec@nfs.bar.host1.service: Failed with result 'exit-code'.
Oct 14 08:20:29 host1 systemd[1]: ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec@nfs.bar.host1.service: Scheduled restart job, restart counter is at 3. 
Oct 14 08:20:29 host1 systemd[1]: Stopped Ceph nfs.bar.host1 for 9cfc6bda-89b5-413b-830f-01c8ddad63ec.
Oct 14 08:20:29 host1 systemd[1]: Starting Ceph nfs.bar.host1 for 9cfc6bda-89b5-413b-830f-01c8ddad63ec...
Oct 14 08:20:29 host1 podman[12744]: Error: no container with name or ID ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1 found: no such container
Oct 14 08:20:29 host1 bash[12788]: Error: Failed to evict container: "": Failed to find container "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-add" in state: no container with name or ID ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-add found: no such container
Oct 14 08:20:30 host1 bash[12837]: Error: no container with ID or name "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1-grace-add" found: no such container
Oct 14 08:20:38 host1 bash[13035]: Error: Failed to evict container: "": Failed to find container "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1" in state: no container with name or ID ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1 found: no such container
Oct 14 08:20:38 host1 bash[13077]: Error: no container with ID or name "ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec-nfs.bar.host1" found: no such container
Oct 14 08:20:44 host1 bash[13119]: 995fbda5de8426d8c0a54aa76d54f4689ffa87c501659f241d814fe2d7ae015a
Oct 14 08:20:44 host1 systemd[1]: Started Ceph nfs.bar.host1 for 9cfc6bda-89b5-413b-830f-01c8ddad63ec.
Oct 14 08:20:54 host1 systemd[1]: ceph-9cfc6bda-89b5-413b-830f-01c8ddad63ec@nfs.bar.host1.service: Main process exited, code=exited, status=1/FAILURE


Related issues 1 (0 open1 closed)

Related to Orchestrator - Bug #49551: cephadm journald logs are mangledResolved

Actions
Actions

Also available in: Atom PDF