Project

General

Profile

Actions

Bug #7263

closed

ceph-deploy should not use color formatting in non-tty sessions

Added by Alfredo Deza about 10 years ago. Updated about 10 years ago.

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

0%

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

Description

Hopefully this would mean that teuthology logs would not be filled with ANSI escape codes trying to represent
colors:

2014-01-27T02:59:19.921 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mceph_deploy.mon[0m][[1;34mDEBUG[0m ] detecting platform for host vpm076 ...
2014-01-27T02:59:19.966 INFO:teuthology.orchestra.run.err:[10.214.138.132]: Warning: Permanently added 'vpm076,10.214.138.135' (RSA) to the list of known hosts.
2014-01-27T02:59:20.221 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] connected to host: vpm076
2014-01-27T02:59:20.222 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] detect platform information from remote host
2014-01-27T02:59:20.243 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] detect machine type
2014-01-27T02:59:20.250 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mceph_deploy.mon[0m][[1;37mINFO[0m  ] distro info: Fedora 18 Spherical Cow
2014-01-27T02:59:20.250 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] determining if provided host has same hostname in remote
2014-01-27T02:59:20.251 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] get remote short hostname
2014-01-27T02:59:20.252 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] deploying mon to vpm076
2014-01-27T02:59:20.253 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] get remote short hostname
2014-01-27T02:59:20.254 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] remote hostname: vpm076
2014-01-27T02:59:20.256 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] write cluster configuration to /etc/ceph/{cluster}.conf
2014-01-27T02:59:20.259 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] create the mon path if it does not exist
2014-01-27T02:59:20.261 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] checking for done path: /var/lib/ceph/mon/ceph-vpm076/done
2014-01-27T02:59:20.262 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] done path does not exist: /var/lib/ceph/mon/ceph-vpm076/done
2014-01-27T02:59:20.264 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;37mINFO[0m  ] creating keyring file: /var/lib/ceph/tmp/ceph-vpm076.mon.keyring
2014-01-27T02:59:20.265 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;34mDEBUG[0m ] create the monitor keyring file
2014-01-27T02:59:20.266 INFO:teuthology.orchestra.run.err:[10.214.138.132]: [[1mvpm076[0m][[1;37mINFO[0m  ] Running command: sudo ceph-mon --cluster ceph --mkfs -i vpm076 --keyring 
Actions #1

Updated by Alfredo Deza about 10 years ago

  • Status changed from New to Fix Under Review
Actions #2

Updated by Alfredo Deza about 10 years ago

  • Status changed from Fix Under Review to Resolved

Merged into ceph-deploy's master branch 2fcf4bc

Actions

Also available in: Atom PDF