-
-
Save anonymous/25282d288ef6ec0a2f3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ash1] root@v-salt-001-prod:/var/log/salt# killall -9 /usr/bin/python2.6 | |
[ash1] root@v-salt-001-prod:/var/log/salt# rm -rf /var/log/salt/*; service salt-master restart; service salt-api restart; service salt-master status; service salt-api status; | |
Stopping salt-master daemon: [FAILED] | |
Starting salt-master daemon: [ OK ] | |
Stopping salt-api daemon: [FAILED] | |
Starting salt-api daemon: [ OK ] | |
salt-master (pid 24710) is running... | |
salt-api (pid 24716 24710) is running... | |
[ash1] root@v-salt-001-prod:/var/log/salt# curl -k https://10.119.172.7:8080; echo "" | |
{"clients": ["_is_master_running", "local", "local_async", "local_batch", "runner", "runner_async", "ssh", "ssh_async", "wheel", "wheel_async"], "return": "Welcome"} | |
[ash1] root@v-salt-001-prod:/var/log/salt# curl -ksi https://10.119.172.7:8080/login -H "Accept: application/json" -d username='salttest' -d password='icanhazsaltapi' -d eauth='pam'; echo "" | |
HTTP/1.1 503 Service Unavailable | |
Content-Length: 775 | |
Access-Control-Expose-Headers: GET, POST | |
Vary: Accept-Encoding | |
Server: CherryPy/3.8.0 | |
Allow: GET, HEAD, POST | |
Access-Control-Allow-Credentials: true | |
Date: Fri, 31 Jul 2015 20:48:10 GMT | |
Access-Control-Allow-Origin: * | |
Content-Type: text/html;charset=utf-8 | |
Set-Cookie: session_id=9c4b6b8ba7b136c15672b411d2df2842723ed752; expires=Sat, 01 Aug 2015 06:48:10 GMT; Path=/ | |
<!DOCTYPE html PUBLIC | |
"-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> | |
<title>503 Service Unavailable</title> | |
<style type="text/css"> | |
#powered_by { | |
margin-top: 20px; | |
border-top: 2px solid black; | |
font-style: italic; | |
} | |
#traceback { | |
color: red; | |
} | |
</style> | |
</head> | |
<body> | |
<h2>503 Service Unavailable</h2> | |
<p>SaltReqTimeoutError: after 60 seconds, ran 1 tries</p> | |
<pre id="traceback"></pre> | |
<div id="powered_by"> | |
<span> | |
Powered by <a href="http://www.cherrypy.org">CherryPy 3.8.0</a> | |
</span> | |
</div> | |
</body> | |
</html> | |
[ash1] root@v-salt-001-prod:/var/log/salt# rpm -qa|grep -i salt | |
salt-master-2015.5.3-3.el6.noarch | |
salt-2015.5.3-3.el6.noarch | |
salt-api-2015.5.3-3.el6.noarch | |
salt-minion-2015.5.3-3.el6.noarch | |
[ash1] root@v-salt-001-prod:/var/log/salt# cat /etc/salt/master.d/salt-api.conf | |
rest_cherrypy: | |
port: 8080 | |
address: 0.0.0.0 | |
ssl_crt: /etc/ssl/salt-api/cert.pem | |
ssl_key: /etc/ssl/salt-api/key.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment