Skip to content

Commit 9132994

Browse files
author
narrieta@microsoft
committed
Suppress error messages from GuestConfiguration
1 parent 2943a4e commit 9132994

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

tests_e2e/tests/lib/agent_log.py

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -364,33 +364,41 @@ def get_errors(self) -> List[AgentLogRecord]:
364364
'if': lambda r: DISTRO_NAME == 'ubuntu' and DISTRO_VERSION == '16.04'
365365
},
366366
#
367-
# TODO: Currently GuestConfiguration does not support ARM; remove this message when it does.
367+
# GuestConfiguration produces a lot of errors in test runs due to issues in the extension. Some samples:
368368
#
369369
# 2024-12-08T06:28:34.480675Z ERROR ExtHandler ExtHandler Event: name=Microsoft.GuestConfiguration.ConfigurationforLinux, op=Install, message=[ExtensionOperationError] Non-zero exit code: 126, /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.79/bin/guest-configuration-shim install
370370
# [stdout]
371371
# Linux distribution version is 9.0.
372372
# Linux distribution is Red Hat.
373373
# + /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.79/bin/guest-configuration-extension install
374374
# /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.79/bin/guest-configuration-shim: line 211: /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.79/bin/guest-configuration-extension: cannot execute binary file: Exec format error
375-
#
376-
#
377375
# [stderr]
378-
# , duration=0
379-
{
380-
'message': r"(?s)name=Microsoft.GuestConfiguration.ConfigurationforLinux.*op=Install.*Non-zero exit code: 126.*Exec format error",
381-
},
382376
#
383377
# 2024-12-26T06:35:24.233438Z ERROR ExtHandler ExtHandler Event: name=Microsoft.GuestConfiguration.ConfigurationforLinux, op=Install, message=[ExtensionOperationError] Non-zero exit code: 51, /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.79/bin/guest-configuration-shim install
384378
# [stdout]
385379
# Linux distribution version is 4081.2.1.
386-
#
387-
#
388380
# [stderr]
389381
# [2024-12-26T06:35:22+0000]: Unexpected Linux distribution. Expected Linux distributions include only Ubuntu, Red Hat, SUSE, CentOS, Debian or Mariner.
390-
# , duration=0
391382
#
383+
# 2025-01-07T11:32:28.121056Z ERROR ExtHandler ExtHandler Event: name=Microsoft.GuestConfiguration.ConfigurationforLinux, op=Install, message=[ExtensionOperationError] Non-zero exit code: 1, /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.79/bin/guest-configuration-shim install
384+
# [stdout]
385+
# Linux distribution version is 12.5.
386+
# Linux distribution is SUSE.
387+
# /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.79/bin/guest-configuration-extension install
388+
# /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.79/bin/guest-configuration-shim: line 211:
389+
# /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.79/bin/guest-configuration-extension: Text file busy
390+
# [stderr]
391+
#
392+
# Also, enable not always completes before the new goal state is received
393+
#
394+
# 2025-01-07T13:33:25.636847Z WARNING ExtHandler ExtHandler A new goal state was received, but not all the extensions in the previous goal state have completed:
395+
# [('Microsoft.Azure.Extensions.CustomScript', 'success'), ('Microsoft.GuestConfiguration.ConfigurationforLinux', 'transitioning'), ('RunCommandHandler', 'success')]
396+
#
397+
{
398+
'message': r"(?s)name=Microsoft.GuestConfiguration.ConfigurationforLinux.*op=Install.*Non-zero exit code: (1.*Text file busy|51.*Unexpected Linux distribution|126.*Exec format error)",
399+
},
392400
{
393-
'message': r"(?s)name=Microsoft.GuestConfiguration.ConfigurationforLinux.*op=Install.*Unexpected Linux distribution",
401+
'message': r"A new goal state was received, but not all the extensions in the previous goal state have completed.*'Microsoft.GuestConfiguration.ConfigurationforLinux',\s+'transitioning'",
394402
},
395403
]
396404

0 commit comments

Comments
 (0)