saltstack-formulas/postgres-formula

Fedora: Unexpected issue with postgres-python-pkg state

noelmcloughlin opened this issue · 3 comments

On Fedora26/Salt2016.11.3 the state ID 'postgres-python.pkg' fails unexpectedly.

    [ERROR   ] Made the following changes: 'python2-psycopg2' changed from 'absent' to '2.6.2-2.fc25'

      ID: postgresql-python
Function: pkg.installed
    Name: python-psycopg2
  Result: False
 Comment: The following packages failed to install/update: python-psycopg2
 Started: 00:37:00.792703
Duration: 72294.839 ms
 Changes:
          ----------
          python2-psycopg2:
              ----------
              new:
                  2.6.2-2.fc25
              old:

      $ sudo yum install python-psycopg2
      Redirecting to '/usr/bin/dnf install python-psycopg2' (see 'man yum2dnf')
      Last metadata expiration check: 0:09:43 ago on Thu Sep 14 00:33:25 2017.
      Package python2-psycopg2-2.6.2-2.fc25.x86_64 is already installed, skipping. 

Replicated again (rerun): SALT 2017.7

[ERROR ] The following packages failed to install/update: python-psycopg2

      ID: postgresql-python
Function: pkg.installed
    Name: python-psycopg2
  Result: False
 Comment: The following packages failed to install/update: python-psycopg2
 Started: 00:37:00.792703
Duration: 72294.839 ms
 Changes: 
          ----------
          python2-psycopg2:
              ----------
              new:
                  2.6.2-2.fc25
              old:

PR #159 does NOT address this issue.

This is related to #161