Azure / Azure/azure-linux-extensions

AADSSHLoginForLinux not working with Ubuntu 22.04 LTS

Open
#1,528 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
333
Forks
278
Avg merge
2d 9h
Merged PRs (30d)
4

Description

When I try to deploy it via Azure Portal I receive an error during the deployment:

`{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see [https://aka.ms/DeployOperations](https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2FDeployOperations&data=05%7C01%7Cv-gadv%40microsoftsupport.com%7C776b148d733741c8c6d508da27633bc9%7Cb4c546a47dac46a6a7dded822a11efd3%7C0%7C0%7C637865604403615305%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jnLU1dy77u5DTfuUs68cR3d%2FmB0swCe85GFAESkZXp0%3D&reserved=0) for usage details.","details":[{"code":"VMExtensionHandlerNonTransientError","message":"The handler for VM extension type 'Microsoft.Azure.ActiveDirectory.AADSSHLoginForLinux' has reported terminal failure for VM extension 'AADSSHLoginForLinux' with error message: '[ExtensionOperationError] Non-zero exit code: 51, /var/lib/waagent/Microsoft.Azure.ActiveDirectory.AADSSHLoginForLinux-1.0.1713.1/./installer.sh install\n[stdout]\nMachine OS: ubuntu v22.04\nInstalling...\nStopping apt-daily.timer\nStopping apt-daily-upgrade.timer\nThis is an Azure machine\nConfiguring microsoft-prod repo\nStarting apt-daily-upgrade.timer\nStarting apt-daily.timer\n\n\n[stderr]\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 16 100 16 0 0 1285 0 --:--:-- --:--:-- --:--:-- 1333\nUnsupported Linux version. Learn more at [https://aka.ms/AADSSHLogin\n'.\r\n](https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2FAADSSHLogin%2Fn%27.%2Fr%2Fn&data=05%7C01%7Cv-gadv%40microsoftsupport.com%7C776b148d733741c8c6d508da27633bc9%7Cb4c546a47dac46a6a7dded822a11efd3%7C0%7C0%7C637865604403771523%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QaaEaLQwoVfKXH6HT93bb%2B2XCfmrIJCXF0uhLSvJXlM%3D&reserved=0) \r\n'Install handler failed for the extension. More information on troubleshooting is available at [https://aka.ms/vmextensionlinuxtroubleshoot'"}](https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fvmextensionlinuxtroubleshoot%27%2522%257d&data=05%7C01%7Cv-gadv%40microsoftsupport.com%7C776b148d733741c8c6d508da27633bc9%7Cb4c546a47dac46a6a7dded822a11efd3%7C0%7C0%7C637865604403771523%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=L1nba3%2BxvMjAUHJqvvQBCZHGPbwK4FZWW7SdkqA461g%3D&reserved=0)]}`

If I try to deploy the extension via azcli it stays forever in “Running…”

It looks like the extension doesn't support Ubuntu 22.04 LTS as if I substitute in the /etc/os-release file 22.04 to 20.04 the extension installation goes smoothly and it works like a charm.

Any scheduled update to natively support 22.04 images?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the extension's installer.sh and the Ubuntu version reported through /etc/os-release. Reproduce deployment through Azure Portal or azcli on Ubuntu 22.04 and compare it with the reported 20.04 workaround. Done means the extension installs successfully on Ubuntu 22.04 without reporting an unsupported Linux version.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, ubuntu
Domain
cloud, devops, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.