yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #82850
[Bug 1881814] [NEW] OpenStack datasource detection fails during init on Hyper-V compute nodes
Public bug reported:
The OpenStack datasource detection fails on an Hyper-V compute (Nova)
node (running on-premises, no cloud provider). It does not try to
attempt to use the metdata endpoint and the instance fails to initialize
properly unless another datasource is used (like ConfigDrive or EC2, the
latter which gives a warning).
The issue is in cloudinit/sources/DataSourceOpenStack.py, in the
detect_openstack function. The DMI data does not match anything
expected.
In Hyper-V the following info is returned from DMI:
grep "" /sys/class/dmi/id/*
/sys/class/dmi/id/bios_date:05/23/2012
/sys/class/dmi/id/bios_vendor:American Megatrends Inc.
/sys/class/dmi/id/bios_version:090006
/sys/class/dmi/id/board_name:Virtual Machine
/sys/class/dmi/id/board_serial:8096-7783-9998-*snip*
/sys/class/dmi/id/board_vendor:Microsoft Corporation
/sys/class/dmi/id/board_version:7.0
/sys/class/dmi/id/chassis_asset_tag:8096-7783-9998-*snip*
/sys/class/dmi/id/chassis_serial:8096-7783-9998-*snip*
/sys/class/dmi/id/chassis_type:3
/sys/class/dmi/id/chassis_vendor:Microsoft Corporation
/sys/class/dmi/id/chassis_version:7.0
/sys/class/dmi/id/modalias:dmi:bvnAmericanMegatrendsInc.:bvr090006:bd05/23/2012:svnMicrosoftCorporation:pnVirtualMachine:pvr7.0:rvnMicrosoftCorporation:rnVirtualMachine:rvr7.0:cvnMicrosoftCorporation:ct3:cvr7.0:
grep: /sys/class/dmi/id/power: Is a directory
/sys/class/dmi/id/product_name:Virtual Machine
/sys/class/dmi/id/product_serial:8096-7783-9998-*snip*
/sys/class/dmi/id/product_uuid:f41d9e0e-c208-*snip*
/sys/class/dmi/id/product_version:7.0
grep: /sys/class/dmi/id/subsystem: Is a directory
/sys/class/dmi/id/sys_vendor:Microsoft Corporation
/sys/class/dmi/id/uevent:MODALIAS=dmi:bvnAmericanMegatrendsInc.:bvr090006:bd05/23/2012:svnMicrosoftCorporation:pnVirtualMachine:pvr7.0:rvnMicrosoftCorporation:rnVirtualMachine:rvr7.0:cvnMicrosoftCorporation:ct3:cvr7.0:
cat /proc/1/environ
HOME=/ init=/sbin/init NETWORK_SKIP_ENSLAVED= TERM=linux
BOOT_IMAGE=/boot/vmlinuz-5.4.0-33-generic drop_caps=
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/
rootmnt=/root
** Affects: cloud-init
Importance: Undecided
Status: New
** Summary changed:
- OpenStack init fails on Hyper-V compute nodes
+ OpenStack datasource detection fails during init on Hyper-V compute nodes
--
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/1881814
Title:
OpenStack datasource detection fails during init on Hyper-V compute
nodes
Status in cloud-init:
New
Bug description:
The OpenStack datasource detection fails on an Hyper-V compute (Nova)
node (running on-premises, no cloud provider). It does not try to
attempt to use the metdata endpoint and the instance fails to
initialize properly unless another datasource is used (like
ConfigDrive or EC2, the latter which gives a warning).
The issue is in cloudinit/sources/DataSourceOpenStack.py, in the
detect_openstack function. The DMI data does not match anything
expected.
In Hyper-V the following info is returned from DMI:
grep "" /sys/class/dmi/id/*
/sys/class/dmi/id/bios_date:05/23/2012
/sys/class/dmi/id/bios_vendor:American Megatrends Inc.
/sys/class/dmi/id/bios_version:090006
/sys/class/dmi/id/board_name:Virtual Machine
/sys/class/dmi/id/board_serial:8096-7783-9998-*snip*
/sys/class/dmi/id/board_vendor:Microsoft Corporation
/sys/class/dmi/id/board_version:7.0
/sys/class/dmi/id/chassis_asset_tag:8096-7783-9998-*snip*
/sys/class/dmi/id/chassis_serial:8096-7783-9998-*snip*
/sys/class/dmi/id/chassis_type:3
/sys/class/dmi/id/chassis_vendor:Microsoft Corporation
/sys/class/dmi/id/chassis_version:7.0
/sys/class/dmi/id/modalias:dmi:bvnAmericanMegatrendsInc.:bvr090006:bd05/23/2012:svnMicrosoftCorporation:pnVirtualMachine:pvr7.0:rvnMicrosoftCorporation:rnVirtualMachine:rvr7.0:cvnMicrosoftCorporation:ct3:cvr7.0:
grep: /sys/class/dmi/id/power: Is a directory
/sys/class/dmi/id/product_name:Virtual Machine
/sys/class/dmi/id/product_serial:8096-7783-9998-*snip*
/sys/class/dmi/id/product_uuid:f41d9e0e-c208-*snip*
/sys/class/dmi/id/product_version:7.0
grep: /sys/class/dmi/id/subsystem: Is a directory
/sys/class/dmi/id/sys_vendor:Microsoft Corporation
/sys/class/dmi/id/uevent:MODALIAS=dmi:bvnAmericanMegatrendsInc.:bvr090006:bd05/23/2012:svnMicrosoftCorporation:pnVirtualMachine:pvr7.0:rvnMicrosoftCorporation:rnVirtualMachine:rvr7.0:cvnMicrosoftCorporation:ct3:cvr7.0:
cat /proc/1/environ
HOME=/ init=/sbin/init NETWORK_SKIP_ENSLAVED= TERM=linux
BOOT_IMAGE=/boot/vmlinuz-5.4.0-33-generic drop_caps=
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/ rootmnt=/root
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1881814/+subscriptions
Follow ups