Project

General

Profile

Bug #41158

ceph-volume prints log messages to stdout

Added by Jan Fajerski almost 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
nautilus, mimic, luminous
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

[root@osd1 /]# ceph-volume simple scan /dev/sda1 --stdout 2>/dev/null
Running command: /usr/sbin/cryptsetup status /dev/sda1
Running command: /bin/mount -v /dev/sda1 /tmp/tmp_NrdoM
stdout: mount: /dev/sda1 mounted on /tmp/tmp_NrdoM.
Running command: /bin/umount -v /tmp/tmp_NrdoM {
"active": "ok",
"ceph_fsid": "f3ea8c89-3b32-4abd-8aa9-07d1e6319e3b",
"cluster_name": "ceph",
"data": {
"path": "/dev/sda1",
"uuid": "de0465d1-b00b-4bd6-b1da-92e8f6cf0aef" 
},
"fsid": "de0465d1-b00b-4bd6-b1da-92e8f6cf0aef",
"journal": {
"path": "/dev/sdc1",
"uuid": "b8e4707c-c28a-45fb-913f-6680a5f3b2d4" 
},
"journal_uuid": "b8e4707c-c28a-45fb-913f-6680a5f3b2d4",
"keyring": "AQDSiUld6XdXGxAAksb27KOAv5/byZ9ybu8J9w==",
"magic": "ceph osd volume v026",
"none": "",
"ready": "ready",
"require_osd_release": 14,
"type": "filestore",
"whoami": 10
}
[root@osd1 /]#

We should avoid logging to stdout at all times.


Related issues

Copied from ceph-volume - Bug #38548: ceph-volume prints errors to stdout with --format json Resolved 03/01/2019
Copied to ceph-volume - Backport #41201: mimic: ceph-volume prints log messages to stdout Resolved
Copied to ceph-volume - Backport #41202: luminous: ceph-volume prints log messages to stdout Resolved
Copied to ceph-volume - Backport #41203: nautilus: ceph-volume prints log messages to stdout Resolved

History

#1 Updated by Jan Fajerski almost 2 years ago

  • Copied from Bug #38548: ceph-volume prints errors to stdout with --format json added

#2 Updated by Jan Fajerski almost 2 years ago

  • Pull request ID changed from 27675 to 29547
  • Affected Versions v0.80.10 added

#3 Updated by Jan Fajerski almost 2 years ago

  • Affected Versions v15.0.0 added
  • Affected Versions deleted (v0.80.10)

#4 Updated by Jan Fajerski almost 2 years ago

  • Status changed from New to Pending Backport

#5 Updated by Jan Fajerski almost 2 years ago

  • Copied to Backport #41201: mimic: ceph-volume prints log messages to stdout added

#6 Updated by Jan Fajerski almost 2 years ago

  • Copied to Backport #41202: luminous: ceph-volume prints log messages to stdout added

#7 Updated by Jan Fajerski almost 2 years ago

  • Copied to Backport #41203: nautilus: ceph-volume prints log messages to stdout added

#8 Updated by Jan Fajerski over 1 year ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF