Duplicated logs with default logging config

Bug #1750984 reported by Pafnut
6
This bug affects 1 person
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/cloudinit/cloudinit.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/cloud/instance/obj.pkl - wb: [256] 20235 bytes
2017-06-19 13:56:05,438 - util.py[DEBUG]: Writing to /var/lib/cloud/instance/obj.pkl - wb: [256] 20235 bytes
2017-06-19 13:56:05,439 - main.py[DEBUG]: used datasource 'DataSourceOpenStack [net,ver=2]' from 'OpenStack' was in di_report's list: ['OpenStack', 'None']
2017-06-19 13:56:05,439 - main.py[DEBUG]: used datasource 'DataSourceOpenStack [net,ver=2]' from 'OpenStack' was in di_report's list: ['OpenStack', 'None']

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-g513e99e0-0ubuntu1~16.04.1
  Candidate: 0.7.9-113-g513e99e0-0ubuntu1~16.04.1
  Version table:
 *** 0.7.9-113-g513e99e0-0ubuntu1~16.04.1 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.7.7~bzr1212-0ubuntu1 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

What you expected to happen: No duplicated logs with default logging config

What happened instead: Duplicated log records with default logging

Revision history for this message
Pafnut (pafnut-e) wrote :
Revision history for this message
Pafnut (pafnut-e) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

Hi,
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/cloud.cfg.d/05_logging.cfg:

   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.

Changed in cloud-init:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cloud-init because there has been no activity for 60 days.]

Changed in cloud-init:
status: Incomplete → Expired
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.