- 16 Mar, 2022 1 commit
-
-
Łukasz Nowak authored
-
- 15 Mar, 2022 2 commits
-
-
Rafael Monnerat authored
See merge request !360
-
Xavier Thompson authored
See merge request nexedi/slapos.core!356
-
- 14 Mar, 2022 8 commits
-
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
This introduce API for request support and add events on Support Requests
-
Rafael Monnerat authored
Used to create support requests to send users notifications.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
This creates a Support Request
-
Rafael Monnerat authored
-
Thomas Gambier authored
fixup for a8917a3c
-
- 11 Mar, 2022 2 commits
-
-
Xavier Thompson authored
Check that promises run with the instance's python are logged properly.
-
Xavier Thompson authored
Promises processed using the instance's python in a subprocess were logged to the console but not to the logfile passed by `--logfile`. To fix this the output of the promise is now captured and forwarded to slapgrid's logger in real-time using SlapPopen.
-
- 10 Mar, 2022 5 commits
-
-
Rafael Monnerat authored
-
Thomas Gambier authored
fixup for a8917a3c
-
Thomas Gambier authored
See merge request !365
-
Thomas Gambier authored
-
Thomas Gambier authored
The option use_unique_local_address was added in de11308a but was already broken because 2 different names were used for the option: * use_unique_local_address_block * use_unique_local_address There was a tentative fix in c09214cb but the option name in slapos.cfg.example was never fixed.
-
- 02 Mar, 2022 1 commit
-
-
Łukasz Nowak authored
The c647aab4 dropped _storeLastData, so follow-up changes here.
-
- 01 Mar, 2022 1 commit
-
-
Łukasz Nowak authored
Wrong object used resulted with non working SupportRequest_recheckMonitoring on Compute Node.
-
- 23 Feb, 2022 2 commits
-
-
Rafael Monnerat authored
It wasn't working properly, let's reintroduce once it better tested.
-
Rafael Monnerat authored
-
- 21 Feb, 2022 1 commit
-
-
Jérome Perrin authored
-
- 17 Feb, 2022 1 commit
-
-
Jérome Perrin authored
-
- 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
-
- 08 Feb, 2022 1 commit
-
-
Rafael Monnerat authored
-
- 04 Feb, 2022 1 commit
-
-
Rafael Monnerat authored
-
- 01 Feb, 2022 2 commits
-
-
Rafael Monnerat authored
See merge request nexedi/slapos.core!359
-
Rafael Monnerat authored
This API replaces the usage of SlapTool code for handling data stored in memcached. It introduces an New API for it at the context of the objects to handle volatile data used on SlapOS context. Replace Base_getNewsDict by getAccessStatus Drop direct access to memcache, use Cache Plugin instead to load and set information.
-
- 28 Jan, 2022 1 commit
-
-
Rafael Monnerat authored
In case the instance isn't linked to the tree properly (due Garbage Collect unlinked it), stop the instance directly anyway.
-
- 26 Jan, 2022 2 commits
-
-
Rafael Monnerat authored
-
Łukasz Nowak authored
Once per day is not real time monitoring, so drop it to each 5 minutes.
-
- 25 Jan, 2022 1 commit
-
-
Jérome Perrin authored
On python2, warnings.warn expects the message to be passed as a str and it will silently output nothing when the message is an unicode that can not be converted to str using ascii encoding (cf. https://bugs.python.org/issue34752 ) Since october update of pyupio/safety-db there is a new vulnerability for pytest-runner, which is described as: "pytest-runner": [ { "advisory": "Pytest-runner depends on deprecated features of setuptools and relies on features that break security mechanisms in pip. For example \u2018setup_requires\u2019 and \u2018tests_require\u2019 bypass pip --require-hashes. See also pypa/setuptools#1684.\r\nIt is recommended that you:\r\n- Remove 'pytest-runner' from your setup_requires, preferably removing the setup_requires option.\r\n- Remove 'pytest' and any other testing requirements from tests_require, preferably removing the tests_requires option.\r\n- Select a tool to bootstrap and then run tests such as tox.", "cve": "PVE-2021-43313", "id": "pyup.io-43313", "specs": [ ">0" ], "v": ">0" } ], notice the quotes: \u2018setup_requires\u2019 and \u2018tests_require\u2019 this was sent to warnings.warn as unicode and because all our softwares have this vulnerability (that BTW do not impact us because we run buildout with a patch for setup_requires), we no longer saw any warning on python2 software release tests.
-
- 24 Jan, 2022 2 commits
-
-
Jérome Perrin authored
pkg_resources.Environment only scans packages for the current python version, but the checked software might be using a different python version than the python version used to check software (the slapos python). The checked software might also include packages for multiples python versions. Compute the list used python packages from the eggs directory and use an Environment for each python version, this way we check all python versions and also when slapos python and software python are different.
-
Jérome Perrin authored
-
- 17 Jan, 2022 1 commit
-
-
Jérome Perrin authored
- only consider shared parts from checked software - support new `.buildout-shared.json` signature files - unit test coverage See merge request nexedi/slapos.core!361
-
- 12 Jan, 2022 1 commit
-
-
Levin Zimmermann authored
See merge request nexedi/slapos.core!358
-
- 11 Jan, 2022 1 commit
-
-
Jérome Perrin authored
check_software was checking all shared parts, which was an easy implementation but turned out to be problematic, both when running on test nodes because if one software installs broken shared parts all softwares being tested afterwards were failing and also during development because we needed to prune broken shared parts when fixing problems reported by check_software. This inspects buildout's .installed.cfg to guess which shared parts are used.
-