slapos.toolbox:4b92775ca06ac2ee9f2273b8ba8f41fcbc425516 commitshttps://lab.nexedi.com/rafael/slapos.toolbox/-/commits/4b92775ca06ac2ee9f2273b8ba8f41fcbc4255162019-12-31T11:07:10+01:00https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/4b92775ca06ac2ee9f2273b8ba8f41fcbc425516promise: Improve check_surykatka_json2019-12-31T11:07:10+01:00Łukasz Nowakluke@nexedi.com
Improvements:
* support for ssl_certificate entry from surykatka
* explanation of extended status codes
* assurance that URLs are clickable in the monitor.app
* format times for humans
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/73" data-original="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/73" data-link="false" data-link-reference="true" data-project="78" data-merge-request="3516" data-project-path="nexedi/slapos.toolbox" data-iid="73" data-mr-title="Feature/promise surykatka json certificate" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos.toolbox!73</a>https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/83f161ae9ce07aee7187905c6106c077ccae6cc8promise: Test more corner cases of check_surykatka_json2019-12-31T10:48:21+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/121b28c4525848e9832b8d56d49e0d5b45617b4epromise: Explain some status codes in check_surykatka_json2019-12-31T10:48:20+01:00Łukasz Nowakluke@nexedi.com
"Extended" status codes, like 524, 526 and others, come from surykatka
itself and shall be amended with additional explanationhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/8b3d35106506915162ea2759705158ab7cbb7cc6promise: Provide clickable urls in check_surykatka_json2019-12-31T10:48:18+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/213b3beb777b08bb4b0d7d518c7639848a9842f6promise: Format times in check_surykatka_json2019-12-31T10:48:17+01:00Łukasz Nowakluke@nexedi.com
Since standard date format is used in the ssl_certificate checks, do the
same for readability and consistency in bot_status.https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/ec3ac84c4162ec1771944deb6bb44c6eda080522promise: Support ssl_certificate in check_surykatka_json2019-12-31T10:48:16+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/e82f122cbdbbed5bdf433713ac697caba0d2519apromise: Cleanup check_surykatka_json2019-12-31T10:48:00+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/ded34b9c424848ed4e8b10525df4b6d41fec3e9ctypo2019-12-30T15:30:54+01:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/1eff2966c33af8401bba454e5e3da8877f1cd015Release 0.1012019-12-12T12:48:42+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/cfa06942a3139f4f169402b6705b9c0973800c15Feature/promise check surykatka json2019-12-12T12:46:46+01:00Łukasz Nowakluke@nexedi.com
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/72" data-original="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/72" data-link="false" data-link-reference="true" data-project="78" data-merge-request="3474" data-project-path="nexedi/slapos.toolbox" data-iid="72" data-mr-title="Feature/promise check surykatka json" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos.toolbox!72</a>https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/7ae224cb59a75aab1f732d13c022af28d6c1bd05monitor: the monitor.global.json is under /public directory not /share/public2019-12-11T19:30:22+01:00Thomas Gambierthomas.gambier@gmail.com
in <a href="https://lab.nexedi.com/nexedi/slapos/blob/master/stack/monitor/templates/monitor-httpd.conf.in">https://lab.nexedi.com/nexedi/slapos/blob/master/stack/monitor/templates/monitor-httpd.conf.in</a> there is no such thing as `/share/public/` URL
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/71" data-original="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/71" data-link="false" data-link-reference="true" data-project="78" data-merge-request="3472" data-project-path="nexedi/slapos.toolbox" data-iid="71" data-mr-title="monitor: the monitor.global.json is under /public directory not /share/public" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos.toolbox!71</a>https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/71d30c3c0f91c988cfcc91c7d4c6a4d428a94136Release 0.1002019-12-10T11:34:58+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/5a99329effb51a97c441b475d8a161009df0e62amonitor: Remove bootstrap file on failure only2019-12-09T18:08:05+01:00Łukasz Nowakluke@nexedi.com
As bootstrapMonitor is run many times and each execution takes taime it's
better to have the status file there during monitor is running, especially if
previous runs were good.
This file is used by other tools to check last state of bootstrap monitor, and
if it disappears for execution of monitor it can result with false alarms.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/70" data-original="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/70" data-link="false" data-link-reference="true" data-project="78" data-merge-request="3464" data-project-path="nexedi/slapos.toolbox" data-iid="70" data-mr-title="monitor: Remove bootstrap file on failure only" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos.toolbox!70</a>https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/5be809aac122156abd0de727c35407aafa8b870eRelease 0.992019-12-05T13:30:44+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/5952f6b8747339e06ccd252f478983c188d05c0amonitor: Work without legacy-promise-folder2019-12-05T13:13:29+01:00Łukasz Nowakluke@nexedi.com
Since etc/promise was migrated to etc/plugin a lot of installations are
without etc/promise folder, and monitor configuration is without
legacy-promise-folder option.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/69" data-original="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/69" data-link="false" data-link-reference="true" data-project="78" data-merge-request="3453" data-project-path="nexedi/slapos.toolbox" data-iid="69" data-mr-title="monitor: Work without legacy-promise-folder" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos.toolbox!69</a>https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/bd5062b485fe162d60a0f29bd09f563f4fa9fc2epromise/monitor_bootstrap: Consider not run bootstrap as failure2019-12-05T13:07:54+01:00Łukasz Nowakluke@nexedi.com
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/68" data-original="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/68" data-link="false" data-link-reference="true" data-project="78" data-merge-request="3452" data-project-path="nexedi/slapos.toolbox" data-iid="68" data-mr-title="promise/monitor_bootstrap: Consider not run bootstrap as failure" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos.toolbox!68</a>https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/05582c0a769903ceedf5fd7f6e39f8a095dcecfcRelease 0.982019-12-02T16:59:45+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/a0aa8b3576dd85484412d48454cd9f6515a213e6fix "promise: Support threshold-days in check_free_disk_space"2019-12-02T12:50:26+01:00Łukasz Nowakluke@nexedi.com
There was mistake, as result_max[0] is already free disk space, so there
was no need to do 1. - result_max[0]. Unfortunately tests were also
incorrectly adjusted.https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/7df6541fc98ab457539ae1b957c52a600bde949bRelease 0.972019-11-14T23:39:19+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/5a61f5758f46ebd3eeae03b0c5b4759f1bba7bd8resiliencytestsuite: do not test promises before being sure instance is rebui...2019-11-13T08:11:27+01:00Nicolas Wavrantnicolas.wavrant@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/bf93aa5f5123d695f0e40f801e3c2659de590db7resiliencytestsuite: update assertion to not takeover if import is currently ...2019-11-13T08:01:10+01:00Nicolas Wavrantnicolas.wavrant@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/7046b8c53b90ce137b6fdfe1fb4db9fe61a97b00resiliencytest: webrunner needs at least 5 runs to be completely instanciated2019-11-12T09:53:29+01:00Nicolas Wavrantnicolas.wavrant@nexedi.com
It probably means there is a regression somewhere and we should try to improve
the situation, as it slows down deploymentshttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/bf500dff7c4614e85fe7b5f0af811c8522abe65fequeue: use BytesIO instead of StringiO as buffer2019-11-08T10:25:36+01:00Nicolas Wavrantnicolas.wavrant@nexedi.com
as StringIO only accepts unicode, but socket.recv() returns a stringhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/099295af07e697a33fbcf10ff8291a7ff1f9ca89promise: Add more information on error2019-10-28T09:17:27+01:00Łukasz Nowakluke@nexedi.com
In case of error the drop of free space percentage is shown.https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/87b96e1b28036750a7e083a1c30987299d1d2e37promise: Support threshold-days in check_free_disk_space2019-10-28T09:09:44+01:00Łukasz Nowakluke@nexedi.com
The most important information is if the disk won't become full in some time,
by default 30 days. This check uses collector db history to calculate speed
of filling the disk and predicts when it will become full.https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/ba523080178876e24cdc9b4bacbbef395c198bdepromise: Support simple threshold in check_free_disk_space2019-10-28T09:09:44+01:00Łukasz Nowakluke@nexedi.com
Instead of outdated approach with threshold-file just support threshold,
provided in float in GB, defaulting to 5% of disk size if found in the
database and fallback to 2.0 GB, to raise promise error.https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/42bd8c1a4a1a37d486924439e4d07e59887d5ab1Release 0.962019-09-27T15:02:00+02:00Lukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/5f46db69021cbf4cc422b59dfb03a01910a75606promise/plugin: Use check_output instead of hand crafting2019-09-12T09:23:35+02:00Lukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/b1bc391849eeb6a3828ee647c1a14e51fd37b2afpromise/plugin: Check stderr from executed commands2019-09-12T09:11:02+02:00Lukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/cc1d5d16b11f3151d56dc9ad1453e8fadccf52c1promise/plugin: Allow to configure anomaly in check_command_execute2019-09-11T14:44:48+02:00Lukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/fcc8ff8383e29e7a09d18093fc4feabf97581d23promise/plugin: Implement check_command_execute promise plugin2019-09-11T14:44:48+02:00Lukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/61f54af9df77a808c06d3aeddc76eb1c840d0156fixup! qa: fix a py3 bug in TestCheckNeoHealth2019-09-11T13:52:35+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/5bc66df855886c4f97d6617256967e0047252c0bresiliencytest: trivial code fix2019-09-11T04:47:49+02:00Nicolas Wavrantnicolas.wavrant@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/a411a3c0848893e78f3de8aaf3fd4640fb5a52c8qa: fix a py3 bug in TestCheckNeoHealth2019-09-10T15:29:30+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/4296270b5684d857ad9d76e798e406e8fde2d888Release 0.952019-09-09T14:55:07+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/276bce33205d33460987fa8847478b41616143cdClean up changelog2019-09-09T14:47:31+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/2d69e8fb2b95df8b4ecbed1b6557334de1f360d4promise: add check_neo_health for ERP5/NEO SR2019-09-04T19:59:47+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/rafael/slapos.toolbox/-/commit/76c05ae8b0fb9365311c73a2050ee9470027e2e3runner: force instantiation of partitions on manual action2019-09-02T16:28:50+02:00Julien Muchembledjm@nexedi.com
With <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/125" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/125" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3163" data-project-path="nexedi/slapos.core" data-iid="125" data-mr-title="slapproxy: optimization and promise anomaly/bang support" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">slapos.core!125</a>,
this is not the case anymore by default.
This commit does not nothing when using older slapproxy.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/62" data-original="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/62" data-link="false" data-link-reference="true" data-project="78" data-merge-request="3166" data-project-path="nexedi/slapos.toolbox" data-iid="62" data-mr-title="runner: force instantiation of partitions on manual action" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!62</a>https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/b5cc2beedd08ff067965734ff97fb3536aeefe4ffixup! Add support for Python 32019-08-12T17:26:32+02:00Bryton Lacquementbryton.lacquement@nexedi.com
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/63" data-original="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/63" data-link="false" data-link-reference="true" data-project="78" data-merge-request="3178" data-project-path="nexedi/slapos.toolbox" data-iid="63" data-mr-title="fixup! Add support for Python 3" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos.toolbox!63</a>https://lab.nexedi.com/rafael/slapos.toolbox/-/commit/789d2d56cc5528413e2fa089f261ecba5d5b1179qa: minor code clean-up2019-08-02T19:11:38+02:00Julien Muchembledjm@nexedi.com