Azure / Azure/WALinuxAgent

[BUG] Flatcar Linux 3602.2.1 Boot Errors

Open
#2,984 2 comments 0 reactions 1 assignee Claimed by @anhvoms View on GitHub
provisioning
Dominant language
Python
Stars
581
Forks
397
Avg merge
2d 15h
Merged PRs (30d)
9

Description

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](https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux)

```
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](https://github.com/Azure/WALinuxAgent/assets/11713022/8bfa63d2-cd57-438b-8ace-b442a4190965)

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](https://github.com/Azure/WALinuxAgent/files/13358604/waagent.log)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.