Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1. curl -i --insecure -H "X-Tds-Auth: test0sensor0api1" -H "Content-Type: application/json" -d '{"api_url": "https://127.0.0.1/msp/", "block": false, "enable": true, "debug": false, "bypass_interval": 15, "mta": false, "db": {"host": "localhost", "name": "msp", "user": "msp", "password": "msp"}}' -X POST localhost:7070/msp/enable
  2. HTTP/1.0 406 NOT ACCEPTABLE
  3. Content-Type: application/json
  4. Content-Length: 5449
  5. Server: Werkzeug/0.9.4 Python/3.4.3
  6. Date: Wed, 18 Jul 2018 16:11:29 GMT
  7.  
  8. {
  9. "message": "\nPLAY [all] *********************************************************************\n\nTASK [setup] *******************************************************************\nok: [test0sensor0api1]\n\nTASK [basic : get tds_registry] ************************************************\nok: [test0sensor0api1]\n\nTASK [polygon : set polygon variables] *****************************************\nok: [test0sensor0api1]\nfailed: [test0sensor0api1] (item=polycephal-server) => {\"changed\": true, \"cmd\": [\"monit\", \"stop\", \"polycephal-server\"], \"delta\": \"0:00:00.016705\", \"end\": \"2018-07-18 19:11:20.566487\", \"failed\": true, \"item\": \"polycephal-server\", \"rc\": 1, \"start\": \"2018-07-18 19:11:20.549782\", \"stderr\": \"There is no service named \\\"polycephal-server\\\"\", \"stdout\": \"\", \"stdout_lines\": [], \"warnings\": []}\nfailed: [test0sensor0api1] (item=polycephal-box) => {\"changed\": true, \"cmd\": [\"monit\", \"stop\", \"polycephal-box\"], \"delta\": \"0:00:00.012913\", \"end\": \"2018-07-18 19:11:20.761471\", \"failed\": true, \"item\": \"polycephal-box\", \"rc\": 1, \"start\": \"2018-07-18 19:11:20.748558\", \"stderr\": \"There is no service named \\\"polycephal-box\\\"\", \"stdout\": \"\", \"stdout_lines\": [], \"warnings\": []}\nfailed: [test0sensor0api1] (item=polycephal-redis) => {\"changed\": true, \"cmd\": [\"monit\", \"stop\", \"polycephal-redis\"], \"delta\": \"0:00:00.013777\", \"end\": \"2018-07-18 19:11:20.977477\", \"failed\": true, \"item\": \"polycephal-redis\", \"rc\": 1, \"start\": \"2018-07-18 19:11:20.963700\", \"stderr\": \"There is no service named \\\"polycephal-redis\\\"\", \"stdout\": \"\", \"stdout_lines\": [], \"warnings\": []}\n\nTASK [polygon : monit stop polycephal] *****************************************\n...ignoring\nfailed: [test0sensor0api1] (item=polycephal-parser) => {\"changed\": true, \"cmd\": [\"monit\", \"stop\", \"polycephal-parser\"], \"delta\": \"0:00:00.013118\", \"end\": \"2018-07-18 19:11:21.209507\", \"failed\": true, \"item\": \"polycephal-parser\", \"rc\": 1, \"start\": \"2018-07-18 19:11:21.196389\", \"stderr\": \"There is no service named \\\"polycephal-parser\\\"\", \"stdout\": \"\", \"stdout_lines\": [], \"warnings\": []}\nfailed: [test0sensor0api1] (item=polycephal_server) => {\"failed\": true, \"item\": \"polycephal_server\", \"msg\": \"no service or tool found for: polycephal_server\"}\nfailed: [test0sensor0api1] (item=polycephal_box) => {\"failed\": true, \"item\": \"polycephal_box\", \"msg\": \"no service or tool found for: polycephal_box\"}\nfailed: [test0sensor0api1] (item=polycephal_redis) => {\"failed\": true, \"item\": \"polycephal_redis\", \"msg\": \"no service or tool found for: polycephal_redis\"}\n\nTASK [polygon : service stop polycephal] ***************************************\n...ignoring\nfailed: [test0sensor0api1] (item=polycephal_parser) => {\"failed\": true, \"item\": \"polycephal_parser\", \"msg\": \"no service or tool found for: polycephal_parser\"}\nok: [test0sensor0api1] => (item=/etc/monit/conf.d/polycephal-server)\nok: [test0sensor0api1] => (item=/etc/monit/conf.d/polycephal-box)\nok: [test0sensor0api1] => (item=/etc/monit/conf.d/polycephal-redis)\n\nTASK [polygon : remove monit config for polycephal] ****************************\nok: [test0sensor0api1] => (item=/etc/monit/conf.d/polycephal-parser)\nok: [test0sensor0api1] => (item=/etc/init.d/polycephal_server)\nok: [test0sensor0api1] => (item=/etc/init.d/polycephal_box)\nok: [test0sensor0api1] => (item=/etc/init.d/polycephal_redis)\n\nTASK [polygon : remove init script for polycephal] *****************************\nok: [test0sensor0api1] => (item=/etc/init.d/polycephal_parser)\n\nTASK [polygon : Remove redirect 25 port to 1025] *******************************\nok: [test0sensor0api1]\n\nTASK [polygon : create backup dir] *********************************************\nok: [test0sensor0api1]\n\nTASK [polygon : backup old files] **********************************************\nok: [test0sensor0api1]\n\nTASK [polygon : set msp workers] ***********************************************\nok: [test0sensor0api1]\n\nTASK [polygon : set msp all] ***************************************************\nok: [test0sensor0api1]\n\nTASK [polygon : add msp default config] ****************************************\nchanged: [test0sensor0api1]\n\nTASK [polygon : update tds_registry] *******************************************\nok: [test0sensor0api1]\n\nTASK [polygon : install mysql] *************************************************\nok: [test0sensor0api1] => (item=[u'mysql-client', u'mysql-common', u'mysql-server'])\n\nTASK [polygon : update config] *************************************************\nchanged: [test0sensor0api1]\n\nTASK [polygon : unmonitor mysql] ***********************************************\nfatal: [test0sensor0api1]: FAILED! => {\"changed\": true, \"cmd\": [\"monit\", \"unmonitor\", \"mysql\"], \"delta\": \"0:00:00.019659\", \"end\": \"2018-07-18 19:11:29.681013\", \"failed\": true, \"rc\": 1, \"start\": \"2018-07-18 19:11:29.661354\", \"stderr\": \"There is no service named \\\"mysql\\\"\", \"stdout\": \"\", \"stdout_lines\": [], \"warnings\": []}\n\tto retry, use: --limit @/var/lib/ansible/local/play.retry\n\nPLAY RECAP *********************************************************************\ntest0sensor0api1 : ok=16 changed=3 unreachable=0 failed=1 \n\n",
  10. "status": "nok"
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement