--- Begin Message ---
Package: src:waagent
Version: 2.12.0.2~pre-2
Severity: serious
Tags: ftbfs patch
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
[ please read note at the very end ]
--------------------------------------------------------------------------------
[...]
debian/rules binary
dh binary --buildsystem pybuild
dh_update_autotools_config -O--buildsystem=pybuild
dh_autoreconf -O--buildsystem=pybuild
dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:311: python3.12 setup.py config
running config
dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/azurelinuxagent
copying azurelinuxagent/agent.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/azurelinuxagent
copying azurelinuxagent/__init__.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/azurelinuxagent
[... snipped ...]
test_provision (tests.pa.test_provision.TestProvision.test_provision) ...
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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) ... skipped 'agent
will not load configuration with ~ in its path'
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, FlexibleVersion ('2.12.0.2', '.', ('alpha', 'beta', 'rc')), 'Exception processing
goal state for remote access users: foobar!\nTraceback (most recent call last):\n File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/azurelinuxagent/ga/remoteaccess.py", line 57, in run\n
self._remote_access = self._protocol.client.get_remote_access()\n
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3/dist-packages/mock/mock.py", line 1178, in __call__\n
return _mock_self._mock_call(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File
"/usr/lib/python3/dist-packages/mock/mock.py", line 1182, in _mock_call\n return _mock_self._execute_mock_call(*args,
**kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File
"/usr/lib/python3/dist-packages/mock/mock.py", line 1239, in _execute_mock_call\n raise effect\nException: foobar!\n')
WRITING TO /tmp/tmp724r3lkr/waagent
2024-10-24T22:10:31.629143Z ERROR ExtHandler UnitTest Exception occurred while
creating extension log directory /tmp/TestAgent_5e90ckgo/azure: [Errno 1]
Operation not permitted: '/tmp/TestAgent_5e90ckgo/azure'
2024-10-24T22:10:31.629757Z ERROR ExtHandler Exception occurred while creating
extension log directory /tmp/TestAgent_u0eck1so/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_u0eck1so/azure'
2024-10-24T22:10:31.630375Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_gss35tma/FauxLogDir: [Errno 1] Operation
not permitted: '/tmp/TestAgent_gss35tma/FauxLogDir'
2024-10-24T22:10:31.630767Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_4_niu83g/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_4_niu83g/azure'
2024-10-24T22:10:31.632069Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_rb_udxd5/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_rb_udxd5/azure'
2024-10-24T22:10:31.632861Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_fslfxghx/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_fslfxghx/azure'
2024-10-24T22:10:31.634645Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_qhdb2w21/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_qhdb2w21/azure'
2024-10-24T22:10:31.634724Z INFO Daemon LogCollector Running log collector mode
full
2024-10-24T22:10:31.656217Z INFO Daemon LogCollector [CGI] Using cgroup v1 for
resource enforcement and monitoring
2024-10-24T22:10:31.656667Z INFO Daemon LogCollector [CGI] cpu,cpuacct
controller for cgroup: azure-walinuxagent-logcollector
[/sys/fs/cgroup/cpu,cpuacct/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2024-10-24T22:10:31.656892Z INFO Daemon LogCollector [CGI] memory controller
for cgroup: azure-walinuxagent-logcollector
[/sys/fs/cgroup/memory/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2024-10-24T22:10:31.657431Z INFO Daemon LogCollector Log collection successfully
completed. Archive can be found at <Mock id='140402470524720'> and detailed log
output can be found at /var/lib/waagent/logcollector/results.txt
2024-10-24T22:10:31.657508Z 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'
2024-10-24T22:10:33.657854Z WARNING Daemon LogCollector An error occurred while
reporting log collector resource usage summary: Object of type Mock is not JSON
serializable
2024-10-24T22:10:33.660616Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_277tkhhf/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_277tkhhf/azure'
2024-10-24T22:10:33.660704Z INFO Daemon LogCollector Running log collector mode
full
2024-10-24T22:10:33.671776Z INFO Daemon LogCollector [CGI] Using cgroup v2 for
resource enforcement and monitoring
2024-10-24T22:10:33.682828Z INFO Daemon LogCollector [CGI] cpu controller for
cgroup: azure-walinuxagent-logcollector
[/sys/fs/cgroup/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2024-10-24T22:10:33.683111Z INFO Daemon LogCollector [CGI] memory controller
for cgroup: azure-walinuxagent-logcollector
[/sys/fs/cgroup/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2024-10-24T22:10:33.683599Z INFO Daemon LogCollector Log collection successfully
completed. Archive can be found at <Mock id='140402423511040'> and detailed log
output can be found at /var/lib/waagent/logcollector/results.txt
2024-10-24T22:10:33.683673Z 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'
2024-10-24T22:10:35.684011Z WARNING Daemon LogCollector An error occurred while
reporting log collector resource usage summary: Object of type Mock is not JSON
serializable
2024-10-24T22:10:35.685338Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_70uzkhw4/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_70uzkhw4/azure'
2024-10-24T22:10:35.685620Z INFO Daemon LogCollector Running log collector mode
full
2024-10-24T22:10:35.685682Z INFO Daemon LogCollector Log collection successfully
completed. Archive can be found at <Mock id='140402421684496'> and detailed log
output can be found at /var/lib/waagent/logcollector/results.txt
2024-10-24T22:10:35.685703Z INFO Daemon LogCollector Running log collector mode
normal
2024-10-24T22:10:35.685743Z INFO Daemon LogCollector Log collection successfully
completed. Archive can be found at <Mock id='140402421684496'> and detailed log
output can be found at /var/lib/waagent/logcollector/results.txt
2024-10-24T22:10:35.688787Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_k0jdkviu/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_k0jdkviu/azure'
2024-10-24T22:10:35.688859Z INFO Daemon LogCollector Running log collector mode
full
2024-10-24T22:10:35.710422Z INFO Daemon LogCollector [CGI] Using cgroup v1 for
resource enforcement and monitoring
2024-10-24T22:10:35.710823Z INFO Daemon LogCollector [CGI] cpu,cpuacct
controller for cgroup: azure-walinuxagent-logcollector
[/sys/fs/cgroup/cpu,cpuacct/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2024-10-24T22:10:35.711047Z INFO Daemon LogCollector [CGI] memory controller
for cgroup: azure-walinuxagent-logcollector
[/sys/fs/cgroup/memory/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2024-10-24T22:10:35.711527Z INFO Daemon LogCollector Log collection successfully
completed. Archive can be found at <Mock id='140402421619680'> and detailed log
output can be found at /var/lib/waagent/logcollector/results.txt
2024-10-24T22:10:35.711599Z 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'
2024-10-24T22:10:37.711941Z WARNING Daemon LogCollector An error occurred while
reporting log collector resource usage summary: Object of type Mock is not JSON
serializable
2024-10-24T22:10:37.715514Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_6c7ubnj9/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_6c7ubnj9/azure'
2024-10-24T22:10:37.715679Z INFO Daemon LogCollector Running log collector mode
full
2024-10-24T22:10:37.737334Z INFO Daemon LogCollector [CGI] Using cgroup v1 for
resource enforcement and monitoring
2024-10-24T22:10:37.737726Z 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
======================================================================
ERROR: test_scvmm_detection_with_multiple_cdroms
(tests.daemon.test_scvmm.TestSCVMM.test_scvmm_detection_with_multiple_cdroms)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/daemon/test_scvmm.py",
line 63, in test_scvmm_detection_with_multiple_cdroms
scvmm.ScvmmHandler().detect_scvmm_env()
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/azurelinuxagent/daemon/scvmm.py",
line 56, in detect_scvmm_env
self.osutil.umount_dvd(chk_err=False, mount_point=mount_point)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/azurelinuxagent/common/osutil/default.py",
line 684, in umount_dvd
return_code = self.umount(mount_point, chk_err=chk_err)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/azurelinuxagent/common/osutil/default.py",
line 758, in umount
shellutil.run_command(["umount", mount_point], log_error=chk_err)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/azurelinuxagent/common/utils/shellutil.py",
line 288, in run_command
return __run_command(command_action=command_action, command=command,
log_error=log_error, encode_output=encode_output)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/azurelinuxagent/common/utils/shellutil.py",
line 190, in __run_command
return_code, stdout, stderr = command_action()
^^^^^^^^^^^^^^^^
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/azurelinuxagent/common/utils/shellutil.py",
line 255, in command_action
process = _popen(command, stdin=popen_stdin, stdout=stdout, stderr=stderr,
shell=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/azurelinuxagent/common/utils/shellutil.py",
line 398, in _popen
process = subprocess.Popen(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'umount'
----------------------------------------------------------------------
Ran 1290 tests in 78.026s
FAILED (errors=1, skipped=14, expected failures=1)
2024-10-24T22:10:37.737799Z INFO Daemon LogCollector [CGI] memory controller
for cgroup: azure-walinuxagent-logcollector
[/sys/fs/cgroup/memory/azure-walinuxagent-logcollector.slice/collect-logs.scope]
2024-10-24T22:10:37.738072Z 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']
2024-10-24T22:10:37.739943Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_zbk2z2tb/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_zbk2z2tb/azure'
2024-10-24T22:10:37.740101Z INFO Daemon LogCollector Running log collector mode
full
2024-10-24T22:10:37.761595Z INFO Daemon LogCollector [CGI] Using cgroup v1 for
resource enforcement and monitoring
2024-10-24T22:10:37.761986Z INFO Daemon LogCollector [CGI] cpu,cpuacct
controller for cgroup: azure-walinuxagent-logcollector
[/sys/fs/cgroup/cpu,cpuacct/NOT_THE_CORRECT_PATH]
2024-10-24T22:10:37.762209Z INFO Daemon LogCollector [CGI] memory controller
for cgroup: azure-walinuxagent-logcollector
[/sys/fs/cgroup/memory/NOT_THE_CORRECT_PATH]
2024-10-24T22:10:37.762411Z 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
2024-10-24T22:10:37.762459Z 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
2024-10-24T22:10:37.762497Z INFO Daemon LogCollector [CGW] The Log Collector
process is not in the proper cgroups
2024-10-24T22:10:37.764411Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_ua2eg5sa/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_ua2eg5sa/azure'
2024-10-24T22:10:37.764583Z INFO Daemon LogCollector Running log collector mode
full
2024-10-24T22:10:37.775095Z INFO Daemon LogCollector [CGI] Using cgroup v2 for
resource enforcement and monitoring
2024-10-24T22:10:37.785962Z INFO Daemon LogCollector [CGI] cpu controller for
cgroup: azure-walinuxagent-logcollector [/sys/fs/cgroup/NOT_THE_CORRECT_PATH]
2024-10-24T22:10:37.786245Z INFO Daemon LogCollector [CGI] memory controller
for cgroup: azure-walinuxagent-logcollector
[/sys/fs/cgroup/NOT_THE_CORRECT_PATH]
2024-10-24T22:10:37.786463Z 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
2024-10-24T22:10:37.786514Z INFO Daemon LogCollector [CGW] The Log Collector
process is not in the proper cgroups
2024-10-24T22:10:37.788240Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_430dzu8g/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_430dzu8g/azure'
2024-10-24T22:10:37.788558Z INFO Daemon LogCollector Running log collector mode
full
2024-10-24T22:10:37.788634Z INFO Daemon LogCollector [CGW] The agent does not
support cgroups if the default systemd mountpoint is not being used:
[InvalidCgroupMountpointException] Test
2024-10-24T22:10:37.789517Z ERROR Daemon Exception occurred while creating
extension log directory /tmp/TestAgent_rjawpmeb/azure: [Errno 1] Operation not
permitted: '/tmp/TestAgent_rjawpmeb/azure'
2024-10-24T22:10:37.789717Z INFO Daemon LogCollector Running log collector mode
full
2024-10-24T22:10:37.789759Z INFO Daemon LogCollector [CGW] Unable to determine
which cgroup version to use: [CGroupsException]
usage: python3.12 -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:389: test: plugin distutils failed with: exit code=1: cd
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build'; python3.12 -m unittest
discover -v
dh_auto_test: error: pybuild --test -i python{version} -p 3.12 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 returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202410/
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 could not 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 affects, so that this is still visible in the BTS web
page for this package.
Note: Looks like mount is missing from build-depends.
Trivial patch attached.
Thanks.
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Build-Depends:
debhelper-compat (= 13),
dh-sequence-python3,
iproute2 <!nocheck>,
+ mount <!nocheck>,
openssl <!nocheck>,
python3,
python3-distro,
--- End Message ---