Azure / azure-linux-extensions

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

AADSSHLoginForLinux extension installation fails for Rocky Linux #1875

Open jeffearl opened 5 months ago

jeffearl commented 5 months ago

On Rocky Linux VMs (and likely Alma, as well) the AADSSHLoginForLinux fails to install because the installer script (installer.sh) detects the presence of a /rocky directory on the https://packages.microsoft.com yum repo server. It attempts to use the unpopulated /rocky repo, rather than failing back to the available /rhel repository as it has done in the past.

gdesaboyina commented 4 months ago

Similar problem happening for Oracle Linux too. It's looking for /ol and it gives 403.

Message="The handler for VM extension type 'Microsoft.Azure.ActiveDirectory.AADSSHLoginForLinux' has reported terminal failure for VM extension 'AzureAAD' with error message: '[ExtensionOperationError] Non-zero exit code: 20, /var/lib/waagent/Microsoft.Azure.ActiveDirectory.AADSSHLoginForLinux-1.0.2385.1/./installer.sh install\n[stdout]\nMachine OS: ol v8.9 x86_64\nOS similar to: rhel\nInstalling...\nThis is an Azure machine\nConfiguring microsoft-prod repo\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 1066 0 --:--:-- --:--:-- --:--:-- 1066\nCannot access [https://packages.microsoft.com/ol/.](https://packages.microsoft.com/ol/) HTTP Code: 403\n'.\r\n \r\n'Install handler failed for the extension. More information on troubleshooting is available at [https://aka.ms/vmextensionlinuxtroubleshoot'"](https://aka.ms/vmextensionlinuxtroubleshoot%27%22) Target="12"

alarischu commented 4 months ago

Bump. Confirming the issue. Accidently posted on the wrong repo: https://github.com/MicrosoftDocs/entra-docs/issues/542

shazada commented 1 month ago

Any update on this one?