Skip to content

Commit

Permalink
Enable suppression rules for waagent.log
Browse files Browse the repository at this point in the history
  • Loading branch information
narrieta committed May 26, 2023
1 parent 841ee1d commit 5a218ae
Showing 1 changed file with 25 additions and 17 deletions.
42 changes: 25 additions & 17 deletions tests_e2e/tests/lib/agent_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,6 @@ def get_errors(self) -> List[AgentLogRecord]:
#
# NOTE: This list was taken from the older agent tests and needs to be cleaned up. Feel free to un-comment rules as new tests are added.
#
# # This warning is expected on CentOS/RedHat 7.4, 7.8 and Redhat 7.6
# {
# 'message': r"Move rules file 70-persistent-net.rules to /var/lib/waagent/70-persistent-net.rules",
# 'if': lambda r:
# re.match(r"(((centos|redhat)7\.[48])|(redhat7\.6)|(redhat8\.2))\D*", DISTRO_NAME, flags=re.IGNORECASE) is not None
# and r.level == "WARNING"
# and r.prefix == "ExtHandler" and r.thread in ("", "EnvHandler")
# },
# # This warning is expected on SUSE 12
# {
# 'message': r"WARNING EnvHandler ExtHandler Move rules file 75-persistent-net-generator.rules to /var/lib/waagent/75-persistent-net-generator.rules",
Expand Down Expand Up @@ -146,15 +138,13 @@ def get_errors(self) -> List[AgentLogRecord]:
# and r.level == "ERROR"
# and r.prefix == "Daemon"
# },
# #
# # 2022-01-20T06:52:21.515447Z WARNING Daemon Daemon Fetch failed: [HttpError] [HTTP Failed] GET https://dcrgajhx62.blob.core.windows.net/$system/edprpwqbj6.5c2ddb5b-d6c3-4d73-9468-54419ca87a97.vmSettings -- IOError timed out -- 6 attempts made
# #
# # The daemon does not need the artifacts profile blob, but the request is done as part of protocol initialization. This timeout can be ignored, if the issue persist the log would include additional instances.
# #
# {
# 'message': r"\[HTTP Failed\] GET https://.*\.vmSettings -- IOError timed out",
# 'if': lambda r: r.level == "WARNING" and r.prefix == "Daemon"
# },
#
# The environment thread performs this operation periodically
#
{
'message': r"Move rules file 70-persistent-net.rules to /var/lib/waagent/70-persistent-net.rules",
'if': lambda r: r.level == "WARNING"
},
#
# Probably the agent should log this as INFO, but for now it is a warning
# e.g.
Expand Down Expand Up @@ -209,6 +199,24 @@ def get_errors(self) -> List[AgentLogRecord]:
'if': lambda r: DISTRO_NAME == 'ubuntu' and DISTRO_VERSION >= '22.00'
},
#
# Old daemons can produce this message
#
# 2023-05-24T18:04:27.467009Z WARNING Daemon Daemon Could not mount cgroups: [Errno 1] Operation not permitted: '/sys/fs/cgroup/cpu,cpuacct' -> '/sys/fs/cgroup/cpu'
#
{
'message': r"Could not mount cgroups: \[Errno 1\] Operation not permitted",
'if': lambda r: r.prefix == 'Daemon'
},
#
# The daemon does not need the artifacts profile blob, but the request is done as part of protocol initialization. This timeout can be ignored, if the issue persist the log would include additional instances.
#
# 2022-01-20T06:52:21.515447Z WARNING Daemon Daemon Fetch failed: [HttpError] [HTTP Failed] GET https://dcrgajhx62.blob.core.windows.net/$system/edprpwqbj6.5c2ddb5b-d6c3-4d73-9468-54419ca87a97.vmSettings -- IOError timed out -- 6 attempts made
#
{
'message': r"\[HTTP Failed\] GET https://.*\.vmSettings -- IOError timed out",
'if': lambda r: r.level == "WARNING" and r.prefix == "Daemon"
},
#
# 2022-02-09T04:50:37.384810Z ERROR ExtHandler ExtHandler Error fetching the goal state: [ProtocolError] GET vmSettings [correlation ID: 2bed9b62-188e-4668-b1a8-87c35cfa4927 eTag: 7031887032544600793]: [Internal error in HostGAPlugin] [HTTP Failed] [502: Bad Gateway] b'{ "errorCode": "VMArtifactsProfileBlobContentNotFound", "message": "VM artifacts profile blob has no content in it.", "details": ""}'
#
# Fetching the goal state may catch the HostGAPlugin in the process of computing the vmSettings. This can be ignored, if the issue persist the log would include other errors as well.
Expand Down

0 comments on commit 5a218ae

Please sign in to comment.