Azure / Azure/azure-linux-extensions
[LAD]Linux Diagnostic Extension 3.0 fails to be enabled in RHEL-8
- Dominant language
- Python
- Stars
- 333
- Forks
- 278
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
Description:
The LAD fails to be enabled in RHEL-8.8 because of no policycoreutils-python package. This package is changed to policycoreutils-python-utils in RHEL-8.
Besides, the tar is already installed. Not sure why it cannot be detected by the LAD extension.
Version:
Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.141
Log(/var/log/azure/Microsoft.Azure.Diagnostics.LinuxDiagnostic/extension.log):
```
2023/02/23 04:01:20 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.141] Run with timeout: rpm -q policycoreutils-python; if [ ! $? == 0 ]; then yum install -y policycoreutils-python; fi
2023/02/23 04:01:24 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.141] Return None
2023/02/23 04:01:24 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.141] Run with timeout: rpm -q tar; if [ ! $? == 0 ]; then yum install -y tar; fi
2023/02/23 04:01:25 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.141] Return None
2023/02/23 04:01:25 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.141] package policycoreutils-python is not installed
2023/02/23 04:01:25 Last metadata expiration check: 0:16:31 ago on Thu 23 Feb 2023 03:44:50 AM EST.
2023/02/23 04:01:25 No match for argument: policycoreutils-python
2023/02/23 04:01:25 Error: Unable to find a match: policycoreutils-python
2023/02/23 04:01:25 tar-1.30-9.el8.x86_64
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the LAD 3.0 enablement path and /var/log/azure/Microsoft.Azure.Diagnostics.LinuxDiagnostic/extension.log. Reproduce the package checks on RHEL-8.8, compare policycoreutils-python with policycoreutils-python-utils, and verify tar detection; done means the extension enables successfully without the reported package error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cloud, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100