Public bug reported:

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

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Attachment added: "cloudinit.log"
   
https://bugs.launchpad.net/bugs/1750984/+attachment/5060176/+files/cloudinit.log

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1750984

Title:
  Duplicated logs with default logging config

Status in cloud-init:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1750984/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to