← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1569469] [NEW] smartos datasource stacktrace if no system-product-name in dmi data

 

Public bug reported:

if there is no product name in dmi data, cloud-init log will show

DataSourceCloudSigma.py[WARNING]: failed to get hypervisor product name via dmi data
util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceSmartOS.DataSourceSmartOS'> failed
util.py[DEBUG]: Getting data from <class 'cloudinit.sources.DataSourceSmartOS.DataSourceSmartOS'> failed#
Traceback (most recent call last):#
  File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 266, in find_source#
    if s.get_data():#
  File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceSmartOS.py", line 250, in get_data#
    if 'smartdc' not in system_type.lower():#
AttributeError: 'NoneType' object has no attribute 'lower'


Fix is simple enough.

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

** Affects: cloud-init (Ubuntu)
     Importance: Medium
         Status: Confirmed

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

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

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

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

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

Title:
  smartos datasource stacktrace if no system-product-name in dmi data

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

Bug description:
  if there is no product name in dmi data, cloud-init log will show

  DataSourceCloudSigma.py[WARNING]: failed to get hypervisor product name via dmi data
  util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceSmartOS.DataSourceSmartOS'> failed
  util.py[DEBUG]: Getting data from <class 'cloudinit.sources.DataSourceSmartOS.DataSourceSmartOS'> failed#
  Traceback (most recent call last):#
    File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 266, in find_source#
      if s.get_data():#
    File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceSmartOS.py", line 250, in get_data#
      if 'smartdc' not in system_type.lower():#
  AttributeError: 'NoneType' object has no attribute 'lower'

  
  Fix is simple enough.

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


Follow ups