Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Ubuntu 21.04 Unsupported Operating System #1451

Closed
athiththan11 opened this issue Apr 6, 2022 · 2 comments
Closed

Ubuntu 21.04 Unsupported Operating System #1451

athiththan11 opened this issue Apr 6, 2022 · 2 comments

Comments

@athiththan11
Copy link

athiththan11 commented Apr 6, 2022

Hi Team

When trying to install the OMSAgentForLinux for Ubuntu 21.04 distributions, getting the following errors

Error: Code="VMExtensionHandlerNonTransientError" 
Message="The handler for VM extension type 'Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux' has reported terminal failure for VM extension 'Bastion_OMSExtension' with error message: '[ExtensionOperationError] Non-zero exit code: 51, /var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/omsagent_shim.sh -install
[stdout]
2022/04/05 12:56:36 [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9] Install,failed,51,Unsupported operating system: ubuntu 21.04
[stderr]
y:283: SyntaxWarning: \"is not\" with a literal. Did you mean \"!=\"?
  if exit_code is not 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:309: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  if exit_code is 1 and operation == 'Install':
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:314: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  elif exit_code is 127 and operation == 'Install':
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:325: SyntaxWarning: \"is not\" with a literal. Did you mean \"!=\"?
  elif exit_code is not 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:649: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  if exit_code is 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1002: SyntaxWarning: \"is not\" with a literal. Did you mean \"!=\"?
  if exit_code is not 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1164: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  if cert_exit_code is 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1199: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  if exit_code is 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1203: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  elif exit_code is 1:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1220: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  if exit_code is 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1224: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  elif exit_code is 1:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1275: SyntaxWarning: \"is not\" with a literal. Did you mean \"!=\"?
  if exit_code is not 0:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1279: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  if exit_code is 17:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1300: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  elif exit_code is 19:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1313: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  elif exit_code is 33:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1320: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  elif exit_code is 5:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.14.9/./omsagent.py:1327: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
  elif exit_code is 8:
/var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgen'.\r\r
'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/VMExtensionOMSAgentLinuxTroubleshoot'"

Appreciate how we can overcome this and install the extensions as expected.

Related Issue

@NarineM
Copy link
Contributor

NarineM commented Apr 14, 2022

@athiththan11 That is currently by design. VM extension only supports the following distros: https://docs.microsoft.com/en-us/azure/azure-monitor/agents/agents-overview#linux
We can look into adding version 21 and support it in future release of oms.

@hestolz
Copy link
Contributor

hestolz commented Sep 11, 2024

Thank you for your submission. As previously announced, the Log Analytics agent has been deprecated and has no support as of August 31, 2024. If you use the Log Analytics agent to ingest data to Azure Monitor, migrate now to the new Azure Monitor agent. As part of repo archival, open issues and pull requests will be closed.

@hestolz hestolz closed this as completed Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants