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

fix(components/systemd): fix non-existing service uptime checks #178

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Nov 12, 2024

Error: failed to get uptime for unit kubelet: parsing time "n/a" as "Mon 2006-01-02 15:04:05 MST": cannot parse "n/a" as "Mon"

e.g.,

# sudo systemctl show --property=InactiveExitTimestamp kubelet
InactiveExitTimestamp=Fri 2024-11-08 03:20:47 UTC

# sudo systemctl show --property=InactiveExitTimestamp gpud
InactiveExitTimestamp=Sat 2024-11-02 13:51:36 UTC

# sudo systemctl show --property=InactiveExitTimestamp g2
InactiveExitTimestamp=n/a

@gyuho gyuho added the bug bug, needs fix label Nov 12, 2024
@gyuho gyuho self-assigned this Nov 12, 2024
Copy link
Contributor

@photoszzt photoszzt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gyuho gyuho merged commit cf9be44 into main Nov 13, 2024
5 checks passed
@gyuho gyuho deleted the fix-uptime branch November 13, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug, needs fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants