Azure / Azure/azure-linux-extensions
LinuxDiagnostic-3.0.121: Failed to set up mdsd dependencies
- Dominant language
- Python
- Stars
- 333
- Forks
- 278
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
LinuxDiagnostic-3.0.121 install fails, OmsAgentForLinux-1.11.5 is installed.
### Error:
```
[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] RunCmd grep '^\s*httpsport\s*=' /etc/opt/omi/conf/omiserver.conf | grep -v '^\s*httpsport\s*=\s*0\s*$'
ERROR:CalledProcessError. Error Code is 1
ERROR:CalledProcessError. Command string was grep '^\s*httpsport\s*=' /etc/opt/omi/conf/omiserver.conf | grep -v '^\s*httpsport\s*=\s*0\s*$'
ERROR:CalledProcessError. Command result was
[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] Return 1:
[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] RunCmd sh /opt/microsoft/omsagent/bin/configure_syslog.sh configure LAD 25229
[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] Return 0:Configuring rsyslog for OMS logging
Restarting service: rsyslog
[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] RunCmd sh /opt/microsoft/omsagent/bin/configure_syslog.sh restart LAD
[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] Return 0:Restarting service: rsyslog
[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] RunCmd /opt/microsoft/omsagent/bin/service_control restart LAD
ERROR:CalledProcessError. Error Code is 1
ERROR:CalledProcessError. Command string was /opt/microsoft/omsagent/bin/service_control restart LAD
ERROR:CalledProcessError. Command result was INFO: Configuring OMS agent service LAD ...
[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] Return 1:INFO: Configuring OMS agent service LAD ...
ERROR:[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] Failed to set up mdsd dependencies: setup_omsagent(): Failed at restarting omsagent (fluentd). Exit code=1, Output=control_omsagent(resta
rt) failed. Output: INFO: Configuring OMS agent service LAD ...
ERROR:
[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] HeartBeat,error,1,Failed to set up mdsd dependencies: setup_omsagent(): Failed at restarting omsagent (fluentd). Exit code=1, Output=control_om
sagent(restart) failed. Output: INFO: Configuring OMS agent service LAD ...
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the LinuxDiagnostic installation path around the reported grep of /etc/opt/omi/conf/omiserver.conf and the restart commands in /opt/microsoft/omsagent/bin/configure_syslog.sh and service_control. Reproduce the failed omsagent (fluentd) restart and inspect its output and exit code. Done means LinuxDiagnostic installs successfully and the omsagent restart completes without the reported dependency error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python, shell
- Domain
- devops, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100