Package: src:waagent Version: 2.12.0.2-4 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/202602/ 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:384: python3.13 setup.py clean running clean removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.13' 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 ...] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/ga/update.py:818: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). partition = ustr(int(datetime.utcnow().microsecond / 10000)) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/protocol/goal_state.py:227: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). timestamp = datetime.datetime.utcnow() /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/ga/update.py:1024: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self._last_telemetry_heartbeat = datetime.utcnow() - UpdateHandler.TELEMETRY_HEARTBEAT_PERIOD /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/ga/update.py:1026: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). if datetime.utcnow() >= (self._last_telemetry_heartbeat + UpdateHandler.TELEMETRY_HEARTBEAT_PERIOD): /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/ga/update.py:1047: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self._last_telemetry_heartbeat = datetime.utcnow() ok test_run_emits_restart_event (tests.ga.test_update.UpdateHandlerRunTestCase.test_run_emits_restart_event) ... /usr/lib/python3.13/subprocess.py:1140: ResourceWarning: subprocess 8000 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/protocol/goal_state.py:227: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). timestamp = datetime.datetime.utcnow() /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/ga/update.py:818: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). partition = ustr(int(datetime.utcnow().microsecond / 10000)) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/protocol/goal_state.py:227: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). timestamp = datetime.datetime.utcnow() /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/ga/update.py:1024: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self._last_telemetry_heartbeat = datetime.utcnow() - UpdateHandler.TELEMETRY_HEARTBEAT_PERIOD /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/ga/update.py:1026: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). if datetime.utcnow() >= (self._last_telemetry_heartbeat + UpdateHandler.TELEMETRY_HEARTBEAT_PERIOD): /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/ga/update.py:1047: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self._last_telemetry_heartbeat = datetime.utcnow() ok test_run_leaves_sentinel_on_unsuccessful_exit (tests.ga.test_update.UpdateHandlerRunTestCase.test_run_leaves_sentinel_on_unsuccessful_exit) ... /usr/lib/python3.13/subprocess.py:1140: ResourceWarning: subprocess 8011 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/protocol/goal_state.py:227: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). timestamp = datetime.datetime.utcnow() /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/ga/update.py:818: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). partition = ustr(int(datetime.utcnow().microsecond / 10000)) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/protocol/goal_state.py:227: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). timestamp = datetime.datetime.utcnow() ok test_run_stops_if_orphaned (tests.ga.test_update.UpdateHandlerRunTestCase.test_run_stops_if_orphaned) ... /usr/lib/python3.13/subprocess.py:1140: ResourceWarning: subprocess 8022 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/protocol/goal_state.py:227: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). timestamp = datetime.datetime.utcnow() /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/ga/update.py:818: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). partition = ustr(int(datetime.utcnow().microsecond / 10000)) 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) ... /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) FAIL test_provision (tests.pa.test_provision.TestProvision.test_provision) ... /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/pa/provision/default.py:65: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). utc_start = datetime.utcnow() /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/pa/provision/default.py:65: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). utc_start = datetime.utcnow() /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:506: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.add_common_event_parameters(event, datetime.utcnow()) 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 ... /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/pa/provision/default.py:65: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). utc_start = datetime.utcnow() ok test_provision_telemetry_pga_bad (tests.pa.test_provision.TestProvision.test_provision_telemetry_pga_bad) ProvisionGuestAgent flag is 'bad data' ... /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/azurelinuxagent/common/event.py:627: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). now = datetime.utcnow() 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) ... 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') WRITING TO /tmp/tmpi_3g8xvx/waagent 2026-02-09T15:44:08.980863Z ERROR ExtHandler Exception occurred while creating extension log directory /tmp/TestAgent__7msskg8/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent__7msskg8/azure' 2026-02-09T15:44:08.981392Z ERROR ExtHandler Exception occurred while creating extension log directory /tmp/TestAgent_5lnwy9fy/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_5lnwy9fy/azure' 2026-02-09T15:44:08.982046Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_84wsyis7/FauxLogDir: [Errno 1] Operation not permitted: '/tmp/TestAgent_84wsyis7/FauxLogDir' 2026-02-09T15:44:08.982373Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_7aspzvhz/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_7aspzvhz/azure' 2026-02-09T15:44:08.983390Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_swmw6w9b/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_swmw6w9b/azure' 2026-02-09T15:44:08.984021Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_ndh9r2sl/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_ndh9r2sl/azure' 2026-02-09T15:44:08.985698Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_mliv66ki/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_mliv66ki/azure' 2026-02-09T15:44:08.985770Z INFO Daemon LogCollector Running log collector mode full 2026-02-09T15:44:09.009155Z INFO Daemon LogCollector [CGI] Using cgroup v1 for resource enforcement and monitoring 2026-02-09T15:44:09.009633Z INFO Daemon LogCollector [CGI] cpu,cpuacct controller for cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/cpu,cpuacct/azure-walinuxagent-logcollector.slice/collect-logs.scope] 2026-02-09T15:44:09.009860Z INFO Daemon LogCollector [CGI] memory controller for cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/memory/azure-walinuxagent-logcollector.slice/collect-logs.scope] 2026-02-09T15:44:09.010479Z INFO Daemon LogCollector Log collection successfully completed. Archive can be found at <Mock id='139823562455232'> and detailed log output can be found at /var/lib/waagent/logcollector/results.txt 2026-02-09T15:44:09.010533Z 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-02-09T15:44:11.010892Z WARNING Daemon LogCollector An error occurred while reporting log collector resource usage summary: Object of type Mock is not JSON serializable 2026-02-09T15:44:11.013342Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_3i6duvwx/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_3i6duvwx/azure' 2026-02-09T15:44:11.013418Z INFO Daemon LogCollector Running log collector mode full 2026-02-09T15:44:11.024787Z INFO Daemon LogCollector [CGI] Using cgroup v2 for resource enforcement and monitoring 2026-02-09T15:44:11.035907Z INFO Daemon LogCollector [CGI] cpu controller for cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/azure-walinuxagent-logcollector.slice/collect-logs.scope] 2026-02-09T15:44:11.036157Z INFO Daemon LogCollector [CGI] memory controller for cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/azure-walinuxagent-logcollector.slice/collect-logs.scope] 2026-02-09T15:44:11.036657Z INFO Daemon LogCollector Log collection successfully completed. Archive can be found at <Mock id='139823562450864'> and detailed log output can be found at /var/lib/waagent/logcollector/results.txt 2026-02-09T15:44:11.036713Z 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-02-09T15:44:13.037056Z WARNING Daemon LogCollector An error occurred while reporting log collector resource usage summary: Object of type Mock is not JSON serializable 2026-02-09T15:44:13.038368Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_j_v19o7z/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_j_v19o7z/azure' 2026-02-09T15:44:13.042548Z INFO Daemon LogCollector Running log collector mode full 2026-02-09T15:44:13.042635Z INFO Daemon LogCollector Log collection successfully completed. Archive can be found at <Mock id='139823567516208'> and detailed log output can be found at /var/lib/waagent/logcollector/results.txt 2026-02-09T15:44:13.042658Z INFO Daemon LogCollector Running log collector mode normal 2026-02-09T15:44:13.042693Z INFO Daemon LogCollector Log collection successfully completed. Archive can be found at <Mock id='139823567516208'> and detailed log output can be found at /var/lib/waagent/logcollector/results.txt 2026-02-09T15:44:13.045210Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_tq6ezp89/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_tq6ezp89/azure' 2026-02-09T15:44:13.045276Z INFO Daemon LogCollector Running log collector mode full 2026-02-09T15:44:13.067400Z INFO Daemon LogCollector [CGI] Using cgroup v1 for resource enforcement and monitoring 2026-02-09T15:44:13.067782Z INFO Daemon LogCollector [CGI] cpu,cpuacct controller for cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/cpu,cpuacct/azure-walinuxagent-logcollector.slice/collect-logs.scope] 2026-02-09T15:44:13.067999Z INFO Daemon LogCollector [CGI] memory controller for cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/memory/azure-walinuxagent-logcollector.slice/collect-logs.scope] 2026-02-09T15:44:13.068489Z INFO Daemon LogCollector Log collection successfully completed. Archive can be found at <Mock id='139823562453552'> and detailed log output can be found at /var/lib/waagent/logcollector/results.txt 2026-02-09T15:44:13.068537Z 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-02-09T15:44:15.068922Z WARNING Daemon LogCollector An error occurred while reporting log collector resource usage summary: Object of type Mock is not JSON serializable 2026-02-09T15:44:15.071637Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_6cal2fvv/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_6cal2fvv/azure' 2026-02-09T15:44:15.071788Z INFO Daemon LogCollector Running log collector mode full 2026-02-09T15:44:15.093713Z INFO Daemon LogCollector [CGI] Using cgroup v1 for resource enforcement and monitoring 2026-02-09T15:44:15.094059Z INFO Daemon LogCollector [CGW] cpu,cpuacct controller is not mounted; will not track ok test_doesnt_call_collect_logs_on_invalid_cgroups_v1 (tests.test_agent.TestAgent.test_doesnt_call_collect_logs_on_invalid_cgroups_v1) ... ok test_doesnt_call_collect_logs_on_invalid_cgroups_v2 (tests.test_agent.TestAgent.test_doesnt_call_collect_logs_on_invalid_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_handle_provision_guest_agent (tests.pa.test_provision.TestProvision.test_handle_provision_guest_agent) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.13/unittest/mock.py", line 1426, in patched return func(*newargs, **newkeywargs) File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/lib/tools.py", line 513, in wrapper test_method(self, *new_args, **kwargs) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/pa/test_provision.py", line 308, in test_handle_provision_guest_agent self.assertEqual(1, patch_write_agent_disabled.call_count) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: 1 != 4 ---------------------------------------------------------------------- Ran 1290 tests in 75.660s FAILED (failures=1, skipped=13, expected failures=1) 2026-02-09T15:44:15.094135Z INFO Daemon LogCollector [CGI] memory controller for cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/memory/azure-walinuxagent-logcollector.slice/collect-logs.scope] 2026-02-09T15:44:15.094332Z INFO Daemon LogCollector [CGW] At least one required controller is missing. The following controllers are required for the log collector to run: ['cpu,cpuacct', 'memory'] 2026-02-09T15:44:15.096050Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_2ch7zpj3/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_2ch7zpj3/azure' 2026-02-09T15:44:15.096193Z INFO Daemon LogCollector Running log collector mode full 2026-02-09T15:44:15.117486Z INFO Daemon LogCollector [CGI] Using cgroup v1 for resource enforcement and monitoring 2026-02-09T15:44:15.117824Z INFO Daemon LogCollector [CGI] cpu,cpuacct controller for cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/cpu,cpuacct/NOT_THE_CORRECT_PATH] 2026-02-09T15:44:15.118031Z INFO Daemon LogCollector [CGI] memory controller for cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/memory/NOT_THE_CORRECT_PATH] 2026-02-09T15:44:15.118237Z 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-02-09T15:44:15.118284Z 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-02-09T15:44:15.118317Z INFO Daemon LogCollector [CGW] The Log Collector process is not in the proper cgroups 2026-02-09T15:44:15.120120Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_i0tr7nh_/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_i0tr7nh_/azure' 2026-02-09T15:44:15.120263Z INFO Daemon LogCollector Running log collector mode full 2026-02-09T15:44:15.130913Z INFO Daemon LogCollector [CGI] Using cgroup v2 for resource enforcement and monitoring 2026-02-09T15:44:15.141840Z INFO Daemon LogCollector [CGI] cpu controller for cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/NOT_THE_CORRECT_PATH] 2026-02-09T15:44:15.142084Z INFO Daemon LogCollector [CGI] memory controller for cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/NOT_THE_CORRECT_PATH] 2026-02-09T15:44:15.142285Z 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-02-09T15:44:15.142330Z INFO Daemon LogCollector [CGW] The Log Collector process is not in the proper cgroups 2026-02-09T15:44:15.143862Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_6ixdqf6j/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_6ixdqf6j/azure' 2026-02-09T15:44:15.144013Z INFO Daemon LogCollector Running log collector mode full 2026-02-09T15:44:15.144068Z INFO Daemon LogCollector [CGW] The agent does not support cgroups if the default systemd mountpoint is not being used: [InvalidCgroupMountpointException] Test 2026-02-09T15:44:15.144858Z ERROR Daemon Exception occurred while creating extension log directory /tmp/TestAgent_e3eqyqcy/azure: [Errno 1] Operation not permitted: '/tmp/TestAgent_e3eqyqcy/azure' 2026-02-09T15:44:15.145176Z INFO Daemon LogCollector Running log collector mode full 2026-02-09T15:44:15.145220Z INFO Daemon LogCollector [CGW] Unable to determine which cgroup version to use: [CGroupsException] usage: python3.13 -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 [-dst_ip=<IP> -uid=<UID> [-w/--wait]] E: pybuild pybuild:483: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m unittest discover -v dh_auto_test: error: pybuild --test -i python{version} -p 3.13 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 --------------------------------------------------------------------------------
