Issue with multiple extensions on RHEL 8.0
See original GitHub issueThere are issues with multiple extension on RHEL 8.0 (RedHat:RHEL:8:latest)
ISSUE
waagent uses /usr/libexec/platform-python from the platform-python package, all the python extensions use the unversioned python command which is not installed on the image:
# waagent --version
WALinuxAgent-2.2.32.2 running on redhat 8.0
Python: 3.6.8
Goal state agent: 2.2.40
..
# /usr/bin/env python --version
/usr/bin/env: ‘python’: No such file or directory
Because of this the extensions fail to install:
[stderr]
/usr/bin/env: ‘python’: No such file or directory
..
[stderr]
No Python interpreter found on the box
SOLUTION
I recommend you install python 2.7 using the command below as I have seen some issues with some extensions and python 3.6:
sudo yum install python2 -y
sudo alternatives --set python /usr/bin/python2
RELATED
- [VMAccess] Does not work in RHEL-8
- [OmsAgentForLinux] Install fails on RHEL 8.0
- [VMSnapshotLinux] Install fails on RHEL 8.0 / Backups fails
REQUEST
Maybe waagent could check for the unversioned python command and report a error in the log if it cannot find it.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
1802105 – rpm based extensions in RHEL8 should not ...
Supported GNOME Shell extensions now update only from system packages RHEL distributes certain supported GNOME Shell extensions as system RPM packages.
Read more >Enabling Session Collaboration on a RHEL 9.x Desktop
In the desktop environment, run gnome-extensions-app and then enable AppIndicator and KStatusNotifierItem Support. The session collaboration ...
Read more >Linux diagnostic extension 4.0 - Azure Virtual Machines
The Linux diagnostic extension supports many distributions and versions. The following list of distributions and versions applies only to Azure-endorsed ...
Read more >RHEL 8 - Unable to complete pyPDF2 offline installation due ...
pip install typing-extensions. In newer Python versions that package is not required. You can also edit the source of PyPDF2 to remove all...
Read more >Red Hat Enterprise Linux 8.5 8.5 Release Notes
NOTABLE CHANGES TO INTERNATIONALIZATION IN RHEL 8 ... known technical issues, is now available with all RHEL subscriptions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@larohra a lot of people are having this issue, you might want to leave this open so it is easier for people to find
See https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/issues-using-vm-extensions-python-3
If it’s not an image problem or an agent problem, is it an extension problem? If it’s an extension WONTFIX, then extensions should graciously fail or ensure proper guardrails are applied to set user expectations accordingly.