slapos.toolbox:master commitshttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commits/master2020-08-25T09:56:27+09:00https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/f4b906ae97b70b808c9d1426552a6e2f006a0350Release 0.1102020-08-25T09:56:27+09:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/21f8bc4c3530ae93308e43c9b357c9ed25ca98a3Fix slow query promise2020-08-25T02:50:38+02:00Jérome Perrinjerome@nexedi.com
- from now on we want the reports as .xz
- fix type argument parsing which should make the promise effective now
See merge request <a href="/nexedi/slapos.toolbox/-/merge_requests/83" data-original="nexedi/slapos.toolbox!83" data-link="false" data-link-reference="false" data-project="78" data-merge-request="4153" data-project-path="nexedi/slapos.toolbox" data-iid="83" data-mr-title="Fix slow query promise" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!83</a>https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/28453d17339148ee30393f4d77edd0f8ef1e127ctest_check_slow_queries_digest_result: fix filename2020-08-24T04:08:14+02:00Jérome Perrinjerome@nexedi.com
this was not html.
Also use os.path.join to manipulate pathshttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/80d5d1b626532f767165a68b39707d557e2a640fcheck_slow_queries_digest_result: threshold are floats2020-08-21T09:27:21+02:00Jérome Perrinjerome@nexedi.com
this program was comparing floats parsed from the report text and strings from
arguments passed on the command line, so basically it was not doing what was
intended.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/d35cf4fc9b046186d946c6cf330c97278e116e7fcheck_slow_queries_digest_result: expect xz compressed pt-query-digest reports2020-08-21T09:27:21+02:00Jérome Perrinjerome@nexedi.com
because pt-query-digest are text files that can be large, we should except that
the users have compressed them.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/95c3dc61263b871db5b8d047163f3e3b6e4a0d87setup.py: add [test] extra2020-08-21T06:11:04+02:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/e6a80ee200695ddc540521e8af61094fef3902f3Fix/promise check disk drop until full2020-06-03T15:12:35+02:00Łukasz Nowakluke@nexedi.com
See merge request <a href="/nexedi/slapos.toolbox/-/merge_requests/79" data-original="nexedi/slapos.toolbox!79" data-link="false" data-link-reference="false" data-project="78" data-merge-request="3726" data-project-path="nexedi/slapos.toolbox" data-iid="79" data-mr-title="Fix/promise check disk drop until full" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!79</a>https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/587e5657f10b3f94f849cb6b9cae1086f5020f2cRevert "promise: Support threshold-days in check_free_disk_space"2020-06-03T12:22:36+02:00Łukasz Nowakluke@nexedi.com
This reverts commit <a href="/nexedi/slapos.toolbox/-/commit/87b96e1b28036750a7e083a1c30987299d1d2e37" data-original="87b96e1b28036750a7e083a1c30987299d1d2e37" data-link="false" data-link-reference="false" data-project="78" data-commit="87b96e1b28036750a7e083a1c30987299d1d2e37" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="promise: Support threshold-days in check_free_disk_space" class="gfm gfm-commit has-tooltip">87b96e1b</a>.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/e5c8273632be2d5569fe49a59362e8ee96a83e5bRevert "promise: Add more information on error"2020-06-03T12:22:36+02:00Łukasz Nowakluke@nexedi.com
This reverts commit <a href="/nexedi/slapos.toolbox/-/commit/099295af07e697a33fbcf10ff8291a7ff1f9ca89" data-original="099295af07e697a33fbcf10ff8291a7ff1f9ca89" data-link="false" data-link-reference="false" data-project="78" data-commit="099295af07e697a33fbcf10ff8291a7ff1f9ca89" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="promise: Add more information on error" class="gfm gfm-commit has-tooltip">099295af</a>.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/10c2f1cf91db79a1156393a1d7481d4f97d00045Revert "fix "promise: Support threshold-days in check_free_disk_space""2020-06-03T12:22:36+02:00Łukasz Nowakluke@nexedi.com
This reverts commit <a href="/nexedi/slapos.toolbox/-/commit/a0aa8b3576dd85484412d48454cd9f6515a213e6" data-original="a0aa8b3576dd85484412d48454cd9f6515a213e6" data-link="false" data-link-reference="false" data-project="78" data-commit="a0aa8b3576dd85484412d48454cd9f6515a213e6" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title='fix "promise: Support threshold-days in check_free_disk_space"' class="gfm gfm-commit has-tooltip">a0aa8b35</a>.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/a61da4138bf15de1fd6d51bb561be7898657dcbctest_equeue: do not read arbitrary length from socket2020-05-15T11:54:55+09:00Nicolas Wavrantnicolas.wavrant@nexedi.com
but read only as much as we expect to receive. It should make tests more
stablehttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/61f7e71cb8c8c1139f3f4131148735bce4d517b3test_equeue: correctly encode/decode when using socket2020-05-15T11:49:46+09:00Nicolas Wavrantnicolas.wavrant@nexedi.com
As python3 only accept binary types for socketshttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/4035fe5c256e12663a59fdfd16f655d11fc1095atest_equeue: improve test code2020-05-15T11:49:08+09:00Nicolas Wavrantnicolas.wavrant@nexedi.com
Keep log file for debugging and use cleanup function to be sure
to correctly stop serviceshttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/0c69fca23f3d5b221d322a6503ab5a9c3ef04cf3equeue: socket can only manipulate binary types2020-05-15T11:47:40+09:00Nicolas Wavrantnicolas.wavrant@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/34e2cf1327919316bdf7ffd622707abf83e87cb0equeue: log traceback in case of swallowed error2020-05-14T20:29:55-05:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/7f4072b6ed8c9f8a45966822b860a9b379694ac5equeue: do not create lists for options expecting a single value2020-05-04T11:16:51+09:00Nicolas Wavrantnicolas.wavrant@nexedi.com
to simplify the codehttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/a57c27c9b3fd1601d9018b4bf72bf0d2c5bf37d0test: new test suite for Equeue2020-05-04T03:55:20+02:00Nicolas Wavrantnicolas.wavrant@nexedi.com
See merge request <a href="/nexedi/slapos.toolbox/-/merge_requests/81" data-original="!81" data-link="false" data-link-reference="false" data-project="78" data-merge-request="3840" data-project-path="nexedi/slapos.toolbox" data-iid="81" data-mr-title="test: new test suite for Equeue" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!81</a>https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/e69be346fe8e2061a869e8d6241305df897dbf0btest: new test suite for Equeue2020-05-04T10:54:14+09:00Nicolas Wavrantnicolas.wavrant@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/cd66c842ace593efba963033d33544ca5740ed83runner: Invoke slapos node format instead re-implement the same thing2020-04-30T21:52:04+02:00Rafael Monneratrafael@nexedi.com
this should be used on testcase in future too, to always bootstrap with the same code-base.
This depends this be released first: <a href="https://lab.nexedi.com/nexedi/slapos/merge_requests/747" data-original="https://lab.nexedi.com/nexedi/slapos/merge_requests/747" data-link="false" data-link-reference="true" data-project="15" data-merge-request="3831" data-project-path="nexedi/slapos" data-iid="747" data-mr-title="Remove git server and add slapos format to work on webrunner" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos!747</a>
/cc <a href="/jerome" data-user="9" data-reference-type="user" data-container="body" data-placement="top" data-html="true" class="gfm gfm-project_member" title="Jérome Perrin">@jerome</a> <a href="/Nicolas" data-user="34" data-reference-type="user" data-container="body" data-placement="top" data-html="true" class="gfm gfm-project_member" title="Nicolas Wavrant">@Nicolas</a>
See merge request !80https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/716109c1cbea230cefcefa66bcab5af47cceae04runner: Invoke slapos node format instead re-implement the same thing2020-04-30T03:31:36+02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/ecf144ee4267ece11a6772be309f679d3fd04feerunner: Fix symlinks on softwareLink2020-04-16T20:14:18+02:00Rafael Monneratrafael@nexedi.com
The generation of the link and the verification were inconsistent, this commit
normalize both.
PS.: Software Links are deprecated, it should be removed in future, as it lost
the goalshttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/6cba6d950b04e82341a3b11e8619c7ae431211eaRelease 0.1092020-03-12T12:49:44+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/5196a71e91c5d68c82489847d6e20365bcb266f4promise: Fix expired certificate reporting in check_surykatka_json2020-03-12T12:45:42+01:00Łukasz Nowakluke@nexedi.com
While adding the support in "promise: Support ssl_certificate in
check_surykatka_json" coverage for error reporting was missing, which has been
extended in this fix.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/667ae5d6b090fcc601430f40e8a9649e584a62b3Release 0.1082020-03-02T17:38:42+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/440cc7414b4df58bd0703a1adaae783d95e073d3promise: Implement check_certificate2020-03-02T17:36:52+01:00Łukasz Nowakluke@nexedi.com
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/78" data-original="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/78" data-link="false" data-link-reference="true" data-project="78" data-merge-request="3691" data-project-path="nexedi/slapos.toolbox" data-iid="78" data-mr-title="promise: Implement check_certificate" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos.toolbox!78</a>https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/e24a1a4f6225ce8a4a5d0339e9c49ccf028e230bRelease 0.1072020-02-28T12:26:40+01:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/8d620cae1c9c7fd19012c234a12cedd07dae9b13fixup! Add support for Python 32020-02-20T16:45:59+00:00Bryton Lacquementbryton.lacquement@nexedi.com
This is another fixup for commit
<a href="/nexedi/slapos.toolbox/-/commit/1c8269b2b12414846dab010abbc289a99f1faf1d" data-original="1c8269b2b12414846dab010abbc289a99f1faf1d" data-link="false" data-link-reference="false" data-project="78" data-commit="1c8269b2b12414846dab010abbc289a99f1faf1d" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="Add support for Python 3" class="gfm gfm-commit has-tooltip">1c8269b2</a>.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/d634f7003a63889652b5e2b8425a23b1e3898c90Release 0.1062020-02-14T10:37:07+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/f280dfdda73c2d60a1b0a17f6ed7557f3e2b4790promise: Drop UTC-now from surykatka output2020-02-14T10:22:31+01:00Łukasz Nowakluke@nexedi.com
This will lead to minimise amount of entries, and they will be only shown
when the status would change.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/f09df509c0ce253e78845955bb3f55c02150746dRelease 0.1052020-02-12T15:06:53+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/2cecd07203d548d7135f02f5bf1837c922308ec4Feature/promise surykatka improvements2020-02-12T15:03:19+01:00Łukasz Nowakluke@nexedi.com
Improvements:
* total_seconds from surykatka is parsed
* failure-amount is configurable
* various smaller bugfixes
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/77" data-original="https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/77" data-link="false" data-link-reference="true" data-project="78" data-merge-request="3637" data-project-path="nexedi/slapos.toolbox" data-iid="77" data-mr-title="Feature/promise surykatka improvements" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos.toolbox!77</a>https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/0d91448e2671b5e857d5516e7da37b4fe020deccpromise: Improve bot status problem reporting in check_surykatka_json2020-02-12T14:48:16+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/b25e3e3a45d345f8a3a45fd5db8827f9f70e7682promise: check_surykatka_json is testless2020-02-12T14:48:12+01:00Łukasz Nowakluke@nexedi.com
Result of the promise is not important for instantiation.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/6a8f40020e9d474f726606015011a0e85425d3eepromise: Treat one failure as bad state by default2020-02-12T14:48:08+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/2d1bb89d6cbb4cfd6eb074f0aacda9b89fdf5bc1promise: Allow to configure failure-amount in check_surykatka_json2020-02-12T14:48:04+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/b23411a9da55f7f4d299d36135071a623bf17947promise: Support sites without certificate in check_surykatka_json2020-02-12T14:47:54+01:00Łukasz Nowakluke@nexedi.com
Sites with bad certificates are reported with null values in surykatka
output, thus they have to be handled correctly.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/4acb179f4ac269225ec765c35aee0df8afee7c59promise: Treat elapsed_time = 0 specially in check_surykatka_json2020-02-12T14:47:51+01:00Łukasz Nowakluke@nexedi.com
It means that the server didn't reply at all.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/9974ad80aa1c5d6c8111f41a0702ce6989c4780dpromise: Simplify check_surykatka_json messages2020-02-12T14:47:48+01:00Łukasz Nowakluke@nexedi.com
Show URL only once and having this in mind simplify messages still keeping
all information.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/6298e5827ed66351f78fa4fae070a1ce62065533promise: Implement total_seconds in check_surykatka_json2020-02-12T14:47:42+01:00Łukasz Nowakluke@nexedi.com
It is only checked when maximum-elapsed-time is passed and surykatka is
recent enough to report total_seconds.
Also improve reporting even more to provide readable information for those
massive promises with ERROR/OK mixed states.https://lab.nexedi.com/kazuhiko/slapos.toolbox/-/commit/24b0d9266bd6acb80169f2a3427bc91336d942edpromise: Improve reporting in check_surykatka_json2020-02-12T14:47:38+01:00Łukasz Nowakluke@nexedi.com
Prefix with ERROR and OK messages for problems and ok checks, as they are
grouped together in the output.