Azure / Azure/azure-linux-extensions

Diagnostics extension invalid syntax

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

Description

From the following error in log with fresh installation

2020-12-09T04:09:59.087477Z ERROR ExtHandler ExtHandler Event: name=Microsoft.Azure.Diagnostics.LinuxDiagnostic, op=Install, message=eJytkbtOw0AQRfv9iqs0ASlexwo07iJhKh4FZWKkxZ5YIy2z1uw6OEH8O8ZC8AEw1dUp5ozm7qoxkUQO8tiTujSFSjVojYcg2Zk0gEZOaEJLJYoV8qPT3PNL/uZcR5Lye240xHBIdnselOwNu05CTNxEe8cyjL8g29i1LTZF3v4g25+QscTkvDe7mNowpNqYOZJqbYBb9oTF/3sXK3gWwvXVJAF6ZUlYbuFD4zz4tQ+acEG2syt8Sy9xcNM1rUU1NtR/favE+/pjL0vs5y1/m2fzdJLkxrmCEixH57lFnKH5BKHqhhA=, duration=0

```
$ echo 'eJytkbtOw0AQRfv9iqs0ASlexwo07iJhKh4FZWKkxZ5YIy2z1uw6OEH8O8ZC8AEw1dUp5ozm7qoxkUQO8tiTujSFSjVojYcg2Zk0gEZOaEJLJYoV8qPT3PNL/uZcR5Lye240xHBIdnselOwNu05CTNxEe8cyjL8g29i1LTZF3v4g25+QscTkvDe7mNowpNqYOZJqbYBb9oTF/3sXK3gWwvXVJAF6ZUlYbuFD4zz4tQ+acEG2syt8Sy9xcNM1rUU1NtR/favE+/pjL0vs5y1/m2fzdJLkxrmCEixH57lFnKH5BKHqhhA=, duration=0' | base64 -d | pigz -zd
base64: invalid input
[ExtensionOperationError] Non-zero exit code: 1, /var/lib/waagent/Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.131/diagnostic.py -install
[stdout]

[stderr]
File "/var/lib/waagent/Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.131/diagnostic.py", line 54
print 'A local import (e.g., waagent) failed. Exception: {0}\n' \
^
SyntaxError: invalid syntax
[waagent.log](https://github.com/Azure/azure-linux-extensions/files/5670484/waagent.log)

```

Environment:
OS: Red Hat Enterprise Linux release 8.2 (Ootpa)
Agent WALinuxAgent-2.2.52

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the fresh-install failure on Red Hat Enterprise Linux 8.2 and inspect diagnostic.py at line 54, using the provided extension command and log as the reproduction path. Verify the installation no longer reports the Python SyntaxError or a non-zero exit code.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.