Azure / WALinuxAgent

Microsoft Azure Linux Guest Agent
http://azure.microsoft.com/
Apache License 2.0
534 stars 371 forks source link

[BUG] Flatcar Linux 3602.2.1 Boot Errors #2984

Open bignay2000 opened 10 months ago

bignay2000 commented 10 months ago

Getting errors booting a multi-disk flatcar linux image.

2023-11-14T18:11:49.020850Z INFO Daemon Daemon Azure Linux Agent Version:2.6.0.2
2023-11-14T18:11:49.022269Z INFO Daemon Daemon OS: flatcar 3602.2.1
2023-11-14T18:11:49.023217Z INFO Daemon Daemon Python: 3.10.10
2023-11-14T18:11:49.024276Z INFO Daemon Daemon Run daemon
2023-11-14T18:11:49.025137Z INFO Daemon Daemon No RDMA handler exists for distro='Flatcar Container Linux by Kinvolk' version='3602.2.1'
2023-11-14T18:11:49.037300Z INFO Daemon Daemon Unable to get cloud-init enabled status from systemctl: Command '['systemctl', 'is-enabled', 'cloud-init-local.service']' returned non-zero exit status 1.
2023-11-14T18:11:49.043683Z INFO Daemon Daemon Unable to get cloud-init enabled status from service: [Errno 2] No such file or directory: 'service'
2023-11-14T18:11:49.048121Z INFO Daemon Daemon cloud-init is enabled: False
2023-11-14T18:11:49.050555Z INFO Daemon Daemon Using waagent for provisioning
2023-11-14T18:11:49.053263Z INFO Daemon Daemon Activate resource disk
2023-11-14T18:11:49.055581Z INFO Daemon Daemon Searching gen1 prefix 00000000-0001 or gen2 f8b3781a-1e82-4818-a1c3-63d806ec15bb
2023-11-14T18:11:49.065311Z INFO Daemon Daemon Found device: None
2023-11-14T18:11:49.067684Z ERROR Daemon Daemon Failed to mount resource disk [ResourceDiskError] unable to detect disk topology
2023-11-14T18:11:49.071412Z ERROR Daemon Daemon Event: name=WALinuxAgent, op=ActivateResourceDisk, message=[ResourceDiskError] unable to detect disk topology, duration=0

Additional context

Flatcar is an official supported OS, so this agent should be able to detect the disk topology. Also getting an unsupported OS error despite being listed as an official OS Microsoft Azure Linux Agent

2023-11-14T22:11:55.641723Z ERROR ExtHandler ExtHandler Event: name=Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux, op=Install, message=[ExtensionOperationError] Non-zero exit code: 51, /var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.17.2/omsagent_shim.sh -install
[stdout]
2023/11/14 22:11:54 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.17.2] Install,failed,51,Unsupported operating system: flatcar 3602.2.1

image

Submitted a corresponding bug with the Flatcar GitHub repository - https://github.com/flatcar/Flatcar/issues/1253 Log file attached If possible, please provide the full /var/log/waagent.log file to help us understand the problem better and get the context of the issue. waagent.log

bignay2000 commented 10 months ago

https://github.com/Azure/WALinuxAgent/pull/2779
@narrieta I would appreciate your input.

narrieta commented 10 months ago

@anhvoms provisioning issue