← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1715738] [NEW] Cloud config modules are not skipped based on distro support

 

Public bug reported:

cloudinit.stages emits logs messages like the following when the
cloudconfig module's distro attribute doesn't match the running
disribution

When a cloudinit.config.cc*py module distros attribute doesn't match the
discovered Distribution.name, cloudinit.stages emits a log message about
skipping the module in the following form:

2017-09-07 06:03:25,838 - stages.py[INFO]: Skipping modules ['runcmd']
because they are not verified on distro 'ubuntu'. To run anyway, add
them to 'unverified_modules' in config.

But, it doesn't actually skip running the module, we can see in the logging that follows:
Running module runcmd (<module 'cloudinit.config.cc_runcmd' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_runcmd.py'>) with frequency once-per-instance.

cloudinit.stages should honor a skipped module and avoid running its
handler.

** Affects: cloud-init
     Importance: Medium
         Status: Confirmed

** Changed in: cloud-init
       Status: New => Confirmed

** Changed in: cloud-init
   Importance: Undecided => Medium

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

Title:
  Cloud config modules are not skipped based on distro support

Status in cloud-init:
  Confirmed

Bug description:
  cloudinit.stages emits logs messages like the following when the
  cloudconfig module's distro attribute doesn't match the running
  disribution

  When a cloudinit.config.cc*py module distros attribute doesn't match
  the discovered Distribution.name, cloudinit.stages emits a log message
  about skipping the module in the following form:

  2017-09-07 06:03:25,838 - stages.py[INFO]: Skipping modules ['runcmd']
  because they are not verified on distro 'ubuntu'. To run anyway, add
  them to 'unverified_modules' in config.

  But, it doesn't actually skip running the module, we can see in the logging that follows:
  Running module runcmd (<module 'cloudinit.config.cc_runcmd' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_runcmd.py'>) with frequency once-per-instance.

  cloudinit.stages should honor a skipped module and avoid running its
  handler.

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


Follow ups