You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please be as specific as possible and give set-up details.
on-prem machine
VM (Virtualbox, KVM, etc. please specify)
VM running on a cloud service, please be explicit and add details
container (Kubernetes, Docker, containerd, etc. please specify)
or a combination, please be explicit
jails if it is FreeBSD
Steps to Reproduce the behavior
Try to apply the sample state above, run state.apply, observe successful result:
----------
ID: rvm-gpg
Function: gpg.present
Name: rvm-gpg-keys
Result: True
Comment: Adding rvm-gpg-keys to GPG keychain
Set trust level for 7D2BAF1CF37B13E2069D6956105BD0E739499BDB to fully
Adding rvm-gpg-keys to GPG keychain
Set trust level for 409B6B1796C275462A1703113804BB82D39DC0E3 to fully
Started: 08:41:40.428047
Duration: 20168.769 ms
Changes:
The keys however are not present:
~$ gpg --list-keys
<no output>
Expected behavior
The GPG keys should be present for the user and trusted
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3004.1Dependency Versions:
cffi: 1.14.6cherrypy: unknowndateutil: 2.7.3docker-py: Not Installedgitdb: 2.0.6gitpython: 3.0.7Jinja2: 2.10.1libgit2: 1.1.0M2Crypto: Not InstalledMako: Not Installedmsgpack: 0.6.2msgpack-pure: Not Installedmysql-python: Not Installedpycparser: 2.20pycrypto: Not Installedpycryptodome: 3.6.1pygit2: 1.6.1Python: 3.8.10 (default, Mar 15 2022, 12:22:08)python-gnupg: 0.4.5PyYAML: 5.3.1PyZMQ: 18.1.1smmap: 2.0.5timelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.2System Versions:
dist: ubuntu 20.04 focallocale: utf-8machine: x86_64release: 5.11.0-1025-awssystem: Linuxversion: Ubuntu 20.04 focal
Additional context
Found some similar issues that have no ultimate solution #36771 and #46414
Logs on the minion show:
2022-06-01 08:40:59,418 [gnupg :1004][WARNING ][610776] gpg returned a non-zero error code: 2
2022-06-01 08:41:09,537 [gnupg :1004][WARNING ][610776] gpg returned a non-zero error code: 2
2022-06-01 08:41:19,622 [gnupg :1004][WARNING ][610776] gpg returned a non-zero error code: 2
The text was updated successfully, but these errors were encountered:
Description
I am following the instructions https://docs.saltproject.io/en/latest/ref/states/all/salt.states.gpg.html#management-of-the-gpg-keychains. The GPG state for
salt.states.gpg.present
is not adding keys even though it says it's successful.Setup
Example state for adding the GPG keys for RVM under the
ubuntu
user:Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Try to apply the sample state above, run
state.apply
, observe successful result:The keys however are not present:
Expected behavior
The GPG keys should be present for the user and trusted
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
Found some similar issues that have no ultimate solution #36771 and #46414
Logs on the minion show:
The text was updated successfully, but these errors were encountered: