slapos.toolbox:b17843bcd7cb27587a143651fdd304523a8a4e70 commitshttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commits/b17843bcd7cb27587a143651fdd304523a8a4e702022-08-25T23:00:30+09:00https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/b17843bcd7cb27587a143651fdd304523a8a4e70resiliencytestsuite,kvm: more python3 fixes2022-08-25T23:00:30+09:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/ec47c8e381f7ee6e0e011b3e9903f83097b8d37aresiliencytestsuite: python3 fix2022-08-25T21:44:58+09:00Jérome Perrinjerome@nexedi.com
urlopen(url).read() returns bytes, this fixes:
File "slapos.toolbox-repository/slapos/resiliencytest/suites/resiliencytestsuite.py", line 162, in _waitForCloneToBeReadyForTakeover
while "<b>Importer script(s) of backup in progress:</b> True" in takeover_page_content:
TypeError: a bytes-like object is required, not 'str'
errors with KVM resilience testshttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/68eb1dbf0cb8f585adbb8dbdc571f53dfc6b5d48Release 0.1282022-06-30T12:09:24+02:00Thomas Gambierthomas.gambier@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/65155b4519e9b25dfc91bca3cc5d462920c6d57fslapos/pusub/notifier.py: Add support for Python 3.8+2022-06-30T10:03:26+02:00Thomas Leymoneriethomas.leymonerie@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/4be746d290cf3250b0bb408e4754cf25709829e8Release 0.1272022-06-05T17:09:53+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/0f13c98a88494d2d4b8318b7f9bc5b3b3e7c7ea4qemuqmpclient: support qemu 7+2022-06-05T16:52:27+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/7a7f8178cc5ec4e52b33a54d0fed3426fdece748test_check_url_available: adjust message for requests 2.27.02022-05-12T17:17:18+09:00Jérome Perrinjerome@nexedi.com
Improved error text for misnamed InvalidSchema and MissingSchema exceptions.
<a href="https://github.com/psf/requests/blob/v2.27.0/HISTORY.md#2270-2022-01-03" rel="nofollow noreferrer noopener" target="_blank">https://github.com/psf/requests/blob/v2.27.0/HISTORY.md#2270-2022-01-03</a>https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/ca3341d599c003a1a6b8c520cbdfec48ba509867Stabilizing fixup: test_monitor_instance_state2021-10-18T15:18:48+02:00Romain Courteaudromain@nexedi.com
See merge request <a href="/nexedi/slapos.toolbox/-/merge_requests/102" data-original="nexedi/slapos.toolbox!102" data-link="false" data-link-reference="false" data-project="78" data-merge-request="5169" data-project-path="nexedi/slapos.toolbox" data-iid="102" data-mr-title="Stabilizing fixup: test_monitor_instance_state" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!102</a>https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/7350d3180506a472fc4351cfb218f95f35b57084Stabilizing fixup: test_monitor_instance_state2021-10-18T02:32:30+02:00Boxiang Sunboxiang.sun@nexedi.com
The test doesn't care about the instance state, just wants an
arbitrary instance title.https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/a9f3cb5ff3f3160c6f8b0d7a1ef7d75daa9c5663Release 0.1262021-10-04T10:47:33+02:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/f66bc34bcf07f286d51293488894a26af1433b55promise/plugin: check_file_state shall fail fast2021-10-04T10:46:07+02:00Łukasz Nowakluke@nexedi.com
This promise relates to resources local on the partition, which are files, and
they shall be available fast, thus make it failing immediately in case of
failure.https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/d4d00856a6ca2b671bc4357184a2b63364af8e3cStabilizing fixup for SlapOS.Eggs.UnitTest2021-10-04T09:48:34+02:00Boxiang Sunboxiang.sun@nexedi.com
See merge request <a href="/nexedi/slapos.toolbox/-/merge_requests/100" data-original="nexedi/slapos.toolbox!100" data-link="false" data-link-reference="false" data-project="78" data-merge-request="5120" data-project-path="nexedi/slapos.toolbox" data-iid="100" data-mr-title="Stabilizing fixup for SlapOS.Eggs.UnitTest" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos.toolbox!100</a>https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/5d23278e231632e9e0a3b891e05a65c4b529405ctest_networkbench: Mock the return value of dns.resolve.query2021-09-30T16:17:50+02:00Boxiang Sunboxiang.sun@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/ce63406769b4f96f2d9efe030cde9ca65f14de68Release 0.1252021-09-30T15:08:16+02:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/e5c544edc95aa74409113095c34ad3aaf9f6b9cbpromise/plugin: Allow asserting absence in check_file_state2021-09-30T15:03:50+02:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/d0effe696d0026ffd6865ddc9eeea76811d4b92fFix "promise/plugin: Implement check_file_state promise plugin"2021-09-21T15:23:15+02:00Łukasz Nowakluke@nexedi.com
If there is no url parameter the promise fails, so simply switch to empty.https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/983b810f933dccc6884ce95b5245f2389d3c425cRelease 0.1242021-08-25T14:56:19+02:00Xavier Thompsonxavier.thompson@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/e734bd5995d2d68837f8da55c643509131940c9apubsub: Fix Python3 incompatibilities2021-08-24T16:56:41+02:00Xavier Thompsonxavier.thompson@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/95726826cdab4b2f022bff2d71696fbb68b3b217Release 0.1232021-07-23T18:17:53+02:00Thomas Gambierthomas.gambier@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/a0466ad7ec38350807e144f8bce1f29f75bb2d47plugin/check_url_available: rewrite options2021-07-23T18:10:25+02:00Eric Zhengeric.zheng@nexedi.com
The check_url_available promise has been improved with the following
changes:
- The `http_code` parameter has been renamed `http-code` for consistency.
- The `check-secure` parameter has been removed. Users should specify
`http-code = 401` instead.
- The `username` and `password` parameters have been added to optionally
enable HTTP basic authentication.
- The logging output has been changed slightly.https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/831b32a641d1a636120fde916925bbebd334922aRelease 0.1222021-06-29T17:30:21+02:00Xavier Thompsonxavier.thompson@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/c7062ceeee1983941dbce6511de22a01e8c89af7promise/plugin: Fix check_socket_listening promise2021-06-29T17:24:34+02:00Xavier Thompsonxavier.thompson@nexedi.com
Accept unicode value for `port` parameterhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/9c8b7a698c7529f04418ebade9a31e76511a849dRelease 0.1212021-06-24T15:03:09+02:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/3b2ca6a52283148707bb3c7853d8ebb5599d8ef3qemuqmpclient: Support qemu 5.x+2021-06-24T15:01:34+02:00Łukasz Nowakluke@nexedi.com
pc.ram key is used for the initial memory, and it can't be removed.https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/597ad67a40df72eeaa01d534d7193f483cfeb838Release 0.1202021-06-23T10:32:30+02:00Xavier Thompsonxavier.thompson@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/428870e358a0f7543f59e70ecf3cdb5ab7d12ae3promise/plugin: Add check_socket_listening promise2021-06-22T18:11:33+02:00Xavier Thompsonxavier.thompson@nexedi.com
This promise generalizes the check_port_listening promise to include
AF_UNIX sockets in addition to AF_INET and AF_INET6 host/port sockets.
The socket family and address is deduced from the set of arguments:
- `host` & `port`: AF_INET or AF_INET6
- `pathname`: filesystem pathname address for AF_UNIX
- `abstract`: '\0' is prefixed to build an abstract AF_UNIX address
All other combinations of arguments are forbidden.
The promise creates a socket accordingly and attempts to connect to the
provided address. The promise fails if the connection fails.
The check_port_listening promise has been removed.
See merge request <a href="/nexedi/slapos.toolbox/-/merge_requests/97" data-original="nexedi/slapos.toolbox!97" data-link="false" data-link-reference="false" data-project="78" data-merge-request="4880" data-project-path="nexedi/slapos.toolbox" data-iid="97" data-mr-title="promise/plugin: Add check_socket_listening promise" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/slapos.toolbox!97</a>https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/b0c5cb3f6258e3d90968a36823be350a133801c0Revert "monitor: delegate argument checking to argparse"2021-06-04T11:08:56+09:00Nicolas Wavrantnicolas.wavrant@nexedi.com
This reverts commit <a href="/nexedi/slapos.toolbox/-/commit/4a992aaaafec3f14627021626be98d55dd999ec1" data-original="4a992aaaafec3f14627021626be98d55dd999ec1" data-link="false" data-link-reference="false" data-project="78" data-commit="4a992aaaafec3f14627021626be98d55dd999ec1" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="monitor: delegate argument checking to argparse" class="gfm gfm-commit has-tooltip">4a992aaa</a>.
runpromise takes arguments from command line, but also read some from
a config file, so indeed it is mandatory to know partition_folder's
value, but it is not mandatory to pass it as an argument from the
command linehttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/a28fa444aa917b4267887f351305c168cd2c6732monitor: do not try to remove pid file if script is run without defining one2021-05-07T16:39:13+09:00Nicolas Wavrantnicolas.wavrant@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/4a992aaaafec3f14627021626be98d55dd999ec1monitor: delegate argument checking to argparse2021-05-07T16:35:14+09:00Nicolas Wavrantnicolas.wavrant@nexedi.com
So instead of a traceback we get a better error message
written by argparse. Also , it will print a better help
messagehttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/ea09102fa990538055f008f06e1349a860ac90e5Release 0.1192021-04-21T10:06:22+09:00Jérome Perrinperrinjerome@gmail.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/07a18130e99b81bda13ee7151573c421c95624c5slaprunner: fix popen on python32021-04-21T02:55:08+02:00Jérome Perrinjerome@nexedi.com
On python3 several views were not functional, because subprocess output was
retrieved as bytes, but manipulated as a string.
This adds a few tests for views, not complete because it would be too much time
consuming for now.https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/c284b91953a7533495e413bc6f6f9191e2f656d2Release 0.1182021-03-29T10:26:27+02:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/325f7993e8869653f6efb46c785596b039df39d3Feature/domain2ip2021-03-29T10:22:53+02:00Łukasz Nowakluke@nexedi.com
See merge request <a href="/nexedi/slapos.toolbox/-/merge_requests/94" data-original="nexedi/slapos.toolbox!94" data-link="false" data-link-reference="false" data-project="78" data-merge-request="4625" data-project-path="nexedi/slapos.toolbox" data-iid="94" data-mr-title="Feature/domain2ip" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!94</a>https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/44c18a7d999b27ac4d8c4e7b4da45a7572cab719dnsresolver: Introduce new tool2021-03-26T11:40:03+01:00Łukasz Nowakluke@nexedi.com
Simple and predictable tool to resolve massively domain names to IPs.https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/408aec2b7bdc0fb04a50919d28e7f0a50b156708test_check_service_state: fix a data race2021-02-04T14:45:38+01:00Xavier Thompsonxavier.thompson@nexedi.com
See merge request <a href="/nexedi/slapos.toolbox/-/merge_requests/93" data-original="nexedi/slapos.toolbox!93" data-link="false" data-link-reference="false" data-project="78" data-merge-request="4540" data-project-path="nexedi/slapos.toolbox" data-iid="93" data-mr-title="test_check_service_state: fix a data race" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!93</a>https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/6fb40ef9d273f2d63e9a6acd211018eb42c0730cRelease 0.1172021-02-03T19:15:43+09:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/5d5c98b95d628dd16db778f1e3b2f2da0f38cd16promise/plugin: Implement check_service_state promise plugin2021-02-03T10:58:49+01:00Xavier Thompsonxavier.thompson@nexedi.com
See merge request <a href="/nexedi/slapos.toolbox/-/merge_requests/90" data-original="nexedi/slapos.toolbox!90" data-link="false" data-link-reference="false" data-project="78" data-merge-request="4510" data-project-path="nexedi/slapos.toolbox" data-iid="90" data-mr-title="promise/plugin: Implement check_service_state promise plugin" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!90</a>https://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/1eeef169aa6a2bde9b1a83a91685c7e5063971d1test_networkbench: update after ip changed2021-02-02T01:55:12+01:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/72d01e706ae5f25b21b3035f6fe77b1da007608fRelease 0.1162021-02-01T10:29:48+09:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.toolbox/-/commit/dd5a118be161726565fe28da15fdb2976fb07e7erunner: import werkzeug.middleware.proxy_fix.ProxyFix from its new location2021-01-29T10:59:51+01:00Jérome Perrinjerome@nexedi.com
from
<a href="https://werkzeug.palletsprojects.com/en/0.14.x/contrib/fixers/#werkzeug.contrib.fixers.ProxyFix" rel="nofollow noreferrer noopener" target="_blank">https://werkzeug.palletsprojects.com/en/0.14.x/contrib/fixers/#werkzeug.contrib.fixers.ProxyFix</a>
to
<a href="https://werkzeug.palletsprojects.com/en/1.0.x/middleware/proxy_fix/#werkzeug.middleware.proxy_fix.ProxyFix" rel="nofollow noreferrer noopener" target="_blank">https://werkzeug.palletsprojects.com/en/1.0.x/middleware/proxy_fix/#werkzeug.middleware.proxy_fix.ProxyFix</a>
the behavior seems the same, default config in both cases is to trust one
level of proxy.