Duplicated logs with default logging config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Undecided
|
Unassigned |
Bug Description
There are duplicated logs records in cloud-init logs with default logging configuration.
Default logging configuration is used (via tee)
output: { all: "| tee -a /var/log/
In the attached cloudinit.log duplicated logs starts from line 314:
WARN: no logging configured! (tried 0 configs)
Setting up basic logging...
2017-06-19 13:56:05,438 - util.py[DEBUG]: Writing to /var/lib/
2017-06-19 13:56:05,438 - util.py[DEBUG]: Writing to /var/lib/
2017-06-19 13:56:05,439 - main.py[DEBUG]: used datasource 'DataSourceOpen
2017-06-19 13:56:05,439 - main.py[DEBUG]: used datasource 'DataSourceOpen
Release:
#lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Package version:
#apt-cache policy cloud-init
cloud-init:
Installed: 0.7.9-113-
Candidate: 0.7.9-113-
Version table:
*** 0.7.9-113-
500 http://
100 /var/lib/
0.
500 http://
What you expected to happen: No duplicated logs with default logging config
What happened instead: Duplicated log records with default logging
Hi, cloud.cfg. d/05_logging. cfg:
Your cloud.cfg that is attached differs from the version provided in 16.04, or upstream.
normally you'd find the following in /etc/cloud/
output: {all: '| tee -a /var/log/ cloud-init- output. log'}
So it looks like local configuration is just incorrect. Please set bug to New aain if you think i've diagnosed this wrong.