← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1524256] [NEW] cloud-init-blocknet generates too many log files

 

Public bug reported:

The /inits/upstart/cloud-init-blocknet.conf Upstart script logs to a
file that reflects the network interface name, e.g. cloud-init-blocknet-
network-interface_eth0.log for eth0.

When running Docker, a lot of interfaces are created on the fly with
randomly generated names, e.g. veth7679c8e.log. Every time a new Docker
container is started, an interface is created, and this triggers the
cloud-init-blocknet script. Every invocation generates a log file
containing a single line, "network-interface/veth7679c8e[1408819.97]:
/run/cloud-init/local-finished found".

If you start and stop your Docker containers a lot (this is not
unusual), this generates a huge number of files in /var/log/upstart (I
just deleted ~100,000 files from one server).

I suggest that the cloud-init-blocknet logs to a single log file or not
at all when these interfaces are created on the fly.

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

-- 
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/1524256

Title:
  cloud-init-blocknet generates too many log files

Status in cloud-init:
  New

Bug description:
  The /inits/upstart/cloud-init-blocknet.conf Upstart script logs to a
  file that reflects the network interface name, e.g. cloud-init-
  blocknet-network-interface_eth0.log for eth0.

  When running Docker, a lot of interfaces are created on the fly with
  randomly generated names, e.g. veth7679c8e.log. Every time a new
  Docker container is started, an interface is created, and this
  triggers the cloud-init-blocknet script. Every invocation generates a
  log file containing a single line, "network-
  interface/veth7679c8e[1408819.97]: /run/cloud-init/local-finished
  found".

  If you start and stop your Docker containers a lot (this is not
  unusual), this generates a huge number of files in /var/log/upstart (I
  just deleted ~100,000 files from one server).

  I suggest that the cloud-init-blocknet logs to a single log file or
  not at all when these interfaces are created on the fly.

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


Follow ups