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

Server error on jobs.lookup_jid with runner client #208

Open
bbinet opened this issue Jul 1, 2020 · 3 comments
Open

Server error on jobs.lookup_jid with runner client #208

bbinet opened this issue Jul 1, 2020 · 3 comments

Comments

@bbinet
Copy link

bbinet commented Jul 1, 2020

When I run a function asynchronously with --client=local_async, I can't get the result with jobs.lookup_jid runner because it generates a HTTP Error 500: Internal Server Error.

For example:

$ pepper --client=local_async test-mc-1 test.ping
jid:
    20200701073413349464
minions:
    - test-mc-1

$ pepper -vvv --client=runner jobs.lookup_jid jid=20200701073413349464
Error with request
Traceback (most recent call last):
  File "/home/bruno/.virtualenvs/pepper/lib/python3.7/site-packages/pepper/libpepper.py", line 231, in req
    f = urlopen(req)
  File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error
Pepper error: Server error.

FYI, the issue is the same with pepper v0.7.6 and develop branch and salt-master version 2019.2.4 (Fluorine).

Are you able to reproduce this issue ?

@bbinet
Copy link
Author

bbinet commented Jul 1, 2020

Also I can't see any relevant issue in salt-master and salt-api logs.

@mattp-
Copy link
Contributor

mattp- commented Jul 2, 2020

there seems to be an issue with kwarg to arg spec parsing in salt itself. in the interim you can change the jid= to just a [jid], I need to look into salt siide when/where this broke.

@bbinet
Copy link
Author

bbinet commented Jul 2, 2020

Same issue:

$ pepper -vvv --client=runner jobs.lookup_jid 20200702070249988093
Error with request
Traceback (most recent call last):
  File "/home/bruno/.virtualenvs/pepper/lib/python3.7/site-packages/pepper/libpepper.py", line 231, in req
    f = urlopen(req)
  File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error
Pepper error: Server error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants