salt pkg.upgrade reports new packages despite installing none (zypper module)

Created on 22 Jul 2018  路  6Comments  路  Source: saltstack/salt

Description of Issue/Question

When issuing pkg.upgrade on any openSUSE or Enterprise Server, certain packages cause false reports of upgrading packages although nothing is actually installed. Such packages are always multiversion files such as kernel, crash-kmp and gpg-pubkey packages which many may be installed at the same time as well as custom packages that may have multiple versions such as nVidia or driver rpms.

Example:

zabbix:~ # salt '<sles12sp3host>' pkg.upgrade
sles12sp3host:
    ----------
    crash-kmp-default:
        ----------
        new:
            7.1.8_k4.4.92_6.30-4.6.2
        old:
            7.1.8_k4.4.131_94.29-4.8.1,7.1.8_k4.4.92_6.30-4.6.2
    gpg-pubkey:
        ----------
        new:
            edf0d733-54930778
        old:
            39db7c82-5847eb1f,50a3dd1c-50f35137,bf9a56ad-5758109f,e4e37c43-584f065d,e9e45fb5-57d42e04,edf0d733-54930778
    kernel-default:
        ----------
        new:
            4.4.138-94.39.1
        old:
            4.4.120-94.17.1,4.4.126-94.22.1,4.4.131-94.29.1,4.4.132-94.33.1,4.4.138-94.39.1

No new packages were installed, only reported as being "new" despite having already been installed on a previous run.

Setup

(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
No special configuration is required - even out of the box configuration produces the same issue.

Steps to Reproduce Issue

(Include debug logs if possible and relevant.)
Simply running salt 'host' pkg.upgrade reproduces the issue on all distribution versions that we currently use (SLE12SP3, SLE15)

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)

Salt Version:
           Salt: 2018.3.1

Dependency Versions:
           cffi: 1.5.2
       cherrypy: 3.6.0
       dateutil: Not Installed
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.8
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: 0.21.1
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: 2.10
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.13 (default, Jan 11 2017, 10:56:06) [GCC]
   python-gnupg: Not Installed
         PyYAML: 3.12
          PyZMQ: 15.2.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.4.2
            ZMQ: 4.2.1

System Versions:
           dist: SuSE 12 x86_64
         locale: UTF-8
        machine: x86_64
        release: 4.4.132-94.33-default
         system: Linux
        version: SUSE Linux Enterprise Server  12 x86_64
Bug Execution Module P3 fixed-pending-your-verification severity-medium

Most helpful comment

@miukumac OK, next time we will slow down for you. :laughing:

All 6 comments

ping @saltstack/team-suse any ideas here?

Additional note; I upgraded our infrastructure to 2018.3.2 (Oxygen) and the same issue persists on this version as well.

@miukumac this is a bug, we just tested and can confirm that. We are on it, @meaksh will come up with a fix soon.

@miukumac - Thanks for reporting this. The issue is fixed on https://github.com/saltstack/salt/pull/48712

That was damn fast. Great work 馃憤

@miukumac OK, next time we will slow down for you. :laughing:

Was this page helpful?
0 / 5 - 0 ratings