← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2006518] [NEW] Inconsistent kernel command line datasource detection

 

Public bug reported:

cloud-init has undocumented support for declaring datasources using the
kernel commandline. This proves valuable in edge case scenarios as a
workaround when ds-identify detection is broken.

This behavior is inconsistently supported across datasources, several of
which[1] do some form of runtime detection in the datasource module
which may override cmdline-specified datasources.

We should either fix current behavior or provide a new key name in the
cmdline that always overrides runtime cloud-init detection in all
datasources (likely involving a refactor into the datasource class).
Once complete, this should be documented.


Originally reported in [2].

[1] one example: https://github.com/canonical/cloud-init/blob/02202954c65a7a1cdb9b28703bd0af01edd0e091/cloudinit/sources/DataSourceOpenStack.py#L271
[2] https://bugs.launchpad.net/cloud-init/+bug/1815990

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

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

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

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

Title:
  Inconsistent kernel command line datasource detection

Status in cloud-init:
  Triaged

Bug description:
  cloud-init has undocumented support for declaring datasources using
  the kernel commandline. This proves valuable in edge case scenarios as
  a workaround when ds-identify detection is broken.

  This behavior is inconsistently supported across datasources, several
  of which[1] do some form of runtime detection in the datasource module
  which may override cmdline-specified datasources.

  We should either fix current behavior or provide a new key name in the
  cmdline that always overrides runtime cloud-init detection in all
  datasources (likely involving a refactor into the datasource class).
  Once complete, this should be documented.

  
  Originally reported in [2].

  [1] one example: https://github.com/canonical/cloud-init/blob/02202954c65a7a1cdb9b28703bd0af01edd0e091/cloudinit/sources/DataSourceOpenStack.py#L271
  [2] https://bugs.launchpad.net/cloud-init/+bug/1815990

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



Follow ups