-
Notifications
You must be signed in to change notification settings - Fork 69
salt-api run state will return immediately return null #148
Comments
You can increase the timeout by adding The result of the job can be referenced after the fact via the jobs runner, just like at Salt's CLI.
There's an open issue (#139) to get the JID in the output so you don't have to go looking for it if there's a timeout. For right now, you can specify a long timeout like above or you can run the job asynchronously with the |
i try set the timeout to a big value,but it seems no use, and i use curl -k http://192.168.10.231:8888 -H"X-Auth-Token:d4e31ff29001f749d03fc89105568f69b2d2307b" -d client='local' curl -k http://192.168.10.231:8888/run -d client=runner -dfun='jobs.list_jobs' -d username='salt' -d password='salt' -d eauth='pam' On Fri, Mar 28, 2014 at 1:36 AM, Seth House [email protected]:
|
Regarding the timeout: do you still get the empty return immediately when using the timeout arg or does it at least wait that long before returning? Regarding the IOError: interesting. I have seen this before though not in little while. Can you post your |
time curl -k http://192.168.10.124:8888 -H"X-Auth-Token:69f9839713a7712336e13e726bffebd7d81b2a46" -d client='local' time curl -k http://192.168.10.124:8888 -H"X-Auth-Token:69f9839713a7712336e13e726bffebd7d81b2a46" -d client='local' cat /etc/redhat-releaseRed Hat Enterprise Linux Server release 5.5 (Tikanga) rpm -qa|grep saltsalt-2014.1.0-1.el5 cat /etc/salt/master.d/saltapi.confrest_cherrypy: curl -k http://192.168.10.124:8888/login -H "Accept: application/x-yaml"-d username='salt' -d password='salt' -d
service salt-api startStarting salt-api daemon: [ERROR ] Not loading 'rest_wsgi'. 'port' not On Fri, Mar 28, 2014 at 11:14 PM, Seth House [email protected]:
|
Great stuff. Thanks for posting all that. I'll grab a RHEL vm and try to duplicate your setup. I'd like to get you at least semi-working while I look into this. It looks like the service script that came in that RPM isn't passing the |
yes, i try run salt-api as daemon, the following command is ok curl -k http://192.168.10.124:8888/run -d client=runner -dfun='jobs.list_jobs' here is what i modify on /etc/init.d/salt-api ,i do not know if it will
On Sat, Mar 29, 2014 at 11:55 AM, Seth House [email protected]:
|
Timeout is unicode type in salt rest api by POST data. The issue in salt-api: vmware-archive/salt-api#148
if i do the following request,it will return null immediately ,if salt state do lot's of stuff,it will cause problem because salt-api return ,but salt job still not finish,another question is how can i judge if the action is success or failed?
The text was updated successfully, but these errors were encountered: