← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1966085] Re: cloud-init status --wait never returns if datasource not found

 

** Also affects: cloud-init (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: cloud-init (Ubuntu)
   Importance: Undecided => High

** Changed in: cloud-init (Ubuntu)
       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/1966085

Title:
  cloud-init status --wait never returns if datasource not found

Status in cloud-init:
  Triaged
Status in cloud-init package in Ubuntu:
  Triaged

Bug description:
  Calling "cloud-init status --wait" never returns if ds-identify cannot
  find a datasource.

  In https://github.com/canonical/cloud-init/pull/1162, we modified
  status checks to wait until we get an "enabled" or "disabled" file
  from ds-identiy. ds-identify never outputs a "disabled" file, so
  "status --wait" will wait indefinitely if no datasource is found.

  A simple reproduction is to change "ret=1" on this line:
  https://github.com/canonical/cloud-init/blob/main/tools/ds-identify#L1866

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



References