An error occurred fetching the project authors.
- 18 Sep, 2023 4 commits
-
-
Cédric Le Ninivin authored
-
Cédric Le Ninivin authored
-
Cédric Le Ninivin authored
-
Cédric Le Ninivin authored
-
- 21 Apr, 2023 4 commits
-
-
Xavier Thompson authored
Partitions no longer need to be restarted at boot since now slapgrid will start the services even if there is no connection to master. This reverts commit cada4581.
-
Xavier Thompson authored
-
Xavier Thompson authored
Supervisord files of stopped partitions (only those) should be removed, and those of started partitions should exist.
-
Xavier Thompson authored
Give each supervisor process group its own separate configuration file.
-
- 06 Feb, 2023 1 commit
-
-
Łukasz Nowak authored
It's very useful in some deployments to control maximum time of partition processing. This parmater can end up in slapos.cfg configuration file or command line.
-
- 26 Oct, 2022 1 commit
-
-
Thomas Gambier authored
Fixup of 89863d6c For links like this: $ ls -l /dev/disk/by-path/pci-0000:42:00.0-nvme-1 lrwxrwxrwx 1 root root 13 Oct 25 15:19 /dev/disk/by-path/pci-0000:42:00.0-nvme-1 -> ../../nvme7n1 os.readlink() returns "../../nvme7n1" while we want "/dev/nvme7n1".
-
- 06 Oct, 2022 1 commit
-
-
Alain Takoudjou authored
If computer partition requested state is `started`, slapos node boot will start partition services on reboot, event if the node is not able to connect to master or has no internet.
-
- 19 Jul, 2022 1 commit
-
-
Thomas Gambier authored
Traceback (most recent call last): File "/opt/slapos/eggs/slapos.core-1.7.10-py3.7.egg/slapos/grid/slapgrid.py", line 1435, in processComputerPartitionList self.processComputerPartition(computer_partition) File "/opt/slapos/eggs/slapos.core-1.7.10-py3.7.egg/slapos/grid/slapgrid.py", line 1329, in processComputerPartition raise e File "/opt/slapos/eggs/slapos.core-1.7.10-py3.7.egg/slapos/grid/slapgrid.py", line 1254, in processComputerPartition local_partition._updateCertificate() File "/opt/slapos/eggs/slapos.core-1.7.10-py3.7.egg/slapos/grid/SlapObject.py", line 513, in _updateCertificate fout.write(new_content) TypeError: a bytes-like object is required, not 'str' Also add test for the failure.
-
- 11 Mar, 2022 1 commit
-
-
Xavier Thompson authored
Check that promises run with the instance's python are logged properly.
-
- 16 Feb, 2022 3 commits
-
-
Jérome Perrin authored
Before slapos commit a184cca8b (Try to reuse existing file to avoid excessive IO on update + other minor optimisations, 2019-06-17), which started to be used in profiles in 65acdca0d (Release slapos.cookbook (1.0.118), 2019-08-13), the promise plugins did not contain import sys sys.path[0:0] = (..., ) but there was an extra import statement: import sys import json sys.path[0:0] = (..., ) slapos.core >= 1.7 was not able to process such promises, because the code introspecting these promises assumed that the second node of the AST was the assignment, which is incorrect in the old promises because it was another import. To accomodate both cases, use the value from the first assignment. We also change to use ast.literal_eval for safety.
-
Jérome Perrin authored
This method returns the class of computer used for the test, then it's easier for test subclasses to use a computer with different classes for software and instances. Use this in TestSlapgridPluginPromiseWithInstancePython, using subclasses instead of monkey patching should make extending this test a bit easier
-
Jérome Perrin authored
-
- 06 Nov, 2021 2 commits
-
-
Jérome Perrin authored
Because we were reading subprocess output as bytes, the output in case of promise errors was something like b'ERROR ...' There was another problem writing string to an binary file in error path.
-
Jérome Perrin authored
-
- 05 Nov, 2021 1 commit
-
-
Jérome Perrin authored
When using virtualenv, the module paths are not simple list, but instances of importlib._bootstrap_external._NamespacePath. According to docs [1] module's __path__ does is not a list, but an iterator producing strings. Cast to a list to consume these iterators. [1] https://docs.python.org/3/reference/import.html?highlight=__path__#path__
-
- 22 Oct, 2021 1 commit
-
-
Xavier Thompson authored
-
- 13 Sep, 2021 1 commit
-
-
Romain Courteaud authored
libslap must continue to use the same class names for compatibility. Changes are made to keep the migration as simple as possible: * do not change the catalog table/column names * do not change the local_role's names and the related categories * keep Computer Consumption portal type * keep portal_id's group name * keep SLA compatibility * keep SlapTool compatibility SlapTool: restore compatibility with Hosting Subscription method
-
- 01 Jul, 2021 1 commit
-
-
Romain Courteaud authored
-
- 11 Jun, 2021 1 commit
-
-
Xavier Thompson authored
This option applies only the processing of partitions as in: `slapos node instance --force-stop` This option affects how `started` partition are processed: - buildout is processed normally - the services are stopped instead of started - no promises are run - no report is sent to master See merge request nexedi/slapos.core!298
-
- 25 Mar, 2021 1 commit
-
-
Łukasz Nowak authored
whitelistfirewall manager is locking down partition access as configured in partition's .slapos-whitelist-firewall file by using firewalld configuration. The md5sum of last generated partition whitelist file is used to take decision if given rule shall be updated. The manager supports partition setup and destruction. Note: User id is used with netfilter owner module, as currently the sourcing address is not enforced to be per partition.
-
- 08 Mar, 2021 1 commit
-
-
Łukasz Nowak authored
lsblk OS inspection is the way to have realiable results for querying the devices on the system, so fully switch to it, while still supporting symlinks. Disks and partitions are supported.
-
- 05 Mar, 2021 1 commit
-
-
Łukasz Nowak authored
Context manager is not needed here and even makes more mess, just simply patch all what is needed in setUp, then unpatch in tearDown.
-
- 27 Nov, 2020 1 commit
-
-
Jérome Perrin authored
I guess this code was using python -S to try to be independant from anything that can happen in site.py, but that's not needed when running on testnode. pygolang.pymain does not support -S and we are moving tests environments to use pygolang.pymain, so let's remove this if we don't need it.
-
- 16 Nov, 2020 2 commits
-
-
Jérome Perrin authored
When PYTHONNOUSERSITE environemnt variable is set, python does not load user site. User site packages may contain a different version of buildout, which would be selected when slapos runs buildout, causing unexpected behaviours.
-
Jérome Perrin authored
Some buildout profiles are expecting this.
-
- 16 Sep, 2020 2 commits
-
-
Jérome Perrin authored
After 1.6.1 was deployed we have two processes, stop the redundant process.
-
Jérome Perrin authored
In 58fbaabf (svcbackend/standalone: use shorter names for supervisor sockets , 2020-07-17) we changed the socket path from supervisord.sock to a shorter sv.sock, but this caused issues when updating running slapos node instances, because this was trying to start a new supervisord process using the new socket path, while the old one was still running. To keep services running after upgrade, introduce a compatibility layer in this socket path - if we still have a supervisord running with a socket at this previous path, keep using this old socket name.
-
- 10 Sep, 2020 1 commit
-
-
Jérome Perrin authored
Output is already captured on SlapPopen instances and the output is available with output attribute.
-
- 17 Jul, 2020 1 commit
-
-
Jérome Perrin authored
On test nodes, these socket path sometimes exceed the linux limit.
-
- 09 Jun, 2020 1 commit
-
-
Jérome Perrin authored
including the edge case where software permissions have been changed
-
- 02 Apr, 2020 3 commits
-
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
- 15 Nov, 2019 1 commit
-
-
Łukasz Nowak authored
It is the most used value in most scenarios.
-
- 30 Oct, 2019 1 commit
-
-
Jérome Perrin authored
This will improve the summary of problems at the end of slapos node instance. /reviewed-on nexedi/slapos.core!144
-
- 26 Oct, 2019 1 commit
-
-
Rafael Monnerat authored
Introduce a new command for run promises only, from all partitions. This helps to perform quick checks.
-