Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay on all salt commands when importing keyring #15476

Closed
cachedout opened this issue Sep 3, 2014 · 1 comment
Closed

Delay on all salt commands when importing keyring #15476

cachedout opened this issue Sep 3, 2014 · 1 comment
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt P3 Priority 3 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around stale Upstream-Bug is a result of an upstream issue, not in salt
Milestone

Comments

@cachedout
Copy link
Contributor

On Ubuntu 14.04, salt commands can incur a 25s delay when run via sudo. This appears to be due to a problem with the import of the Python keyring module.

mp@silver ~ % salt --versions-report
           Salt: 2014.7.0rc1-379-g350b6f8
         Python: 2.7.6 (default, Mar 22 2014, 22:59:56)
         Jinja2: 2.7.3
       M2Crypto: 0.21.1
 msgpack-python: 0.3.0
   msgpack-pure: Not Installed
       pycrypto: 2.6.1
        libnacl: 1.3.0
         PyYAML: 3.10
          ioflo: 0.9.39
          PyZMQ: 14.0.1
           RAET: 0.2.12
            ZMQ: 4.0.4
           Mako: Not Installed
mp@silver ~ % sudo dpkg --status python-keyring                                                   2 
Package: python-keyring
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 274
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Version: 3.5-1
Depends: python (>= 2.7), python (<< 2.8), python:any (>= 2.7.1-0ubuntu2)
Recommends: python-secretstorage, python-crypto
Suggests: python-gi, gir1.2-gnomekeyring-1.0, python-gdata, python-keyczar, python-kde4
Breaks: kupfer (<< 0+v208-2.1), python-mini-buildd (<< 1.0.0~gamma.3)
Description: store and access your passwords safely
 The Python keyring library provides an easy way to access the system
 keyring service (e.g Gnome-Keyring, KWallet) from Python.
 it can be used in any application that needs safe password storage.
Original-Maintainer: Carl Chenet <chaica@debian.org>
Homepage: https://bitbucket.org/kang/python-keyring-lib
mp@silver ~ % sudo time python -c 'import keyring'
0.11user 0.02system 0:25.17elapsed 0%CPU (0avgtext+0avgdata 20532maxresident)k
0inputs+0outputs (0major+10616minor)pagefaults 0swaps
mp@silver ~ % sudo time salt-call --local sys.doc    
2.20user 1.38system 0:16.57elapsed 21%CPU (0avgtext+0avgdata 81812maxresident)k
272inputs+40outputs (0major+1516329minor)pagefaults 0swaps

I believe this may be an upstream issue as documented here: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1181344

@cachedout cachedout added this to the Approved milestone Sep 3, 2014
@arroyoc arroyoc added Core relates to code central or existential to Salt P3 Priority 3 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around and removed severity-low 4th level, cosemtic problems, work around exists labels Jun 30, 2015
@stale
Copy link

stale bot commented Nov 21, 2017

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 stale bot added the stale label Nov 21, 2017
@stale stale bot closed this as completed Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt P3 Priority 3 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around stale Upstream-Bug is a result of an upstream issue, not in salt
Projects
None yet
Development

No branches or pull requests

3 participants