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

eauth failure with batching #9605

Closed
djs52 opened this issue Jan 7, 2014 · 7 comments · Fixed by #11207
Closed

eauth failure with batching #9605

djs52 opened this issue Jan 7, 2014 · 7 comments · Fixed by #11207
Assignees
Labels
Bug broken, incorrect, or confusing behavior fixed-pls-verify fix is linked, bug author to confirm fix severity-low 4th level, cosemtic problems, work around exists

Comments

@djs52
Copy link

djs52 commented Jan 7, 2014

If a batch size is set, external auth gives a backtrace, regardless of whether a token is available:

$ salt -T -a pam '*' test.ping
server1:
  True
server2:
  True
...

But:

$ salt -b 2 -T -a pam '*' test.ping
[ERROR   ] An un-handled exception was caught by salt's global exception handler:
EauthAuthenticationError: Failed to authenticate, is this user permitted to execute commands?
Traceback (most recent call last):
  File "/usr/bin/salt", line 10, in <module>
    salt_main()
  File "/usr/lib/pymodules/python2.7/salt/scripts.py", line 117, in salt_main
    client.run()
  File "/usr/lib/pymodules/python2.7/salt/cli/__init__.py", line 61, in run
    batch = salt.cli.batch.Batch(self.config)
  File "/usr/lib/pymodules/python2.7/salt/cli/batch.py", line 24, in __init__
    self.minions = self.__gather_minions()
  File "/usr/lib/pymodules/python2.7/salt/cli/batch.py", line 43, in __gather_minions
    for ret in self.local.cmd_iter(*args):
  File "/usr/lib/pymodules/python2.7/salt/client/__init__.py", line 522, in cmd_iter
    **kwargs)
  File "/usr/lib/pymodules/python2.7/salt/client/__init__.py", line 230, in run_job
    return self._check_pub_data(pub_data)
  File "/usr/lib/pymodules/python2.7/salt/client/__init__.py", line 178, in _check_pub_data
    'Failed to authenticate, is this user permitted to execute '
EauthAuthenticationError: Failed to authenticate, is this user permitted to execute commands?
@basepi
Copy link
Contributor

basepi commented Jan 8, 2014

Good to know. I'm sure it's just an oversight with the way that batch mode was added. We'll get it fixed.

@Rucknar
Copy link

Rucknar commented Jun 19, 2014

Stupid question perhaps, how come this hasn't yet made it out the door into a release yet? Batch mode is broken in our environment :(

@basepi
Copy link
Contributor

basepi commented Jun 19, 2014

Nah, not stupid. Nobody pinged me on the pull request to cherry-pick it, so I never cherry-picked it into the 2014.1 branch. In the future, if there are pull requests you think need to make it into the next bugfix release, please ping me (@basepi) on the pull request and I'll apply the appropriate label. I have applied the label in this case, this should be in 2014.1.6.

@Rucknar
Copy link

Rucknar commented Jun 19, 2014

Excellent, much appreciated :)

@basepi
Copy link
Contributor

basepi commented Jul 9, 2014

FYI, this broke things in 2014.1 as it requires additional code that's not in 2014.1. We have reverted for the 2014.1.7 release, so I apologize but you'll have to wait until the next feature release to get this fix. (Luckily, that feature release is scheduled for a release candidate next week!)

@Rucknar
Copy link

Rucknar commented Jul 10, 2014

Thanks for the update, will keep an eye out for it and use other methods of authentication for now.

@basepi
Copy link
Contributor

basepi commented Jul 10, 2014

Thanks, and sorry for the inconvenience.

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 fixed-pls-verify fix is linked, bug author to confirm fix severity-low 4th level, cosemtic problems, work around exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants