Skip to content

[Bug]: kernelpkg.upgrade doesn't work with trixie #69131

Closed

Description

@asbates-byte

What happened?

Running salt -C 'G@kernel:Linux and I@upgrade:1' kernelpkg.upgrade reboot=True at_time=2 results in the following error.
This is on a Debian13 machine, but the drop down below doesn't offer that as an option although I am sure it is supported.

The minion function caused an exception: Traceback (most recent call last):
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/minion.py", line 2568, in _thread_return
return_data = minion_instance._execute_job_function(
function_name, function_args, executors, opts, data
)
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/minion.py", line 2517, in _execute_job_function
return_data = self.executors[fname](opts, data, func, args, kwargs)
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/loader/lazy.py", line 177, in call
ret = self.loader.run(run_func, *args, **kwargs)
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/loader/lazy.py", line 1401, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/loader/lazy.py", line 1416, in _run_as
ret = _func_or_method(*args, **kwargs)
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/executors/direct_call.py", line 10, in execute
return func(*args, **kwargs)
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/loader/lazy.py", line 177, in call
ret = self.loader.run(run_func, *args, **kwargs)
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/loader/lazy.py", line 1401, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/loader/lazy.py", line 1416, in _run_as
ret = _func_or_method(*args, **kwargs)
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/modules/kernelpkg_linux_apt.py", line 153, in upgrade
result = salt"pkg.install"
~~~~~~~~~~~~~~~~^^
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/modules/kernelpkg_linux_apt.py", line 82, in latest_available
result = salt"pkg.latest_version"
~~~~~~~~~~~~^^
File "/opt/saltstack/salt/lib/python3.13/site-packages/salt/modules/kernelpkg_linux_apt.py", line 259, in _kernel_type
return re.match(r"^[\d.-]+-(.+)$", active()).group(1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'

Type of salt install

Official deb

Major version

3007.x

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

debian-12

salt --versions-report output

Salt Version:
          Salt: 3007.14
 
Python Version:
        Python: 3.10.19 (main, Feb 17 2026, 23:32:03) [GCC 11.2.0]
 
Dependency Versions:
          cffi: 2.0.0
      cherrypy: unknown
  cryptography: 46.0.5
      dateutil: 2.8.2
     docker-py: Not Installed
         gitdb: 4.0.11
     gitpython: 3.1.40
        Jinja2: 3.1.6
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.7
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.19.1
        pygit2: Not Installed
  python-gnupg: 0.5.2
        PyYAML: 6.0.1
         PyZMQ: 25.1.2
        relenv: 0.22.4
         smmap: 5.0.1
       timelib: 0.3.0
       Tornado: 6.5.5
           ZMQ: 4.3.4
 
Salt Package Information:
  Package Type: onedir
 
System Versions:
          dist: debian 13.4 trixie
        locale: utf-8
       machine: x86_64
       release: 6.12.86+deb13-amd64
        system: Linux
       version: Debian GNU/Linux 13.4 trixie

Activity

  1. added
    bug
    on May 12, 2026
  2. added a commit that references this issue on Jun 6, 2026
    3da41f5
  3. added this to the Sulphur v3006.26 milestone on Jun 19, 2026
  4. added 2 commits that reference this issue on Jun 30, 2026
  5. dwoz commented on Jul 2, 2026

    @dwoz
    Contributor

    Fix merged and shipped in a supported release. Closing per bulk triage. Reopen if this reproduces on a currently supported release (3006.x, 3007.x, 3008.x, master).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions