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

Don't test for agent log in between tests ETP #2471

Merged
merged 3 commits into from
Jan 13, 2022

Conversation

larohra
Copy link
Contributor

@larohra larohra commented Jan 13, 2022

Description

Currently we were checking for errors in agent log mid-test in ETP. Refactored that to only check at the end and check for relevant errors mid-test

Issue #


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.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made

Quality of Code and Contribution Guidelines

@codecov
Copy link

codecov bot commented Jan 13, 2022

Codecov Report

Merging #2471 (4eda77a) into develop (2f6b446) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2471      +/-   ##
===========================================
+ Coverage    71.99%   72.01%   +0.01%     
===========================================
  Files          101      101              
  Lines        15053    15053              
  Branches      2392     2392              
===========================================
+ Hits         10837    10840       +3     
+ Misses        3733     3730       -3     
  Partials       483      483              
Impacted Files Coverage Δ
azurelinuxagent/common/event.py 86.03% <0.00%> (+0.67%) ⬆️

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 2f6b446...4eda77a. Read the comment docs.

@@ -93,6 +92,21 @@ def check_waagent_log_for_errors(waagent_log=AGENT_LOG_FILE, ignore=None):
{
'message': r"WARNING EnvHandler ExtHandler Dhcp client is not running."
},
# This happens in CENTOS and RHEL when waagent attempt to format and mount the error while cloud init is already doing it
Copy link
Member

Choose a reason for hiding this comment

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

do we get these errors at all in DCR V2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

haven't seen it honestly. I just copied the complete ignore list from v1 and copied it in v2.

Copy link
Member

@narrieta narrieta Jan 13, 2022

Choose a reason for hiding this comment

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

we wouldn't expect it, right? sounds like a provisioning error. i'd suggest removing it here and we can always add it back if there is a reason to do so

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense, let me remove it

@larohra larohra merged commit 2f4b33e into Azure:develop Jan 13, 2022
@larohra larohra deleted the fix-etp-v2 branch January 13, 2022 20:40
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