Repository navigation
Closed
Description
I'm trying to run salt-call from kickseed (Ubuntu "post"-install scripts). The main difference I can think of is that service won't be started automatically so salt-minion isn't running.
My master has auto_accept so that shouldn't be the problem.
This worked for me with 2014.1.10-1precise1 and fails with 2014.7.0rc1-20f2334.
[ERROR ] An un-handled exception was caught by salt's global exception handler:
IOError: [Errno 2] No such file or directory: '/etc/salt/pki/minion/minion.pub'
Traceback (most recent call last):
File "/usr/bin/salt-call", line 11, in <module>
salt_call()
File "/usr/lib/pymodules/python2.7/salt/scripts.py", line 128, in salt_call
client.run()
File "/usr/lib/pymodules/python2.7/salt/cli/__init__.py", line 409, in run
caller = salt.cli.caller.Caller.factory(self.config)
File "/usr/lib/pymodules/python2.7/salt/cli/caller.py", line 65, in factory
return ZeroMQCaller(opts, **kwargs)
File "/usr/lib/pymodules/python2.7/salt/cli/caller.py", line 88, in __init__
self.minion = salt.minion.SMinion(opts)
File "/usr/lib/pymodules/python2.7/salt/minion.py", line 265, in __init__
self.gen_modules()
File "/usr/lib/pymodules/python2.7/salt/minion.py", line 277, in gen_modules
self.opts['environment'],
File "/usr/lib/pymodules/python2.7/salt/pillar/__init__.py", line 54, in get_pillar
}.get(opts['file_client'], Pillar)(opts, grains, id_, saltenv, ext)
File "/usr/lib/pymodules/python2.7/salt/pillar/__init__.py", line 68, in __init__
self.sreq = salt.transport.Channel.factory(opts)
File "/usr/lib/pymodules/python2.7/salt/transport/__init__.py", line 48, in factory
return ZeroMQChannel(opts, **kwargs)
File "/usr/lib/pymodules/python2.7/salt/transport/__init__.py", line 190, in __init__
self.auth = salt.crypt.SAuth(opts)
File "/usr/lib/pymodules/python2.7/salt/crypt.py", line 718, in __init__
self.crypticle = self.__authenticate()
File "/usr/lib/pymodules/python2.7/salt/crypt.py", line 736, in __authenticate
self.opts.get('auth_tries', 1)
File "/usr/lib/pymodules/python2.7/salt/crypt.py", line 549, in sign_in
self.minion_sign_in_payload(),
File "/usr/lib/pymodules/python2.7/salt/crypt.py", line 332, in minion_sign_in_payload
with salt.utils.fopen(self.pub_path, 'r') as fp_:
File "/usr/lib/pymodules/python2.7/salt/utils/__init__.py", line 1110, in fopen
fhandle = open(*args, **kwargs)
IOError: [Errno 2] No such file or directory: '/etc/salt/pki/minion/minion.pub'
Metadata
Metadata
Assignees
Labels
Corerelates to code central or existential to SaltP3Priority 3bugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
Activity
Jille commentedon Sep 3, 2014
If I add
salt-minion -d; sleep 5before using salt-call it works.basepi commentedon Sep 3, 2014
That's....weird.
salt-callshould definitely be generating the keys if they do not exist. Thanks for the report.starchy commentedon May 29, 2015
I'm seeing the same thing with 2015.5.0+ds-1~bpo8+1 on Debian Jessie. The behavior is the same either running salt-call or starting salt-minion. Everything works fine if I create minion.pub by hand.
himadrisingh001 commentedon Dec 7, 2016
We are facing similar issue a number of times on our cluster too.
There is no way to recover from it until manually fixing the salt keys.
DaveQB commentedon Feb 8, 2017
We're seeing this now too:
MINION
MASTER
colttt commentedon Dec 18, 2017
the problem still exist :(
I just one run some IPMI things like from salt master server
Setup
stale commentedon Apr 12, 2019
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.