salt icon indicating copy to clipboard operation
salt copied to clipboard

bad error/warning message, 'You should upgrade pyOpenSSL'

Open pitatus opened this issue 11 years ago • 2 comments

I have found a few salt.module calls that do not work for Debian based OS's, complaining You should upgrade pyOpenSSL to a version that is one version higher than is installed on the box. For example, I have tested with the following distro versions and version of python-openssl/pyOpenSSL:

CentOS 6.7      pyOpenSSL.x86_64  0.13.1-2.el6
CentOS 7.1.1503 pyOpenSSL.x86_64  0.13.1-3.el7
Ubuntu 14.04.3  python-openssl    0.13-2ubuntu6
Debian 8.2      python-openssl    0.14-1

using these module functions which fail (mostly likely others):

pkg.group_list
pkg.check_db
pkg.latest
acl.version
acl.getfacl

The RedHat based distros do not complain and the function completes successfully. However this is what I see for the Debian based distros:

## Ubuntu 14.04.3
# salt-call --local pkg.group_list
[ERROR   ] You should upgrade pyOpenSSL to at least 0.14.1 to enable the use of X509 extensions 'pkg.group_list' is not available.
## Debian 8.2
# salt-call --local pkg.group_list
[WARNING ] You should upgrade pyOpenSSL to at least 0.15.1 to enable the full use of X509 extensions 'pkg.group_list' is not available.

Salt version tested: 2015.8.1 (Beryllium)

pitatus avatar Nov 13 '15 20:11 pitatus

testing with OpenSUSE 13.2 and Salt 2015.8.1 (Beryllium), package python-pyOpenSSL version is 0.15.1-2.2 and also fails but with different result:

# salt-call --local pkg.group_list -l debug
[DEBUG   ] Reading configuration from /etc/salt/minion
[DEBUG   ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG   ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG   ] Using cached minion ID from /etc/salt/minion_id: opensuse-1322.site
[DEBUG   ] Configuration file path: /etc/salt/minion
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG   ] Reading configuration from /etc/salt/minion
[DEBUG   ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG   ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG   ] Please install 'virt-what' to improve results of the 'virtual' grain.
[DEBUG   ] LazyLoaded jinja.render
[DEBUG   ] LazyLoaded yaml.render
[DEBUG   ] LazyLoaded jinja.render
[DEBUG   ] LazyLoaded yaml.render
[DEBUG   ] LazyLoaded config.get
[DEBUG   ] Error loading module.ifttt: IFTTT Secret Key Unavailable, not loading.
[DEBUG   ] Error loading module.npm: npm execution module could not be loaded because the npm binary could not be located
[DEBUG   ] Error loading module.victorops: No VictorOps api key found.
[DEBUG   ] Error loading module.ipmi: No module named pyghmi.ipmi
[DEBUG   ] SMBIOS: neither dmidecode nor smbios found!
[DEBUG   ] Could not LazyLoad pkg.group_list
'pkg.group_list' is not available.

Comparing to CentOS7 which works:

# salt-call --local pkg.group_list -l debug
[DEBUG   ] Reading configuration from /etc/salt/minion
[DEBUG   ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG   ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG   ] Using cached minion ID from /etc/salt/minion_id: c72
[DEBUG   ] Configuration file path: /etc/salt/minion
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG   ] Reading configuration from /etc/salt/minion
[DEBUG   ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG   ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG   ] LazyLoaded jinja.render
[DEBUG   ] LazyLoaded yaml.render
[DEBUG   ] LazyLoaded jinja.render
[DEBUG   ] LazyLoaded yaml.render
[DEBUG   ] LazyLoaded pkg.group_list
[DEBUG   ] LazyLoaded cmd.run_stdout
[INFO    ] Executing command 'yum grouplist' in directory '/root'
[DEBUG   ] LazyLoaded nested.output
...

pitatus avatar Nov 13 '15 22:11 pitatus

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Feb 19 '18 00:02 stale[bot]