- 28 Dec, 2021 8 commits
-
-
Jérome Perrin authored
these are dependencies of postfix
-
Jérome Perrin authored
- access log - log rotation - username is logged (expected failure in WSGI) - event log - log rotation - long requests log (expected failure in WSGI) - log rotation - activity processing - deadlock debugger
-
Jérome Perrin authored
so that we can use them in setUpClass
-
Jérome Perrin authored
Since ERP5 commit d4eda7ea (CMFActivity: show InnoDB history list length in console watcher, 2020-09-15), the wrapper script no longer work because accessing history list length require PROCESS privileges. In the case of ERP5, mariadb database is dedicated for ERP5, so we can grant the PROCESS privilege also to erp5 default user, which is used in the wrapper script. We don't grant the permission to test users because they don't need it.
-
Jérome Perrin authored
also access urllib3 from its real location
-
Jérome Perrin authored
sort import and don't use map & range from six, they are used in a way that leads to same results in python 2 or 3
-
Thomas Gambier authored
-
Thomas Gambier authored
See merge request nexedi/slapos!1092
-
- 27 Dec, 2021 10 commits
-
-
Alain Takoudjou authored
-
Alain Takoudjou authored
-
Alain Takoudjou authored
-
Alain Takoudjou authored
Communication between repman and mariadb can now use ssl for secure connection. Proxysql is also configured to work with ssl, user access database with secure connection.
-
Alain Takoudjou authored
-
Alain Takoudjou authored
-
Alain Takoudjou authored
-
Alain Takoudjou authored
Also solve when database initial user created with authentication plugin socket on master database doesn't exist on slave database mariadb because there are running diffrent slapuser. OPENED ERR00056 : Master user 'slapuser4'@'localhost' is not defined on replication candidate [2001:67c:1254:e:5:513b:0:5f35]:2199
-
Alain Takoudjou authored
To add a Database, user should request a slave instance. Each slave instance is a database. - Destroy slave database if slave instance was destroyed - Update and remove slave database only on master mariadb - Allow to create database slave with character sets and collate options - Generate slave database password if not set
-
Alain Takoudjou authored
-
- 24 Dec, 2021 8 commits
-
-
Julien Muchembled authored
-
Julien Muchembled authored
-
Julien Muchembled authored
The added zlib dependency is for the bundled prometheus-cpp, else: CMake Error at .../cmake-3.18/.../share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) Call Stack (most recent call first): .../cmake-3.18/.../share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE) .../cmake-3.18/.../share/cmake-3.18/Modules/FindZLIB.cmake:115 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) pull/CMakeLists.txt:9 (find_package)
-
Julien Muchembled authored
So far, it "worked" because Python 2 was found on the system. Not the case anymore in our Debian 11 test nodes.
-
Julien Muchembled authored
-
Julien Muchembled authored
-
Julien Muchembled authored
-
Julien Muchembled authored
-
- 23 Dec, 2021 5 commits
-
-
Kirill Smelkov authored
Preserve "disk" group to stay in /etc/group as explained in nexedi/nxdtest@6f75fa90 because slapos.core tests use this.
-
Thomas Gambier authored
See merge request nexedi/slapos!1107
-
Thomas Gambier authored
-
Łukasz Nowak authored
This reverts commit 86707a66.
-
Łukasz Nowak authored
This reverts commit fc7928fb.
-
- 22 Dec, 2021 6 commits
-
-
Xavier Thompson authored
Now that `slapos request` understands `json-in-xml` serialisation and automatically unwraps the instance connexion parameters when printing them, we need to adapt how the ERP5 test parses that output.
-
Łukasz Nowak authored
See merge request nexedi/slapos!1069
-
Łukasz Nowak authored
Keep old version for libxslt.
-
Łukasz Nowak authored
Keep old version for compatbility with kvm.
-
Łukasz Nowak authored
-
Vincent Pelletier authored
5s is the historical default tic periodicity, but 1s is typically used in production instances. 1s periodicity should improve validation node reactivity in all cases, and general activity reactivity in instances with few processing nodes (like development instances).
-
- 21 Dec, 2021 3 commits
-
-
Thomas Gambier authored
-
Jérome Perrin authored
Reading this spec, we probably want to change ``` entry_run = 'from %s import %s; %s()' % (mod, func, func) ``` to ``` entry_run = 'import sys; from %s import %s; sys.exit(%s())' % (mod, func, func) ``` to follow https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts , this is also what `zc.recipe.egg` does. /reviewed-by @kirr /reviewed-on nexedi/slapos!1108
-
Kirill Smelkov authored
In e328aa49 (component/nxdtest: Prepare for nexedi/nxdtest!13) I reworked how nxdtest script is generated and splitted it into nxdtest itself and .nxdtest.pyexe python interpreter, so that sys.executable could be used to correctly spawn other python scripts: 3) rework how nxdtest script is generated and split it into .nxdtest.pyexe and nxdtest itself. .nxdtest.pyexe is python interpreter via which nxdtest is run. This interpreter has all eggs required by nxdtest in sys.path, so that nxdtest could spawn its trun.py via sys.executable. If we don't care to have properly setup sys.executable, trun.py will fail when importing any module that nxdtest.py could already successfully import. Initially I tried to workaround this issue via adjusting $PYTHONPATH <- sys.path in main nxdtest script, but @jerome points out that, $PYTHONPATH, if set, also affects processes that trun.py spawns, which is not good: nexedi/slapos!1095 (comment 146799) -> so fix this via running nxdtest via environment where sys.executable is properly setup python interpreter with path for all eggs that nxdtest has access to. Because we already have half-way workarounds for similar problem in several places, and because running a script with correctly setup sys.executable is generally better, I would say it should be a good idea to rework zc.recipe.egg:scripts to generate all scripts to work this way, but I do not want to fight about it. So let's leave this scheme nxdtest-specific for now. This patch addresses the last paragraph and provides a general pyprog buildout macro that could be used to generate python script for any entry point to run with correctly set sys.executable. /reviewed-by @jerome /reviewed-on nexedi/slapos!1108
-