Azure / azure-linux-extensions

Linux Virtual Machine Extensions for Azure
Apache License 2.0
301 stars 251 forks source link

Azure Monitor Agent does not support Ubuntu 24.04 #1935

Open jantekb opened 3 weeks ago

jantekb commented 3 weeks ago

When installed on a vanilla Ubuntu 24.04 image, the deployment fails with the below error:

[ExtensionOperationError] Non-zero exit code: 51, /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.31.1/./shim.sh -install [stdout] Python 3.12.3 Importing utils failed with error: No module named 'imp' Unable to initialize waagent log because of exception name 'waagent' is not defined Info: Azure Monitoring Agent for Linux started to handle. Error: Unsupported operating system: ubuntu 24.04 Error: Unsupported operating system: ubuntu 24.04 [stderr] /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.31.1/./agent.py:38: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13 import crypt

hAislt commented 3 weeks ago

Same here. What about those versions below? I also tried with those through TF but they are not listed in MS docs and it didn't work.

az vm extension image list-versions --publisher Microsoft.Azure.Monitor --name AzureMonitorLinuxAgent --location "EastUs"

"id": "/Subscriptions/x/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor/ArtifactTypes/VMExtension/Types/AzureMonitorLinuxAgent/Versions/1.31.1",
    "location": "eastus",
    "name": "1.31.1"
  },
  {
    "id": "/Subscriptions/x/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor/ArtifactTypes/VMExtension/Types/AzureMonitorLinuxAgent/Versions/1.5.126",
    "location": "eastus",
    "name": "1.5.126"
  },
  {
    "id": "/Subscriptions/x/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor/ArtifactTypes/VMExtension/Types/AzureMonitorLinuxAgent/Versions/1.5.127",
    "location": "eastus",
    "name": "1.5.127"
  },
  {
    "id": "/Subscriptions/x/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor/ArtifactTypes/VMExtension/Types/AzureMonitorLinuxAgent/Versions/1.5.133",
    "location": "eastus",
    "name": "1.5.133"
  },
  {
    "id": "/Subscriptions/x/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor/ArtifactTypes/VMExtension/Types/AzureMonitorLinuxAgent/Versions/1.6.2",
    "location": "eastus",
    "name": "1.6.2"
  },
  {
    "id": "/Subscriptions/x/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor/ArtifactTypes/VMExtension/Types/AzureMonitorLinuxAgent/Versions/1.7.0",
    "location": "eastus",
    "name": "1.7.0"
  },
  {
    "id": "/Subscriptions/x/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor/ArtifactTypes/VMExtension/Types/AzureMonitorLinuxAgent/Versions/1.7.1",
    "location": "eastus",
    "name": "1.7.1"
  },
  {
    "id": "/Subscriptions/x/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor/ArtifactTypes/VMExtension/Types/AzureMonitorLinuxAgent/Versions/1.9.1",
    "location": "eastus",
    "name": "1.9.1"
  }
]
zaubergulasch commented 2 weeks ago

Same here with pfsense / FreeBSD 15 (Azure Image)

[Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.31.1] Indeterminate operating system 2024/07/15 09:48:55 [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.31.1] Install,failed,51,Indeterminate operating system Failed to check disk usage. [stderr] /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.31.1/./agent.py:38: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13 import crypt

-_-

jungsooooo commented 5 days ago

same here [stderr] /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.31.1/./agent.py:38: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13 import crypt '.