Source: waagent
Version: 2.9.1.1-2
Severity: grave
Justification: renders package unusable

waagent is missing a dependency on python3-setuptools, causing it to crash on
startup on current sid Azure images.

noahm@scratch:~$ apt policy waagent
waagent:
  Installed: 2.9.1.1-2
  Candidate: 2.9.1.1-2
  Version table:
 *** 2.9.1.1-2 100
        100 /var/lib/dpkg/status
noahm@scratch:~$ cat /etc/cloud-release
ID=azure
VERSION="20241002-1888"

noahm@scratch:~$ systemctl status walinuxagent.service
× walinuxagent.service - Microsft Azure Linux Agent
     Loaded: loaded (/usr/lib/systemd/system/walinuxagent.service; enabled; 
preset: enabled)
     Active: failed (Result: exit-code) since Thu 2024-10-03 20:04:49 UTC; 1min 
1s ago
   Duration: 154ms
 Invocation: f32477a0bf9d4ea79a2eba3aeb5eeb10
    Process: 771 ExecStart=/usr/sbin/waagent -daemon (code=exited, 
status=1/FAILURE)
   Main PID: 771 (code=exited, status=1/FAILURE)
   Mem peak: 14.5M
        CPU: 124ms

Oct 03 20:04:49 scratch waagent[771]:   File 
"/usr/lib/python3/dist-packages/azurelinuxagent/common/cgroup.py", line 25, in 
<module>
Oct 03 20:04:49 scratch waagent[771]:     from azurelinuxagent.common.osutil 
import get_osutil
Oct 03 20:04:49 scratch waagent[771]:   File 
"/usr/lib/python3/dist-packages/azurelinuxagent/common/osutil/__init__.py", 
line 18, in <module>
Oct 03 20:04:49 scratch waagent[771]:     from 
azurelinuxagent.common.osutil.factory import get_osutil
Oct 03 20:04:49 scratch waagent[771]:   File 
"/usr/lib/python3/dist-packages/azurelinuxagent/common/osutil/factory.py", line 
19, in <module>
Oct 03 20:04:49 scratch waagent[771]:     from distutils.version import 
LooseVersion as Version  # pylint: disable=no-name-in-module, import-error
Oct 03 20:04:49 scratch waagent[771]:     
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 03 20:04:49 scratch waagent[771]: ModuleNotFoundError: No module named 
'distutils'
Oct 03 20:04:49 scratch systemd[1]: walinuxagent.service: Main process exited, 
code=exited, status=1/FAILURE
Oct 03 20:04:49 scratch systemd[1]: walinuxagent.service: Failed with result 
'exit-code'.
noahm@scratch:~$ journalctl -u !$
journalctl -u walinuxagent.service
Oct 03 20:04:49 scratch systemd[1]: Started walinuxagent.service - Microsft 
Azure Linux Agent.
Oct 03 20:04:49 scratch waagent[771]: Traceback (most recent call last):
Oct 03 20:04:49 scratch waagent[771]:   File "/usr/sbin/waagent", line 33, in 
<module>
Oct 03 20:04:49 scratch waagent[771]:     
sys.exit(load_entry_point('WALinuxAgent==2.9.1.1', 'console_scripts', 
'waagent')())
Oct 03 20:04:49 scratch waagent[771]:              
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 03 20:04:49 scratch waagent[771]:   File "/usr/sbin/waagent", line 25, in 
importlib_load_entry_point
Oct 03 20:04:49 scratch waagent[771]:     return next(matches).load()
Oct 03 20:04:49 scratch waagent[771]:            ^^^^^^^^^^^^^^^^^^^^
Oct 03 20:04:49 scratch waagent[771]:   File 
"/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
Oct 03 20:04:49 scratch waagent[771]:     module = 
import_module(match.group('module'))
Oct 03 20:04:49 scratch waagent[771]:              
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 03 20:04:49 scratch waagent[771]:   File 
"/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
Oct 03 20:04:49 scratch waagent[771]:     return 
_bootstrap._gcd_import(name[level:], package, level)
Oct 03 20:04:49 scratch waagent[771]:            
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 03 20:04:49 scratch waagent[771]:   File "<frozen importlib._bootstrap>", 
line 1387, in _gcd_import
Oct 03 20:04:49 scratch waagent[771]:   File "<frozen importlib._bootstrap>", 
line 1360, in _find_and_load
Oct 03 20:04:49 scratch waagent[771]:   File "<frozen importlib._bootstrap>", 
line 1331, in _find_and_load_unlocked
Oct 03 20:04:49 scratch waagent[771]:   File "<frozen importlib._bootstrap>", 
line 935, in _load_unlocked
Oct 03 20:04:49 scratch waagent[771]:   File "<frozen 
importlib._bootstrap_external>", line 995, in exec_module
Oct 03 20:04:49 scratch waagent[771]:   File "<frozen importlib._bootstrap>", 
line 488, in _call_with_frames_removed
Oct 03 20:04:49 scratch waagent[771]:   File 
"/usr/lib/python3/dist-packages/azurelinuxagent/agent.py", line 31, in <module>
Oct 03 20:04:49 scratch waagent[771]:     from azurelinuxagent.common import 
cgroupconfigurator, logcollector
Oct 03 20:04:49 scratch waagent[771]:   File 
"/usr/lib/python3/dist-packages/azurelinuxagent/common/cgroupconfigurator.py", 
line 26, in <module>
Oct 03 20:04:49 scratch waagent[771]:     from azurelinuxagent.common.cgroup 
import CpuCgroup, AGENT_NAME_TELEMETRY, MetricsCounter, MemoryCgroup
Oct 03 20:04:49 scratch waagent[771]:   File 
"/usr/lib/python3/dist-packages/azurelinuxagent/common/cgroup.py", line 25, in 
<module>
Oct 03 20:04:49 scratch waagent[771]:     from azurelinuxagent.common.osutil 
import get_osutil
Oct 03 20:04:49 scratch waagent[771]:   File 
"/usr/lib/python3/dist-packages/azurelinuxagent/common/osutil/__init__.py", 
line 18, in <module>
Oct 03 20:04:49 scratch waagent[771]:     from 
azurelinuxagent.common.osutil.factory import get_osutil
Oct 03 20:04:49 scratch waagent[771]:   File 
"/usr/lib/python3/dist-packages/azurelinuxagent/common/osutil/factory.py", line 
19, in <module>
Oct 03 20:04:49 scratch waagent[771]:     from distutils.version import 
LooseVersion as Version  # pylint: disable=no-name-in-module, import-error
Oct 03 20:04:49 scratch waagent[771]:     
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 03 20:04:49 scratch waagent[771]: ModuleNotFoundError: No module named 
'distutils'
Oct 03 20:04:49 scratch systemd[1]: walinuxagent.service: Main process exited, 
code=exited, status=1/FAILURE
Oct 03 20:04:49 scratch systemd[1]: walinuxagent.service: Failed with result 
'exit-code'.

Reply via email to