Package: src:waagent
Version: 2.15.0.1-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:waagent, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem pybuild
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_clean
I: pybuild base:385: python3.14 setup.py clean 
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build' (and everything under 
it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.14' does not exist -- can't clean it
rm -rf AzureLinuxAgent.egg-info
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary

[... snipped ...]

test_should_validate_signature_for_package_signed_with_expired_root_cert 
(tests.ga.test_signature_validation_sudo.TestSignatureValidationSudo.test_should_validate_signature_for_package_signed_with_expired_root_cert)
 ... skipped 'Test does not run when non-root'
test_should_validate_signature_for_package_signed_with_leaf_root_cert 
(tests.ga.test_signature_validation_sudo.TestSignatureValidationSudo.test_should_validate_signature_for_package_signed_with_leaf_root_cert)
 ... skipped 'Test does not run when non-root'
test_check_agent_memory_usage_fails 
(tests.ga.test_update.AgentMemoryCheckTestCase.test_check_agent_memory_usage_fails)
 ... ok
test_check_agent_memory_usage_not_called 
(tests.ga.test_update.AgentMemoryCheckTestCase.test_check_agent_memory_usage_not_called)
 ... ok
test_check_agent_memory_usage_raises_exit_exception 
(tests.ga.test_update.AgentMemoryCheckTestCase.test_check_agent_memory_usage_raises_exit_exception)
 ... ok
test_equality_operator_should_return_false_on_items_with_different_values 
(tests.ga.test_update.ExtensionsSummaryTestCase.test_equality_operator_should_return_false_on_items_with_different_values)
 ... ok
test_equality_operator_should_return_true_on_items_with_the_same_value 
(tests.ga.test_update.ExtensionsSummaryTestCase.test_equality_operator_should_return_true_on_items_with_the_same_value)
 ... ok
test_inequality_operator_should_return_false_on_items_with_same_value 
(tests.ga.test_update.ExtensionsSummaryTestCase.test_inequality_operator_should_return_false_on_items_with_same_value)
 ... ok
test_inequality_operator_should_return_true_on_items_with_different_values 
(tests.ga.test_update.ExtensionsSummaryTestCase.test_inequality_operator_should_return_true_on_items_with_different_values)
 ... ok
test_initial_goal_state_period_should_default_to_goal_state_period 
(tests.ga.test_update.GoalStateIntervalTestCase.test_initial_goal_state_period_should_default_to_goal_state_period)
 ... ok
test_the_default_goal_state_period_and_initial_goal_state_period_should_be_the_same
 
(tests.ga.test_update.GoalStateIntervalTestCase.test_the_default_goal_state_period_and_initial_goal_state_period_should_be_the_same)
 ... ok
test_update_handler_should_not_use_the_default_goal_state_period_when_extensions_are_disabled
 
(tests.ga.test_update.GoalStateIntervalTestCase.test_update_handler_should_not_use_the_default_goal_state_period_when_extensions_are_disabled)
 ... ok
test_update_handler_should_switch_to_the_regular_goal_state_period_when_the_goal_state_does_not_converges
 
(tests.ga.test_update.GoalStateIntervalTestCase.test_update_handler_should_switch_to_the_regular_goal_state_period_when_the_goal_state_does_not_converges)
 ... ok
test_update_handler_should_use_the_default_goal_state_period 
(tests.ga.test_update.GoalStateIntervalTestCase.test_update_handler_should_use_the_default_goal_state_period)
 ... ok
test_update_handler_should_use_the_initial_goal_state_period_until_the_goal_state_converges
 
(tests.ga.test_update.GoalStateIntervalTestCase.test_update_handler_should_use_the_initial_goal_state_period_until_the_goal_state_converges)
 ... ok
test_update_handler_should_use_the_initial_goal_state_period_when_it_is_different_to_the_goal_state_period
 
(tests.ga.test_update.GoalStateIntervalTestCase.test_update_handler_should_use_the_initial_goal_state_period_when_it_is_different_to_the_goal_state_period)
 ... ok
test_telemetry_heartbeat_creates_event 
(tests.ga.test_update.HeartbeatTestCase.test_telemetry_heartbeat_creates_event) 
... ok
test_check_if_env_thread_is_alive 
(tests.ga.test_update.MonitorThreadTest.test_check_if_env_thread_is_alive) ... 
ok
test_check_if_monitor_thread_is_alive 
(tests.ga.test_update.MonitorThreadTest.test_check_if_monitor_thread_is_alive) 
... ok
test_restart_env_thread 
(tests.ga.test_update.MonitorThreadTest.test_restart_env_thread) ... ok
test_restart_env_thread_if_not_alive 
(tests.ga.test_update.MonitorThreadTest.test_restart_env_thread_if_not_alive) 
... ok
test_restart_monitor_thread 
(tests.ga.test_update.MonitorThreadTest.test_restart_monitor_thread) ... ok
test_restart_monitor_thread_if_not_alive 
(tests.ga.test_update.MonitorThreadTest.test_restart_monitor_thread_if_not_alive)
 ... ok
test_start_threads (tests.ga.test_update.MonitorThreadTest.test_start_threads) 
... ok
test_it_should_clear_the_timestamp_for_the_most_recent_fast_track_goal_state 
(tests.ga.test_update.ProcessGoalStateTestCase.test_it_should_clear_the_timestamp_for_the_most_recent_fast_track_goal_state)
 ... ok
test_it_should_default_fast_track_timestamp_to_datetime_min 
(tests.ga.test_update.ProcessGoalStateTestCase.test_it_should_default_fast_track_timestamp_to_datetime_min)
 ... ok
test_it_should_mark_outdated_goal_states_on_service_restart_when_fast_track_is_disabled
 
(tests.ga.test_update.ProcessGoalStateTestCase.test_it_should_mark_outdated_goal_states_on_service_restart_when_fast_track_is_disabled)
 ... ok
test_it_should_mark_outdated_goal_states_on_service_restart_when_host_ga_plugin_stops_supporting_vm_settings
 
(tests.ga.test_update.ProcessGoalStateTestCase.test_it_should_mark_outdated_goal_states_on_service_restart_when_host_ga_plugin_stops_supporting_vm_settings)
 ... ok
test_it_should_process_goal_state_only_on_new_goal_state 
(tests.ga.test_update.ProcessGoalStateTestCase.test_it_should_process_goal_state_only_on_new_goal_state)
 ... ok
test_it_should_refresh_certificates_on_fast_track_goal_state_after_hibernate_resume_cycle
 
(tests.ga.test_update.ProcessGoalStateTestCase.test_it_should_refresh_certificates_on_fast_track_goal_state_after_hibernate_resume_cycle)
 ... ok
test_it_should_write_the_agent_status_to_the_history_folder 
(tests.ga.test_update.ProcessGoalStateTestCase.test_it_should_write_the_agent_status_to_the_history_folder)
 ... ok
test_it_should_cleanup_all_agents_except_rsm_version_and_current_version 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_cleanup_all_agents_except_rsm_version_and_current_version)
 ... ok
test_it_should_do_self_update_if_vm_opt_out_rsm_upgrades_later 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_do_self_update_if_vm_opt_out_rsm_upgrades_later)
 ... ok
test_it_should_download_largest_version_if_ga_versioning_disabled 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_download_largest_version_if_ga_versioning_disabled)
 ... ok
test_it_should_download_only_rsm_version_if_available 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_download_only_rsm_version_if_available)
 ... ok
test_it_should_mark_current_agent_as_bad_version_on_downgrade 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_mark_current_agent_as_bad_version_on_downgrade)
 ... ok
test_it_should_not_auto_upgrade_if_auto_update_disabled 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_not_auto_upgrade_if_auto_update_disabled)
 ... ok
test_it_should_not_download_anything_if_rsm_version_is_current_version 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_not_download_anything_if_rsm_version_is_current_version)
 ... ok
test_it_should_not_update_agent_with_rsm_if_gs_not_updated_in_next_attempts 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_not_update_agent_with_rsm_if_gs_not_updated_in_next_attempts)
 ... ok
test_it_should_not_update_if_rsm_version_not_found_in_manifest 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_not_update_if_rsm_version_not_found_in_manifest)
 ... ok
test_it_should_not_update_largest_version_if_time_window_not_elapsed 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_not_update_largest_version_if_time_window_not_elapsed)
 ... ok
test_it_should_skip_wait_to_update_immediately_if_rsm_version_available 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_skip_wait_to_update_immediately_if_rsm_version_available)
 ... ok
test_it_should_try_downloading_rsm_version_on_new_incarnation 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_try_downloading_rsm_version_on_new_incarnation)
 ... ok
test_it_should_update_largest_version_if_time_window_elapsed 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_update_largest_version_if_time_window_elapsed)
 ... ok
test_it_should_update_to_largest_version_if_rsm_version_not_available 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_update_to_largest_version_if_rsm_version_not_available)
 ... ok
test_it_should_upgrade_agent_on_process_start_if_auto_upgrade_enabled 
(tests.ga.test_update.TestAgentUpgrade.test_it_should_upgrade_agent_on_process_start_if_auto_upgrade_enabled)
 ... ok
test_agent_should_send_event_if_known_wireserver_ip_not_used 
(tests.ga.test_update.TestUpdate.test_agent_should_send_event_if_known_wireserver_ip_not_used)
 ... ok
test_creation (tests.ga.test_update.TestUpdate.test_creation) ... ok
test_emit_restart_event_emits_event_if_not_clean_start 
(tests.ga.test_update.TestUpdate.test_emit_restart_event_emits_event_if_not_clean_start)
 ... ok
test_ensure_no_orphans (tests.ga.test_update.TestUpdate.test_ensure_no_orphans) 
... ok
test_ensure_no_orphans_ignores_exceptions 
(tests.ga.test_update.TestUpdate.test_ensure_no_orphans_ignores_exceptions) ... 
ok
test_ensure_no_orphans_kills_after_interval 
(tests.ga.test_update.TestUpdate.test_ensure_no_orphans_kills_after_interval) 
... ok
test_ensure_no_orphans_skips_if_no_orphans 
(tests.ga.test_update.TestUpdate.test_ensure_no_orphans_skips_if_no_orphans) 
... ok
test_ensure_readonly_leaves_unmodified 
(tests.ga.test_update.TestUpdate.test_ensure_readonly_leaves_unmodified) ... ok
test_ensure_readonly_sets_readonly 
(tests.ga.test_update.TestUpdate.test_ensure_readonly_sets_readonly) ... ok
test_evaluate_agent_health_ignores_installed_agent 
(tests.ga.test_update.TestUpdate.test_evaluate_agent_health_ignores_installed_agent)
 ... ok
test_evaluate_agent_health_raises_exception_for_restarting_agent 
(tests.ga.test_update.TestUpdate.test_evaluate_agent_health_raises_exception_for_restarting_agent)
 ... ok
test_evaluate_agent_health_resets_with_new_agent 
(tests.ga.test_update.TestUpdate.test_evaluate_agent_health_resets_with_new_agent)
 ... ok
test_evaluate_agent_health_will_not_raise_exception_for_long_restarts 
(tests.ga.test_update.TestUpdate.test_evaluate_agent_health_will_not_raise_exception_for_long_restarts)
 ... ok
test_evaluate_agent_health_will_not_raise_exception_too_few_restarts 
(tests.ga.test_update.TestUpdate.test_evaluate_agent_health_will_not_raise_exception_too_few_restarts)
 ... ok
test_filter_blacklisted_agents 
(tests.ga.test_update.TestUpdate.test_filter_blacklisted_agents) ... ok
test_find_agents (tests.ga.test_update.TestUpdate.test_find_agents) ... ok
test_find_agents_does_reload 
(tests.ga.test_update.TestUpdate.test_find_agents_does_reload) ... ok
test_find_agents_sorts (tests.ga.test_update.TestUpdate.test_find_agents_sorts) 
... ok
test_get_latest_agent (tests.ga.test_update.TestUpdate.test_get_latest_agent) 
... ok
test_get_latest_agent_excluded 
(tests.ga.test_update.TestUpdate.test_get_latest_agent_excluded) ... ok
test_get_latest_agent_no_updates 
(tests.ga.test_update.TestUpdate.test_get_latest_agent_no_updates) ... ok
test_get_latest_agent_should_return_latest_agent_even_on_bad_error_json 
(tests.ga.test_update.TestUpdate.test_get_latest_agent_should_return_latest_agent_even_on_bad_error_json)
 ... ok
test_get_latest_agent_skip_updates 
(tests.ga.test_update.TestUpdate.test_get_latest_agent_skip_updates) ... ok
test_get_latest_agent_skips_unavailable 
(tests.ga.test_update.TestUpdate.test_get_latest_agent_skips_unavailable) ... ok
test_get_pid_files (tests.ga.test_update.TestUpdate.test_get_pid_files) ... ok
test_get_pid_files_returns_previous 
(tests.ga.test_update.TestUpdate.test_get_pid_files_returns_previous) ... ok
test_is_clean_start_returns_false_for_exceptions 
(tests.ga.test_update.TestUpdate.test_is_clean_start_returns_false_for_exceptions)
 ... ok
test_is_clean_start_returns_false_when_sentinel_exists 
(tests.ga.test_update.TestUpdate.test_is_clean_start_returns_false_when_sentinel_exists)
 ... ok
test_is_clean_start_returns_true_when_no_sentinel 
(tests.ga.test_update.TestUpdate.test_is_clean_start_returns_true_when_no_sentinel)
 ... ok
test_is_orphaned_returns_false_if_parent_exists 
(tests.ga.test_update.TestUpdate.test_is_orphaned_returns_false_if_parent_exists)
 ... ok
test_is_orphaned_returns_true_if_parent_does_not_exist 
(tests.ga.test_update.TestUpdate.test_is_orphaned_returns_true_if_parent_does_not_exist)
 ... ok
test_is_orphaned_returns_true_if_parent_is_init 
(tests.ga.test_update.TestUpdate.test_is_orphaned_returns_true_if_parent_is_init)
 ... ok
test_it_should_delete_extension_events_directory_if_extension_telemetry_pipeline_disabled
 
(tests.ga.test_update.TestUpdate.test_it_should_delete_extension_events_directory_if_extension_telemetry_pipeline_disabled)
 ... ok
test_it_should_recreate_extension_event_directories_for_existing_extensions_if_extension_telemetry_pipeline_enabled
 
(tests.ga.test_update.TestUpdate.test_it_should_recreate_extension_event_directories_for_existing_extensions_if_extension_telemetry_pipeline_enabled)
 ... ok
test_it_should_recreate_handler_env_on_service_startup 
(tests.ga.test_update.TestUpdate.test_it_should_recreate_handler_env_on_service_startup)
 ... ok
test_it_should_report_update_status_in_status_blob 
(tests.ga.test_update.TestUpdate.test_it_should_report_update_status_in_status_blob)
 ... ok
test_it_should_retain_extension_events_directories_if_extension_telemetry_pipeline_enabled
 
(tests.ga.test_update.TestUpdate.test_it_should_retain_extension_events_directories_if_extension_telemetry_pipeline_enabled)
 ... ok
test_it_should_setup_the_firewall 
(tests.ga.test_update.TestUpdate.test_it_should_setup_the_firewall) ... ok
test_it_should_wait_to_fetch_first_goal_state 
(tests.ga.test_update.TestUpdate.test_it_should_wait_to_fetch_first_goal_state) 
... ok
test_it_should_write_signing_certificate_string_to_file 
(tests.ga.test_update.TestUpdate.test_it_should_write_signing_certificate_string_to_file)
 ... ok
test_purge_agents (tests.ga.test_update.TestUpdate.test_purge_agents) ... ok
test_run_latest (tests.ga.test_update.TestUpdate.test_run_latest) ... ok
test_run_latest_captures_signals 
(tests.ga.test_update.TestUpdate.test_run_latest_captures_signals) ... ok
test_run_latest_creates_only_one_signal_handler 
(tests.ga.test_update.TestUpdate.test_run_latest_creates_only_one_signal_handler)
 ... ok
test_run_latest_defaults_to_current 
(tests.ga.test_update.TestUpdate.test_run_latest_defaults_to_current) ... 
expected failure
test_run_latest_exception_blacklists 
(tests.ga.test_update.TestUpdate.test_run_latest_exception_blacklists) ... ok
test_run_latest_exception_does_not_blacklist_if_terminating 
(tests.ga.test_update.TestUpdate.test_run_latest_exception_does_not_blacklist_if_terminating)
 ... ok
test_run_latest_forwards_output 
(tests.ga.test_update.TestUpdate.test_run_latest_forwards_output) ... ok
test_run_latest_nonzero_code_does_not_mark_failure 
(tests.ga.test_update.TestUpdate.test_run_latest_nonzero_code_does_not_mark_failure)
 ... ok
test_run_latest_passes_child_args 
(tests.ga.test_update.TestUpdate.test_run_latest_passes_child_args) ... ok
test_run_latest_picks_installed_agent_when_update_to_latest_version_is_not_used_and_autoupdates_disabled
 
(tests.ga.test_update.TestUpdate.test_run_latest_picks_installed_agent_when_update_to_latest_version_is_not_used_and_autoupdates_disabled)
 ... ok
test_run_latest_picks_latest_agent_when_update_to_latest_version_is_used 
(tests.ga.test_update.TestUpdate.test_run_latest_picks_latest_agent_when_update_to_latest_version_is_used)
 ... ok
test_run_latest_polling_stops_at_failure 
(tests.ga.test_update.TestUpdate.test_run_latest_polling_stops_at_failure) ... 
ok
test_run_latest_polling_stops_at_success 
(tests.ga.test_update.TestUpdate.test_run_latest_polling_stops_at_success) ... 
ok
test_run_latest_polls_and_waits_for_success 
(tests.ga.test_update.TestUpdate.test_run_latest_polls_and_waits_for_success) 
... ok
test_run_latest_polls_every_second_if_installed_not_latest 
(tests.ga.test_update.TestUpdate.test_run_latest_polls_every_second_if_installed_not_latest)
 ... ok
test_run_latest_polls_frequently_if_installed_is_latest 
(tests.ga.test_update.TestUpdate.test_run_latest_polls_frequently_if_installed_is_latest)
 ... ok
test_set_agents_sets_agents 
(tests.ga.test_update.TestUpdate.test_set_agents_sets_agents) ... ok
test_set_agents_sorts_agents 
(tests.ga.test_update.TestUpdate.test_set_agents_sorts_agents) ... ok
test_set_sentinel (tests.ga.test_update.TestUpdate.test_set_sentinel) ... ok
test_set_sentinel_writes_current_agent 
(tests.ga.test_update.TestUpdate.test_set_sentinel_writes_current_agent) ... ok
test_shutdown (tests.ga.test_update.TestUpdate.test_shutdown) ... ok
test_shutdown_ignores_exceptions 
(tests.ga.test_update.TestUpdate.test_shutdown_ignores_exceptions) ... ok
test_shutdown_ignores_missing_sentinel_file 
(tests.ga.test_update.TestUpdate.test_shutdown_ignores_missing_sentinel_file) 
... ok
test_update_handler_recovers_from_error_with_no_certs 
(tests.ga.test_update.TestUpdate.test_update_handler_recovers_from_error_with_no_certs)
 ... ok
test_update_happens_when_extensions_disabled 
(tests.ga.test_update.TestUpdate.test_update_happens_when_extensions_disabled)
Although the extension enabled config will not get checked ... ok
test_write_pid_file (tests.ga.test_update.TestUpdate.test_write_pid_file) ... ok
test_write_pid_file_ignores_exceptions 
(tests.ga.test_update.TestUpdate.test_write_pid_file_ignores_exceptions) ... ok
test_it_should_enforce_timeout_waiting_for_cloud_init 
(tests.ga.test_update.TestUpdateWaitForCloudInit.test_it_should_enforce_timeout_waiting_for_cloud_init)
 ... ok
test_it_should_not_wait_for_cloud_init_by_default 
(tests.ga.test_update.TestUpdateWaitForCloudInit.test_it_should_not_wait_for_cloud_init_by_default)
 ... ok
test_it_should_wait_for_cloud_init_when_requested 
(tests.ga.test_update.TestUpdateWaitForCloudInit.test_it_should_wait_for_cloud_init_when_requested)
 ... ok
test_update_handler_should_wait_for_cloud_init_after_agent_update_and_before_extension_processing
 
(tests.ga.test_update.TestUpdateWaitForCloudInit.test_update_handler_should_wait_for_cloud_init_after_agent_update_and_before_extension_processing)
 ... ok
test_it_should_limit_the_number_of_errors_output_to_the_local_log_and_telemetry 
(tests.ga.test_update.TryUpdateGoalStateTestCase.test_it_should_limit_the_number_of_errors_output_to_the_local_log_and_telemetry)
 ... ok
test_it_should_return_false_on_failure 
(tests.ga.test_update.TryUpdateGoalStateTestCase.test_it_should_return_false_on_failure)
 ... ok
test_it_should_return_true_on_success 
(tests.ga.test_update.TryUpdateGoalStateTestCase.test_it_should_return_true_on_success)
 ... ok
test_it_should_update_the_goal_state 
(tests.ga.test_update.TryUpdateGoalStateTestCase.test_it_should_update_the_goal_state)
 ... ok
test_run (tests.ga.test_update.UpdateHandlerRunTestCase.test_run) ... ok
test_run_clears_sentinel_on_successful_exit 
(tests.ga.test_update.UpdateHandlerRunTestCase.test_run_clears_sentinel_on_successful_exit)
 ... ok
test_run_emits_restart_event 
(tests.ga.test_update.UpdateHandlerRunTestCase.test_run_emits_restart_event) 
... ok
test_run_leaves_sentinel_on_unsuccessful_exit 
(tests.ga.test_update.UpdateHandlerRunTestCase.test_run_leaves_sentinel_on_unsuccessful_exit)
 ... ok
test_run_stops_if_orphaned 
(tests.ga.test_update.UpdateHandlerRunTestCase.test_run_stops_if_orphaned) ... 
ok
test_confirmation (tests.pa.test_deprovision.TestDeprovision.test_confirmation) 
... ok
test_del_lib_dir_files 
(tests.pa.test_deprovision.TestDeprovision.test_del_lib_dir_files) ... ok
test_deprovision (tests.pa.test_deprovision.TestDeprovision.test_deprovision) 
... ok
test_deprovision_ubuntu 
(tests.pa.test_deprovision.TestDeprovision.test_deprovision_ubuntu) ... ok
test_check_provisioned_file_is_provisioned 
(tests.pa.test_provision.TestProvision.test_check_provisioned_file_is_provisioned)
 ... ok
test_check_provisioned_file_not_deprovisioned 
(tests.pa.test_provision.TestProvision.test_check_provisioned_file_not_deprovisioned)
 ... ok
test_check_provisioned_file_not_provisioned 
(tests.pa.test_provision.TestProvision.test_check_provisioned_file_not_provisioned)
 ... ok
test_customdata (tests.pa.test_provision.TestProvision.test_customdata) ... ok
test_get_provision_handler_config_auto_cloudinit 
(tests.pa.test_provision.TestProvision.test_get_provision_handler_config_auto_cloudinit)
 ... ok
test_get_provision_handler_config_auto_no_cloudinit 
(tests.pa.test_provision.TestProvision.test_get_provision_handler_config_auto_no_cloudinit)
 ... ok
test_get_provision_handler_config_cloudinit 
(tests.pa.test_provision.TestProvision.test_get_provision_handler_config_cloudinit)
 ... ok
test_get_provision_handler_config_waagent 
(tests.pa.test_provision.TestProvision.test_get_provision_handler_config_waagent)
 ... ok
test_handle_provision_guest_agent 
(tests.pa.test_provision.TestProvision.test_handle_provision_guest_agent) ... ok
test_provision (tests.pa.test_provision.TestProvision.test_provision) ... ok
test_provision_telemetry_fail 
(tests.pa.test_provision.TestProvision.test_provision_telemetry_fail)
Assert that the agent issues one telemetry message as part of a ... ok
test_provision_telemetry_pga_bad 
(tests.pa.test_provision.TestProvision.test_provision_telemetry_pga_bad)
ProvisionGuestAgent flag is 'bad data' ... ok
test_provision_telemetry_pga_empty 
(tests.pa.test_provision.TestProvision.test_provision_telemetry_pga_empty)
ProvisionGuestAgent flag is '' ... ok
test_provision_telemetry_pga_false 
(tests.pa.test_provision.TestProvision.test_provision_telemetry_pga_false)
ProvisionGuestAgent flag is 'false' ... ok
test_provision_telemetry_pga_true 
(tests.pa.test_provision.TestProvision.test_provision_telemetry_pga_true)
ProvisionGuestAgent flag is 'true' ... ok
test_provisioning_is_skipped_when_not_enabled 
(tests.pa.test_provision.TestProvision.test_provisioning_is_skipped_when_not_enabled)
 ... ok
test_accepts_configuration_path 
(tests.test_agent.TestAgent.test_accepts_configuration_path) ... ok
test_agent_accepts_configuration_path 
(tests.test_agent.TestAgent.test_agent_accepts_configuration_path) ... ok
test_agent_does_not_pass_configuration_path 
(tests.test_agent.TestAgent.test_agent_does_not_pass_configuration_path) ... ok
test_agent_ensures_extension_log_directory 
(tests.test_agent.TestAgent.test_agent_ensures_extension_log_directory) ... ok
test_agent_get_configuration 
(tests.test_agent.TestAgent.test_agent_get_configuration) ... ok
test_agent_logs_if_extension_log_directory_is_a_file 
(tests.test_agent.TestAgent.test_agent_logs_if_extension_log_directory_is_a_file)
 ... ok
test_agent_passes_configuration_path 
(tests.test_agent.TestAgent.test_agent_passes_configuration_path) ... ok
test_agent_usage_message (tests.test_agent.TestAgent.test_agent_usage_message) 
... ok
test_agent_uses_default_configuration_path 
(tests.test_agent.TestAgent.test_agent_uses_default_configuration_path) ... ok
test_calls_collect_logs_on_valid_cgroups_v1 
(tests.test_agent.TestAgent.test_calls_collect_logs_on_valid_cgroups_v1) ... ok
test_calls_collect_logs_on_valid_cgroups_v2 
(tests.test_agent.TestAgent.test_calls_collect_logs_on_valid_cgroups_v2) ... ok
test_calls_collect_logs_with_proper_mode 
(tests.test_agent.TestAgent.test_calls_collect_logs_with_proper_mode) ... ok
test_checks_configuration_path 
(tests.test_agent.TestAgent.test_checks_configuration_path) ... ok
test_checks_log_collector_mode 
(tests.test_agent.TestAgent.test_checks_log_collector_mode) ... ok
test_collect_log_should_output_resource_usage_summary 
(tests.test_agent.TestAgent.test_collect_log_should_output_resource_usage_summary)
 ... ok
test_configuration_path_defaults_to_none 
(tests.test_agent.TestAgent.test_configuration_path_defaults_to_none) ... ok
test_doesnt_call_collect_logs_if_either_controller_not_mounted 
(tests.test_agent.TestAgent.test_doesnt_call_collect_logs_if_either_controller_not_mounted)
 ... ok
test_doesnt_call_collect_logs_if_process_in_wrong_cgroups_v1 
(tests.test_agent.TestAgent.test_doesnt_call_collect_logs_if_process_in_wrong_cgroups_v1)
 ... ok
test_doesnt_call_collect_logs_if_process_in_wrong_cgroups_v2 
(tests.test_agent.TestAgent.test_doesnt_call_collect_logs_if_process_in_wrong_cgroups_v2)
 ... ok
test_doesnt_call_collect_logs_on_non_systemd_cgroups_v1_mountpoints 
(tests.test_agent.TestAgent.test_doesnt_call_collect_logs_on_non_systemd_cgroups_v1_mountpoints)
 ... ok
test_doesnt_call_collect_logs_when_cgroup_api_cannot_be_determined 
(tests.test_agent.TestAgent.test_doesnt_call_collect_logs_when_cgroup_api_cannot_be_determined)
 ... ok
test_it_should_ignore_empty_arguments 
(tests.test_agent.TestAgent.test_it_should_ignore_empty_arguments) ... ok
test_it_should_parse_setup_firewall_properly 
(tests.test_agent.TestAgent.test_it_should_parse_setup_firewall_properly) ... ok
test_rejects_invalid_log_collector_mode 
(tests.test_agent.TestAgent.test_rejects_invalid_log_collector_mode) ... ok
test_rejects_missing_configuration_path 
(tests.test_agent.TestAgent.test_rejects_missing_configuration_path) ... ok

======================================================================
FAIL: test_daemon_agent_disabled 
(tests.daemon.test_daemon.TestDaemon.test_daemon_agent_disabled)
Agent should provision, then sleep forever when disable_agent is found
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.14/unittest/mock.py", line 1439, in patched
    return func(*newargs, **newkeywargs)
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/daemon/test_daemon.py", 
line 132, in test_daemon_agent_disabled
    self.assertTrue(daemon.is_alive())
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1337 tests in 101.336s

FAILED (failures=1, skipped=17, expected failures=1)
Error parsing json file: Expecting ',' delimiter: line 3 column 3 (char 23)
Error parsing json file: Expecting ',' delimiter: line 3 column 3 (char 23)
('WALinuxAgent', 'RemoteAccessHandling', False, FlexibleVers 
[too-long-redacted]  effect\nException: foobar!\n')
2026-08-01T20:58:10.727208Z ERROR ExtHandler Exception occurred while creating 
extension log directory /tmp/TestAgent_bg_js3o5/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_bg_js3o5/azure'
2026-08-01T20:58:10.727739Z ERROR ExtHandler Exception occurred while creating 
extension log directory /tmp/TestAgent_0lo0tvdf/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_0lo0tvdf/azure'
2026-08-01T20:58:10.728281Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_wjpdao06/FauxLogDir: [Errno 1] Operation 
not permitted: '/tmp/TestAgent_wjpdao06/FauxLogDir'
2026-08-01T20:58:10.728635Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_amz7z5mh/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_amz7z5mh/azure'
2026-08-01T20:58:10.729872Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_am8e5n20/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_am8e5n20/azure'
2026-08-01T20:58:10.730481Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_kkumftma/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_kkumftma/azure'
2026-08-01T20:58:10.732044Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_gg6dppbb/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_gg6dppbb/azure'
2026-08-01T20:58:10.732117Z INFO Daemon LogCollector Running log collector mode 
full
2026-08-01T20:58:10.754879Z INFO Daemon LogCollector Using cgroup v1 for 
resource enforcement and monitoring
2026-08-01T20:58:10.755012Z INFO Daemon LogCollector cpu controller for cgroup: 
azure-walinuxagent-logcollector 
[/sys/fs/cgroup/cpu,cpuacct/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2026-08-01T20:58:10.755058Z INFO Daemon LogCollector memory controller for 
cgroup: azure-walinuxagent-logcollector 
[/sys/fs/cgroup/memory/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2026-08-01T20:58:10.755405Z INFO Daemon LogCollector Log collection 
successfully completed. Archive can be found at <Mock id='139895011279264'> and 
detailed log output can be found at /var/lib/waagent/logcollector/results.txt
2026-08-01T20:58:10.755454Z ERROR LogCollectorMonitorHandler LogCollector An 
error occurred in the log collection monitor thread loop; will skip the current 
iteration.
[Errno 2] No such file or directory: 
'/sys/fs/cgroup/cpu,cpuacct/azure-walinuxagent-logcollector.slice/collect-logs.scope/cpuacct.stat'
2026-08-01T20:58:12.755804Z WARNING Daemon LogCollector An error occurred while 
reporting log collector resource usage summary: Object of type Mock is not JSON 
serializable
2026-08-01T20:58:12.758680Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_hgx21sy3/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_hgx21sy3/azure'
2026-08-01T20:58:12.758757Z INFO Daemon LogCollector Running log collector mode 
full
2026-08-01T20:58:12.781404Z INFO Daemon LogCollector Using cgroup v2 for 
resource enforcement and monitoring
2026-08-01T20:58:12.781506Z INFO Daemon LogCollector cpu controller for cgroup: 
azure-walinuxagent-logcollector 
[/sys/fs/cgroup/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2026-08-01T20:58:12.781550Z INFO Daemon LogCollector memory controller for 
cgroup: azure-walinuxagent-logcollector 
[/sys/fs/cgroup/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2026-08-01T20:58:12.781833Z INFO Daemon LogCollector Log collection 
successfully completed. Archive can be found at <Mock id='139895011284640'> and 
detailed log output can be found at /var/lib/waagent/logcollector/results.txt
2026-08-01T20:58:12.781883Z ERROR LogCollectorMonitorHandler LogCollector An 
error occurred in the log collection monitor thread loop; will skip the current 
iteration.
[Errno 2] No such file or directory: 
'/sys/fs/cgroup/azure-walinuxagent-logcollector.slice/collect-logs.scope/cpu.stat'
2026-08-01T20:58:14.782235Z WARNING Daemon LogCollector An error occurred while 
reporting log collector resource usage summary: Object of type Mock is not JSON 
serializable
2026-08-01T20:58:14.783577Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_ybqmqarq/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_ybqmqarq/azure'
2026-08-01T20:58:14.783780Z INFO Daemon LogCollector Running log collector mode 
full
2026-08-01T20:58:14.784323Z INFO Daemon LogCollector Log collection 
successfully completed. Archive can be found at <Mock id='139895006695440'> and 
detailed log output can be found at /var/lib/waagent/logcollector/results.txt
2026-08-01T20:58:14.784349Z INFO Daemon LogCollector Running log collector mode 
normal
2026-08-01T20:58:14.784393Z INFO Daemon LogCollector Log collection 
successfully completed. Archive can be found at <Mock id='139895006695440'> and 
detailed log output can be found at /var/lib/waagent/logcollector/results.txt
2026-08-01T20:58:14.786944Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_wlp8isbv/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_wlp8isbv/azure'
2026-08-01T20:58:14.787022Z INFO Daemon LogCollector Running log collector mode 
full
2026-08-01T20:58:14.809662Z INFO Daemon LogCollector Using cgroup v1 for 
resource enforcement and monitoring
2026-08-01T20:58:14.809776Z INFO Daemon LogCollector cpu controller for cgroup: 
azure-walinuxagent-logcollector 
[/sys/fs/cgroup/cpu,cpuacct/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2026-08-01T20:58:14.809820Z INFO Daemon LogCollector memory controller for 
cgroup: azure-walinuxagent-logcollector 
[/sys/fs/cgroup/memory/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2026-08-01T20:58:14.810131Z INFO Daemon LogCollector Log collection 
successfully completed. Archive can be found at <Mock id='139895006697120'> and 
detailed log output can be found at /var/lib/waagent/logcollector/results.txt
2026-08-01T20:58:14.810176Z ERROR LogCollectorMonitorHandler LogCollector An 
error occurred in the log collection monitor thread loop; will skip the current 
iteration.
[Errno 2] No such file or directory: 
'/sys/fs/cgroup/cpu,cpuacct/azure-walinuxagent-logcollector.slice/collect-logs.scope/cpuacct.stat'
2026-08-01T20:58:16.810552Z WARNING Daemon LogCollector An error occurred while 
reporting log collector resource usage summary: Object of type Mock is not JSON 
serializable
2026-08-01T20:58:16.813445Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_rk2v7wvo/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_rk2v7wvo/azure'
2026-08-01T20:58:16.813592Z INFO Daemon LogCollector Running log collector mode 
full
2026-08-01T20:58:16.836335Z INFO Daemon LogCollector Using cgroup v1 for 
resource enforcement and monitoring
2026-08-01T20:58:16.836437Z INFO Daemon LogCollector [CGW] cpu,cpuacct 
controller is not mounted; will not track
2026-08-01T20:58:16.836485Z INFO Daemon LogCollector memory controller for 
cgroup: azure-walinuxagent-logcollector 
[/sys/fs/cgroup/memory/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2026-08-01T20:58:16.836573Z WARNING Daemon LogCollector At least one required 
controller is missing. The following controllers are required for the log 
collector to run: ['cpu,cpuacct', 'memory']
2026-08-01T20:58:16.838596Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_7igx3prd/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_7igx3prd/azure'
2026-08-01T20:58:16.838742Z INFO Daemon LogCollector Running log collector mode 
full
2026-08-01T20:58:16.860802Z INFO Daemon LogCollector Using cgroup v1 for 
resource enforcement and monitoring
2026-08-01T20:58:16.860893Z INFO Daemon LogCollector [CGW] The cpu,cpuacct 
controller for the azure-walinuxagent-logcollector cgroup is not mounted in the 
expected slice. Expected slice: azure-walinuxagent-logcollector.slice. Actual 
controller path: /sys/fs/cgroup/cpu,cpuacct/NOT_THE_CORRECT_PATH
2026-08-01T20:58:16.860934Z INFO Daemon LogCollector [CGW] The memory 
controller for the azure-walinuxagent-logcollector cgroup is not mounted in the 
expected slice. Expected slice: azure-walinuxagent-logcollector.slice. Actual 
controller path: /sys/fs/cgroup/memory/NOT_THE_CORRECT_PATH
2026-08-01T20:58:16.860975Z INFO Daemon LogCollector Check cgroup in expected 
slice failed: retrying in 5 secs [Attempt 1/3]
2026-08-01T20:58:21.861211Z INFO Daemon LogCollector [CGW] The cpu,cpuacct 
controller for the azure-walinuxagent-logcollector cgroup is not mounted in the 
expected slice. Expected slice: azure-walinuxagent-logcollector.slice. Actual 
controller path: /sys/fs/cgroup/cpu,cpuacct/NOT_THE_CORRECT_PATH
2026-08-01T20:58:21.861366Z INFO Daemon LogCollector [CGW] The memory 
controller for the azure-walinuxagent-logcollector cgroup is not mounted in the 
expected slice. Expected slice: azure-walinuxagent-logcollector.slice. Actual 
controller path: /sys/fs/cgroup/memory/NOT_THE_CORRECT_PATH
2026-08-01T20:58:21.861420Z INFO Daemon LogCollector Check cgroup in expected 
slice failed: retrying in 5 secs [Attempt 2/3]
2026-08-01T20:58:26.861656Z INFO Daemon LogCollector [CGW] The cpu,cpuacct 
controller for the azure-walinuxagent-logcollector cgroup is not mounted in the 
expected slice. Expected slice: azure-walinuxagent-logcollector.slice. Actual 
controller path: /sys/fs/cgroup/cpu,cpuacct/NOT_THE_CORRECT_PATH
2026-08-01T20:58:26.861812Z INFO Daemon LogCollector [CGW] The memory 
controller for the azure-walinuxagent-logcollector cgroup is not mounted in the 
expected slice. Expected slice: azure-walinuxagent-logcollector.slice. Actual 
controller path: /sys/fs/cgroup/memory/NOT_THE_CORRECT_PATH
2026-08-01T20:58:26.861865Z WARNING Daemon LogCollector [CGroupsException] The 
Log Collector process is not in the proper cgroup. Expected slice: 
azure-walinuxagent-logcollector.slice
2026-08-01T20:58:26.864180Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_us3wfjc5/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_us3wfjc5/azure'
2026-08-01T20:58:26.864334Z INFO Daemon LogCollector Running log collector mode 
full
2026-08-01T20:58:26.886881Z INFO Daemon LogCollector Using cgroup v2 for 
resource enforcement and monitoring
2026-08-01T20:58:26.886969Z INFO Daemon LogCollector [CGW] The 
azure-walinuxagent-logcollector cgroup is not in the expected slice. Expected 
slice: azure-walinuxagent-logcollector.slice. Actual cgroup path: 
/sys/fs/cgroup/NOT_THE_CORRECT_PATH
2026-08-01T20:58:26.887012Z INFO Daemon LogCollector Check cgroup in expected 
slice failed: retrying in 5 secs [Attempt 1/3]
2026-08-01T20:58:31.887254Z INFO Daemon LogCollector [CGW] The 
azure-walinuxagent-logcollector cgroup is not in the expected slice. Expected 
slice: azure-walinuxagent-logcollector.slice. Actual cgroup path: 
/sys/fs/cgroup/NOT_THE_CORRECT_PATH
2026-08-01T20:58:31.887422Z INFO Daemon LogCollector Check cgroup in expected 
slice failed: retrying in 5 secs [Attempt 2/3]
2026-08-01T20:58:36.887661Z INFO Daemon LogCollector [CGW] The 
azure-walinuxagent-logcollector cgroup is not in the expected slice. Expected 
slice: azure-walinuxagent-logcollector.slice. Actual cgroup path: 
/sys/fs/cgroup/NOT_THE_CORRECT_PATH
2026-08-01T20:58:36.887830Z WARNING Daemon LogCollector [CGroupsException] The 
Log Collector process is not in the proper cgroup. Expected slice: 
azure-walinuxagent-logcollector.slice
2026-08-01T20:58:36.890442Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_dvyp96r5/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_dvyp96r5/azure'
2026-08-01T20:58:36.890589Z INFO Daemon LogCollector Running log collector mode 
full
2026-08-01T20:58:36.890767Z WARNING Daemon LogCollector The agent does not 
support cgroups if the default systemd mountpoint is not being used: 
[InvalidCgroupMountpointException] Test
2026-08-01T20:58:36.891559Z ERROR Daemon Exception occurred while creating 
extension log directory /tmp/TestAgent_ltnfelve/azure: [Errno 1] Operation not 
permitted: '/tmp/TestAgent_ltnfelve/azure'
2026-08-01T20:58:36.891684Z INFO Daemon LogCollector Running log collector mode 
full
2026-08-01T20:58:36.891825Z WARNING Daemon LogCollector Unable to determine 
which cgroup version to use: [CGroupsException] 

usage: python3.14 -m unittest [-verbose] [-force] [-help] 
-configuration-path:<path to configuration 
file>-deprovision[+user]|-register-service|-version|-daemon|-start|-run-exthandlers|-show-configuration|-collect-logs
 [-full]|-setup-firewall=<IP>]

E: pybuild pybuild:485: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m unittest discover 
-v 
dh_auto_test: error: pybuild --test -i python{version} -p 3.14 --parallel=2 
returned exit code 13
make[1]: *** [debian/rules:17: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to