yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #64893
[Bug 1698077] [NEW] variant value is "unknown" on FreeBSD when invoking util.system_info()
Public bug reported:
When I run "python3 tools/render-cloudcfg config/cloud.cfg.tmpl
config/cloud.cfg" on FreeBSD, the cloud.cfg was created for ubuntu
instead of FreeBSD. After investigation, I found the root cause is
util.system_info().
platform.platform() gets "FreeBSD-11.0-RELEASE-p9-amd64-64bit-ELF" on
FreeBSD 11.0. So, the following code does not work as expected.
if plat.startswith('darwin'):
info['variant'] = 'darwin'
elif plat.endswith("bsd"):
info['variant'] = 'bsd'
** Affects: cloud-init
Importance: Undecided
Status: New
--
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/1698077
Title:
variant value is "unknown" on FreeBSD when invoking util.system_info()
Status in cloud-init:
New
Bug description:
When I run "python3 tools/render-cloudcfg config/cloud.cfg.tmpl
config/cloud.cfg" on FreeBSD, the cloud.cfg was created for ubuntu
instead of FreeBSD. After investigation, I found the root cause is
util.system_info().
platform.platform() gets "FreeBSD-11.0-RELEASE-p9-amd64-64bit-ELF" on
FreeBSD 11.0. So, the following code does not work as expected.
if plat.startswith('darwin'):
info['variant'] = 'darwin'
elif plat.endswith("bsd"):
info['variant'] = 'bsd'
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1698077/+subscriptions
Follow ups