[Yahoo-eng-team] [Bug 1702256] [NEW] [Hyper-V][Azure]cloudinit fail to get_source on Azure

2017-07-04 Thread Hongjiang Zhang
Public bug reported: cloud-init on Azure cannot work properly: This is in fact a regression, caused by commit: ebc9ecbc8a76bdf511a456fb72339a7eb4c20568 The issue happens in the following code: cloudinit/source/DataSourceAzure.py. The removal of "sources.DEP_NETWORK" makes sources.list_sources()

[Yahoo-eng-team] [Bug 1698077] [NEW] variant value is "unknown" on FreeBSD when invoking util.system_info()

2017-06-14 Thread Hongjiang Zhang
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-64

[Yahoo-eng-team] [Bug 1697815] [NEW] [Hyper-V][Azure]ifdown/ifup fail to run on FreeBSD

2017-06-13 Thread Hongjiang Zhang
Public bug reported: An error was found when cloud-init running on FreeBSD, even it does not impact the functionality. There is an error in /var/log/cloud-init.log complaining "ifdown" and "ifup" fail to run. ** Affects: cloud-init Importance: Undecided Status: New -- You received

[Yahoo-eng-team] [Bug 1697635] [NEW] [Hyper-V][Azure]ssh session will timeout for a short while for FreeBSD on Azure

2017-06-13 Thread Hongjiang Zhang
Public bug reported: If we install cloud-init on a FreeBSD VHD which does not install waagent previously, and upload this VHD to Azure. It works fine for SSH connection. But after a short while (~5 seconds), the SSH session is broken. The reason is cloud-init does not set "ClientAliveInterval" in

[Yahoo-eng-team] [Bug 1696295] [NEW] [Hype-V][Azure]cloud-init failed to create user if "/mnt/cdrom/secure" does not exist

2017-06-06 Thread Hongjiang Zhang
Public bug reported: On Azure, cloud-init (head) fails to mount cdrom /dev/cd0 on FreeBSD if the directory /mnt/cdrom/secure does not exist. In fact, "mount" should not depends on any directory. The quick fix is to use "util.mount_cd" to test whether cdrom is available or not. ** Affects: cloud-i

[Yahoo-eng-team] [Bug 1636345] [NEW] cloud-init on FreeBSD for Azure does not work

2016-10-24 Thread Hongjiang Zhang
Public bug reported: I run cloud-init 0.7.6 on FreeBSD 10.3 on Azure. But it cannot work because it find data source through "blkid" command which is not supported on FreeBSD. Please refer to https://github.com/Azure/WALinuxAgent about how to find CDROM on FreeBSD. root@honzhancloudinit:/usr/hom