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

Improve error message on systemd-run failure #1699

Merged
merged 2 commits into from
Nov 5, 2019

Conversation

pgombar
Copy link
Contributor

@pgombar pgombar commented Nov 5, 2019

Description

Make it clear that the extension operation is immediately retried without using systemd in case systemd-run fails.

Old log entry:

2019/10/30 02:02:58.967870 ERROR ExtHandler Event: name=WALinuxAgent, op=InvokeCommandUsingSystemd, message=Failed to run systemd-run for unit Microsoft.CPlat.Core.RunCommandLinux_1.0.1_ef8202d8-8322-4c3f-bdfe-162c49b6d98a.scope. Systemd process exited with code 1 and output [stdout]


[stderr]
Failed to start transient scope unit: Connection timed out
, duration=0

New log entry:

2019/10/30 02:02:58.967870 ERROR ExtHandler Failed to run systemd-run for unit Microsoft.CPlat.Core.RunCommandLinux_1.0.1_ef8202d8-8322-4c3f-bdfe-162c49b6d98a.scope. Retrying extension operation without systemd. Error: Systemd process exited with code 1 and output [stdout]


[stderr]
Failed to start transient scope unit: Connection timed out

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and Travis.CI is passing.

Quality of Code and Contribution Guidelines


This change is Reviewable

Copy link
Contributor

@larohra larohra left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Nov 5, 2019

Codecov Report

❗ No coverage uploaded for pull request base (develop@b82a31b). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #1699   +/-   ##
==========================================
  Coverage           ?   67.61%           
==========================================
  Files              ?       80           
  Lines              ?    11476           
  Branches           ?     1607           
==========================================
  Hits               ?     7759           
  Misses             ?     3375           
  Partials           ?      342
Impacted Files Coverage Δ
azurelinuxagent/common/cgroupapi.py 84.81% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b82a31b...982c92b. Read the comment docs.

@pgombar pgombar merged commit c3a782a into Azure:develop Nov 5, 2019
@pgombar pgombar deleted the improve_systemd_message branch November 5, 2019 22:15
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.

3 participants