-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Monitor Agent does not support Ubuntu 24.04 #1935
Comments
Same here. az vm extension image list-versions --publisher Microsoft.Azure.Monitor --name AzureMonitorLinuxAgent --location "EastUs"
|
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 -_- |
same here |
I get a similar error, where it 's complaining about 'imp' not being found. Python 3.13 on the latest 24.04 ubuntu image. Reverting back to this image allows it to install/provision: "imageReference": {
"publisher": "canonical",
"offer": "0001-com-ubuntu-server-jammy",
"sku": "22_04-lts-gen2",
"version": "latest"
}, |
Any update on this bug ? (For reference, it's a duplicate of #1908) |
I believe that the pattern of dynamically loading waagent is probably considered deprecated now. I logged some details here: #1956 1956 |
With the nearing Log Analytics Agent deprecation, more than never making AMA support stable versions of Linux should be priority. Ubuntu 24.04 LTS was officially released almost 4 months ago. Can we get a date here? |
I managed to run the install script manually adding 24.04. The issue isn't just related to not recognizing 24.04, the way the extension wants to install is no longer supported by Python 3.12 onwards and has been on deprecation path for quite a while.<https://docs.python.org/3.10/library/imp.html>
Arc agent (azcmagent) for instance, install like a deb package since first release. And that's how all Python modules will be handled from now on.
If it were just a code edit, we would get it soon(er), but as it stands, we're looking at pretty much a redesign, sadly =/
Hoping to be wrong about that though. (crossed fingers)
…________________________________
De: fmcrr-admin ***@***.***>
Enviado: sexta-feira, 23 de agosto de 2024 02:25
Para: Azure/azure-linux-extensions ***@***.***>
Cc: David Garrana Coelho ***@***.***>; Manual ***@***.***>
Assunto: Re: [Azure/azure-linux-extensions] Azure Monitor Agent does not support Ubuntu 24.04 (Issue #1935)
I got the defender agent to install just by changing 22.04 to 24.04 in the install script, installed fine and is working fine. I cant do that here since its all automated, with no manual way.
—
Reply to this email directly, view it on GitHub<#1935 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A2OLA2P272RH2RQJ4VRYN2DZS3BTBAVCNFSM6AAAAABKRYTJEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBWGMYTMNBRGQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
I've added a pull request to fix this. #1964 |
I don't know the whole story on how it works without waagent nor the internal team's priority mission, but a short-term hotfix would be nice. |
Hi Team, any update on this issue, azure supports creating VMs with the Ubuntu 24.04 image but has not way of installing the monitoring agent, I would be nice if we could get at least a temporary fix for this issue quickly |
Just to move the conversation forward, looks like the September release of the AMA for Linux (1.33.1) added support for Ubuntu 24.04 LTS. |
are you sure? I tried that a few weeks ago when it was released and still did not work. @SteveBurkettNZ, I have tried it again and no it does not work. MS docs at its best mixed with TF docs. |
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
The text was updated successfully, but these errors were encountered: