Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[device] as5712-54x, fix Python error and log location #9715

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bluecmd
Copy link
Contributor

@bluecmd bluecmd commented Jan 10, 2022

Why I did it

The service as5712-platform-monitor.service was listed as failed on my AS5712-54X device.

How I did it

Looking at the logs and resolving the three Python3 exceptions allowed the service to start. Then I detected some log files that were created straight in the root (/), so I moved them.

How to verify it

Run SONiC on an Edge-core/Accton AS5712-54X and see the service now work.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

  • [device] as5712-54x, fix platform monitor

A picture of a cute animal (not mandatory but encouraged)

image

fanutil.py & thermalutil.py:
 - TabError: inconsistent use of tabs and spaces in indentation

accton_as5712_monitor.py:
 - NameError: name 'sys' is not defined

Signed-off-by: Christian Svensson <blue@cmd.nu>
The platform monitor and setup scripts create two log files in the
directory they are launched in - as5712_54x.log and
accton_as5712_monitor.log. Move them to /var/log.

Signed-off-by: Christian Svensson <blue@cmd.nu>
@bluecmd bluecmd requested a review from lguohan as a code owner January 10, 2022 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant