Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smartos datasource stacktrace if no system-product-name in dmi data #2647

Closed
ubuntu-server-builder opened this issue May 10, 2023 · 1 comment
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1569469

Launchpad details
affected_projects = ['cloud-init (Ubuntu)']
assignee = None
assignee_name = None
date_closed = None
date_created = 2016-04-12T16:54:20.732802+00:00
date_fix_committed = None
date_fix_released = None
id = 1569469
importance = medium
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1569469
milestone = None
owner = smoser
owner_name = Scott Moser
private = False
status = confirmed
submitter = smoser
submitter_name = Scott Moser
tags = []
duplicates = []

Launchpad user Scott Moser(smoser) wrote on 2016-04-12T16:54:20.732802+00:00

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.

@ubuntu-server-builder ubuntu-server-builder added bug Something isn't working correctly launchpad Migrated from Launchpad labels May 10, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Launchpad Janitor(janitor) wrote on 2016-04-13T19:03:59.692745+00:00

This bug was fixed in the package cloud-init - 0.7.7~bzr1208-0ubuntu1


cloud-init (0.7.7~bzr1208-0ubuntu1) xenial; urgency=medium

  • New upstream snapshot.
    • phone_home: allow usage of fqdn (LP: #1566824) [Ollie Armstrong]
    • chef: straighten out validation_cert and validation_key (LP: #1568940)
    • skip bridges when generating fallback networking (LP: #1569974)
    • rh_subscription: only check subscription if configured (LP: #1536706)
    • SmartOS, CloudSigma: fix error when dmi data is not availble
      (LP: #1569469)
    • DataSourceNoCloud: fix check_instance_id when upgraded (LP: #1568150)
    • lxd: adds basic support for dpkg based lxd-bridge
      configuration. (LP: #1569018)
    • centos: Ensure that a resolve conf object is written as a string.
      (LP: #1479988)

-- Scott Moser smoser@ubuntu.com Wed, 13 Apr 2016 13:19:03 -0400

@holmanb holmanb closed this as completed Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

2 participants