Project

General

Profile

Actions

Bug #47480

closed

cephadm: tcmu-runner container is logging inside the container

Added by Dimitri Savineau over 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
cephadm
Target version:
-
% Done:

20%

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

Description

The tcmu-runner container uses the same bind mounts than rbd-target-api container.

        mounts[os.path.join(data_dir, 'config')] = '/etc/ceph/ceph.conf:z'
        mounts[os.path.join(data_dir, 'keyring')] = '/etc/ceph/keyring:z'
        mounts[os.path.join(data_dir, 'iscsi-gateway.cfg')] = '/etc/ceph/iscsi-gateway.cfg:z'
        mounts[os.path.join(data_dir, 'configfs')] = '/sys/kernel/config'
        mounts[log_dir] = '/var/log/rbd-target-api:z'
        mounts['/dev'] = '/dev'

The tcmu-runner log file is /var/log/tcmu-runner.log by default.

There's no need to have the /var/log/rbd-target-api bind mount for this container.

Currently nothing bind mount the /var/log/tcmu-runner.log file on the host so tcmu-runner is logging inside the container.


Related issues 1 (0 open1 closed)

Has duplicate Orchestrator - Feature #52740: cephadm: make tcmu-runner log available from the hostClosed

Actions
Actions #1

Updated by Sebastian Wagner over 3 years ago

  • Priority changed from Normal to High
Actions #2

Updated by Juan Miguel Olmo Martínez about 3 years ago

  • Assignee set to Juan Miguel Olmo Martínez
Actions #3

Updated by Juan Miguel Olmo Martínez about 3 years ago

  • % Done changed from 0 to 20
Actions #4

Updated by Sebastian Wagner almost 3 years ago

https://pulpito.ceph.com/swagner-2021-05-11_09:16:20-rados:cephadm-wip-swagner-testing-2021-05-06-1235-distro-basic-smithi/

2021-05-11T09:58:15.798 INFO:journalctl@ceph.iscsi.iscsi.a.smithi159.stdout:May 11 09:58:15 smithi159 bash[36833]: log file path now is '/var/log/tcmu-runner.log'

Actions #5

Updated by Sebastian Wagner almost 3 years ago

I created an upstream issue for this: https://github.com/open-iscsi/tcmu-runner/issues/658

Actions #6

Updated by Xiubo Li almost 3 years ago

The tcmu-runner has already logged some logs to the syslog.

Actions #7

Updated by Sebastian Wagner almost 3 years ago

  • Assignee deleted (Juan Miguel Olmo Martínez)
Actions #8

Updated by Sebastian Wagner over 2 years ago

  • Has duplicate Feature #52740: cephadm: make tcmu-runner log available from the host added
Actions #9

Updated by Guillaume Abrioux over 2 years ago

  • Status changed from New to In Progress
  • Pull request ID set to 43319
Actions #10

Updated by Sebastian Wagner over 2 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF