Azure / Azure/azure-linux-extensions

AzureMonitorAgent shim.sh not working on RHEL8 when different python3/2 is installed

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

Description

Hi,
in the shim.sh of azure monitor agent you are making the following assumptions:

https://github.com/Azure/azure-linux-extensions/blob/3cf888f02cbd7178f911797de39049ecc4dcb8dd/AzureMonitorAgent/shim.sh#L14-L22

about python

You can't do them at least on a RHEL8 python3 is not the python being used to waagent (on which python modules you rely in your code).
I am guessing you need to look at which python is being used by the azure agent and then use the same one.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.