** Attachment added: "cloudinit.log"
   
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1698839/+attachment/4898601/+files/cloudinit.log

** Description changed:

- There are duplicated logs records in cloud-init logs during init stage only 
with default logging configuration. Logs from other stages are not duplicated. 
-  
+ There are duplicated logs records in cloud-init logs during init stage
+ only with default logging configuration. Logs from other stages are not
+ duplicated.
+ 
  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

** Description changed:

- There are duplicated logs records in cloud-init logs during init stage
- only with default logging configuration. Logs from other stages are not
- duplicated.
+ There are duplicated logs records in cloud-init logs during 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
+   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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1698839

Title:
  Duplicated logs with default logging config

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to