← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1693939] Re: Switch Azure detection to use chassis_asset_tag

 

** Changed in: cloud-init (Ubuntu Yakkety)
       Status: Fix Committed => Won't Fix

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

Title:
  Switch Azure detection to use chassis_asset_tag

Status in cloud-init:
  Fix Committed
Status in cloud-init package in Ubuntu:
  Fix Released
Status in cloud-init source package in Xenial:
  Fix Released
Status in cloud-init source package in Yakkety:
  Won't Fix
Status in cloud-init source package in Zesty:
  Fix Released

Bug description:
  === Begin SRU Template ===
  [Impact]
  Azure identifies itself to guests by setting a well known value in the chassis asset field of dmi data.  This is done both in Azure public cloud and in Azure Stack (the on-premise variant of Azure).

  By checking for this value cloud-init can more quickly identify
  whether or not it is running on Azure.

  [Test Case]
   - Launch an instance, enable proposed, upgrade.
   - Clean instance and re-boot
     $ rm -Rf /var/lib/cloud /var/log/cloud-init*
     $ rm -f /etc/cloud/cloud.cfg.d/91_walinuxagent.cfg  # bug 1700769
     $ reboot

   - ssh back in look around
     - confirm 'WARN' does not appear in /var/log/cloud-init*
     - look in /run/cloud-init/ds-identify.log.  It should say:
        Found single datasource: Azure

   - reboot, ssh back in and verify all still good.

  [Regression Potential]
  Instances running in Azure or Azure Stack that did *not* have this value
  would not be identified as Azure.  We have been told by representatives
  from Microsoft that that will not be the case.

  [Other Info]
  Upstream commit at
    https://git.launchpad.net/cloud-init/commit/?id=5fb49bac

  === End SRU Template ===

  I've got confirmation that the chassis_asset_tag DMI value is a hard-
  coded identifier for the Azure platform (both Azure and Azure Stack
  (the on-premise variant of Azure)).

  $ cat /sys/class/dmi/id/chassis_asset_tag
  7783-7084-3265-9085-8269-3286-77

  The detection logic in both ds-identify and Azure ds should be updated
  to use this value.

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


References