- 21 Nov, 2024 2 commits
-
-
Xavier Thompson authored
Remove use-hash-url option, and add root-path option. If given, it must be a subpath of base-path and the server will only grant access to paths that are subpaths of root-path. This allow to reproduce the functionality of use-hash-url by setting root-path as a hash subpath of base-path.
-
Xavier Thompson authored
-
- 14 Nov, 2024 1 commit
-
-
Xavier Thompson authored
-
- 13 Nov, 2024 3 commits
-
-
Jérome Perrin authored
e7369525 (stack/erp5: make haproxy reload script wait for old worker processes, 2024-11-10) was an old version of the patch pushed accidentally, this fixes the broken syntax
-
Kazuhiko Shiozaki authored
See merge request nexedi/slapos!1603
-
Jérome Perrin authored
This is mostly to fix some flaky tests, because with the previous approach of just sending a signal for haproxy to reload the config asynchronously we don't know when haproxy has reloaded.
-
- 12 Nov, 2024 2 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
- update zope to 5.11.1 - update zodbtools to current master ( `0.0.0.dev9-21-gb0fdb5f` ) See merge request nexedi/slapos!1670
-
- 11 Nov, 2024 7 commits
-
-
Jérome Perrin authored
Prevents error like this in the log for ZODB with a tmep_folder 2024-10-04 14:14:53,288 ERROR Zope.ZODBMountPoint Failed to mount database. <type 'exceptions.ImportError'> (No module named TemporaryFolder) Traceback (most recent call last): File "./eggs/Products.ZODBMountPoint-1.3-py2.7.egg/Products/ZODBMountPoint/MountedObject.py", line 255, in _getOrOpenObject obj = self._traverseToMountedRoot(root, parent) File "./eggs/Products.ZODBMountPoint-1.3-py2.7.egg/Products/ZODBMountPoint/MountedObject.py", line 213, in _traverseToMountedRoot obj = blazer.traverseOrConstruct(real_path) File "./eggs/Products.ZODBMountPoint-1.3-py2.7.egg/Products/ZODBMountPoint/MountedObject.py", line 81, in traverseOrConstruct container = self._construct(container, part) File "./eggs/Products.ZODBMountPoint-1.3-py2.7.egg/Products/ZODBMountPoint/MountedObject.py", line 108, in _construct klass = jar.db().classFactory(jar, self.module_name, self.class_name) File "./eggs/Zope-4.8.7-py2.7.egg/Zope2/Startup/datatypes.py", line 288, in simpleClassFactory m = __import__(module, _globals, _globals, _silly) ImportError: No module named TemporaryFolder
-
Jérome Perrin authored
This ease the development and version updates
-
Jérome Perrin authored
This is not needed because we are using a closing context manager
-
Jérome Perrin authored
-
Kirill Smelkov authored
pygolang: Accompany python-interpreter with gpython-interpreter to run gpython instead of std python With python-interpreter staying the default for pyprog, but possible to adjust. We will need gpython-interpreter for ERP5 to use bstr+ustr as builting string types. Remove [gpython] script in favour of gpython-interpreter since both provide the same thing but via slightly different ways internally ([gpython] was generating bin/gpython via setuptools and [gpython-interpreter] does it by hand with user-visible result staying the same). /cc @kazuhiko, @jerome
-
Kirill Smelkov authored
pyprog macro, added in 0ee52376 (Generalize how nxdtest python script is generated into pyprog recipe macro) works by generating buildout code at runtime in text form. This way it should be careful when substituting strings, because if those strings contain \n, then intended control flow might become broken. For example when using pyprog with eggs = ${eggs:eggs} from stack/erp5/ , buildout breaks because erp5 defines eggs as multiline list: INFO self.buildout.parse(""" INFO File "/srv/slapgrid/slappart47/srv/runner/software/7f1663e8148f227ce3c6a38fc52796e2/eggs/zc.buildout-2.7.1+slapos020-py3.9.egg/zc/buildout/buildout.py", line 1352, in parse INFO sections = zc.buildout.configparser.parse( INFO File "/srv/slapgrid/slappart47/srv/runner/software/7f1663e8148f227ce3c6a38fc52796e2/eggs/zc.buildout-2.7.1+slapos020-py3.9.egg/zc/buildout/configparser.py", line 241, in parse INFO raise e INFO zc.buildout.configparser.ParsingError: File contains parsing errors: INFO [line 18]: 'python-barcode\n' INFO [line 19]: 'SOAPpy-py3\n' INFO [line 20]: 'suds-py3\n' INFO [line 21]: 'neoppod[admin, ctl, master]\n' INFO [line 22]: 'cython-zstd\n' INFO [line 23]: 'msgpack\n' INFO [line 24]: 'mysqlclient\n' INFO [line 25]: 'PyMySQL\n' INFO [line 26]: 'ZODB\n' INFO [line 27]: 'zodbtools\n' INFO [line 28]: 'psutil\n' ... -> Fix it via indenting eggs list like we already do with pyinit code. /cc @kazuhiko, @jerome
-
Jérome Perrin authored
This have been a regression when upgrading to v0.40.0
-
- 10 Nov, 2024 4 commits
-
-
Jérome Perrin authored
We can not use the new theia parameter from 4bb65573 (software/theia: new testing-short-embedded-instance-path parameter for tests, 2024-11-04), because ERP5 Software release still uses some slapos.toolbox utility hardcoding srv/runner/instance/slappart\d https://lab.nexedi.com/nexedi/slapos.toolbox/-/blob/8fc29341d366f17544a56d7f6c8bd3716055a128/slapos/resilient/identity_script_excluding_path.py#L25 Instead, just keep using normal long paths, because they were not too long for ERP5 in theia in testnode
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
These queries are too slow.
-
- 08 Nov, 2024 11 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
See merge request nexedi/slapos!1677
-
Jérome Perrin authored
Create embedded instance with shorter paths, for resilience project tests. This is especially needed for gitlab, which uses a lot of sockets and a directory layout that's too deep for the default layout of theia's embedded instances.
-
Jérome Perrin authored
and small import cleanups
-
Jérome Perrin authored
-
Jérome Perrin authored
since a1bfe616 (software/gitlab: upgrade to version 12.10.14, 2024-01-09) we no longer manually install ajv
-
Jérome Perrin authored
-
Jérome Perrin authored
Instead of using a list of frontends IP addresses to determine if the backend can trust the frontend's `X-Forwarded-For` header, use the same [`authenticate-to-backend`](https://lab.nexedi.com/nexedi/slapos/-/blob/d48d682dfc67d7845f0346f01772573c9e4edc8e/software/rapid-cdn/instance-slave-input-schema.json#L215-223) approach as with ERP5: the frontend connects to the backend with a client certificate and if the backend can verify this certificate, it trusts `X-Forwarded-For` from the frontend and uses this as client IP. Otherwise, without a verified certificate, the frontend's own IP address is uses as client IP. This means that: - frontend shared instances must use `authenticate-to-backend` in parameters - gitlab instance must use `frontend-caucase-url-list` in parameters - gitlab instance no longer use `nginx_real_ip_trusted_addresses` in parameters This branch also contains some mitigation for 503 errors we observed when too many clients were downloading archives (we had several hundreds of ongoing requests preparing archives), the approach is simply to rate-limit the download archives, implemented in nginx because gitlab does not expose rack-attack configuration for this. See merge request nexedi/slapos!1676
-
Jérome Perrin authored
nginx is not really flexible for this, but since gitlab does not make download of archive configurable, this adds a rate limit of 1 request per minute per source IP for archive downloads.
-
Jérome Perrin authored
Introduces a new instance parameter, frontend-caucase-url-list which is a space separated list of IP addresses (this software still uses xml serialisation and does not have a parameter schema yet).
-
Jérome Perrin authored
-
- 07 Nov, 2024 4 commits
-
-
Łukasz Nowak authored
-
Łukasz Nowak authored
In 38f5053c the image has been added without MD5SUM, and it was not stopped during merging nexedi/slapos!1655 Fix by adding the missing MD5SUM.
-
Jérome Perrin authored
Because re6stnet now uses hatchling, it needs some packages installed for develop step. ref: nexedi/re6stnet@88a883db
-
Jérome Perrin authored
-
- 06 Nov, 2024 2 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
- 05 Nov, 2024 1 commit
-
-
Jérome Perrin authored
-
- 04 Nov, 2024 3 commits
-
-
Paul Graydon authored
See merge request nexedi/slapos!1668
-
Paul Graydon authored
See merge request nexedi/slapos!1668
-
Paul Graydon authored
See merge request nexedi/slapos!1668
-