Skip to content

[BUG] Doesn't work out of the box with current Salt releases #284

Open
@sylvainfaivre

Description

@sylvainfaivre

See for example https://gitlab.com/saltstack-formulas/mysql-formula/-/jobs/9672074397

default-debian-11-3006-10-py3 :

       ----------
                 ID: mysql_db_0
           Function: mysql_database.present
               Name: foo
             Result: False
            Comment: State 'mysql_database.present' was not found in SLS 'mysql.database'
              Reason: 'mysql_database' __virtual__ returned False: mysql module could not be loaded
            Changes:   
       ----------
                 ID: mysql_db_1
           Function: mysql_database.present
               Name: bar
             Result: False
            Comment: State 'mysql_database.present' was not found in SLS 'mysql.database'
              Reason: 'mysql_database' __virtual__ returned False: mysql module could not be loaded
            Changes:   
       ----------
                 ID: mysql_db_2
           Function: mysql_database.absent
               Name: obsolete_db
             Result: False
            Comment: State 'mysql_database.absent' was not found in SLS 'mysql.database'
              Reason: 'mysql_database' __virtual__ returned False: mysql module could not be loaded
            Changes:   
       ----------
                 ID: mysql_user_frank_localhost
           Function: mysql_user.present
               Name: frank
             Result: False
            Comment: State 'mysql_user.present' was not found in SLS 'mysql.user'
              Reason: 'mysql_user' __virtual__ returned False: mysql module could not be loaded
            Changes:   
       ----------
                 ID: mysql_user_frank_localhost_0
           Function: mysql_grants.present
               Name: frank_foo_all
             Result: False
            Comment: One or more requisite failed: mysql.user.mysql_user_frank_localhost
            Started: 14:50:53.898988
           Duration: 0.004 ms
            Changes:   
       ----------
                 ID: mysql_user_obsoleteuser_localhost
           Function: mysql_user.absent
               Name: obsoleteuser
             Result: False
            Comment: State 'mysql_user.absent' was not found in SLS 'mysql.user'
              Reason: 'mysql_user' __virtual__ returned False: mysql module could not be loaded
            Changes:   

Ref. https://docs.saltproject.io/en/latest/ref/states/all/salt.states.mysql_database.html

depends: MySQLdb Python module

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions