salt: yumpkg.installed broken in salt v2015.8.1 on CentOS 6 minions

Hi,

I’m running almost exclusively CentOS 6 minions, and there seems to be a bug whenever you run pkg.installed more than once, but ONLY on 2015.8.1. 2015.8.0 is fine.

Here’s the stack trace I get from the command line:

> salt 'my-minions-*' state.sls core.*
....
          ID: install-ntpd
    Function: pkg.installed
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/python2.6/site-packages/salt/state.py", line 1591, in call
                  **cdata['kwargs'])
                File "/usr/lib/python2.6/site-packages/salt/states/pkg.py", line 943, in installed
                  **kwargs)
                File "/usr/lib/python2.6/site-packages/salt/states/pkg.py", line 371, in _find_install_targets
                  problems = _preflight_check(not_installed, **kwargs)
                File "/usr/lib/python2.6/site-packages/salt/states/pkg.py", line 547, in _preflight_check
                  *list(desired.keys()), fromrepo=fromrepo, **kwargs
                File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg.py", line 760, in check_db
                  set(x.name for x in _repoquery_pkginfo(repoquery_cmd))
                File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg.py", line 95, in _repoquery_pkginfo
                  for line in _repoquery(repoquery_args, ignore_stderr=True):
                File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg.py", line 149, in _repoquery
                  '{0}'.format(comment)
              CommandExecutionError
     Started: 15:45:08.732476
    Duration: 53774.058 ms
     Changes:
....

And here’s the state definition in the sls file:

...

install-ntpd:
  pkg:
    - installed
    - pkgs:
      - ntp
      - ntpdate
      - ntp-doc

...

To clarify, both master and minion are running salt 2015.8.1, but the master is on 14.04.3 LTS, while my minions are on CentOS 6.5.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 17 (11 by maintainers)

Commits related to this issue

Most upvoted comments

@jfindlay Please close this as has been resolved.