- 14 Jan, 2020 1 commit
-
-
Romain Courteaud authored
-
- 09 Jan, 2020 2 commits
-
-
Łukasz Nowak authored
-
Łukasz Nowak authored
/reviewed-on !174
-
- 08 Jan, 2020 1 commit
-
-
Łukasz Nowak authored
/reviewed-on !173
-
- 27 Dec, 2019 8 commits
-
-
Łukasz Nowak authored
Promise can appear and disappear, and pyc or pyo files can stay in the folder, so try hard to remove those stale files. /reviewed-on !169
-
Jérome Perrin authored
To isolate log files per test in the snapshots
-
Jérome Perrin authored
Log files from slapos node software are large and they are always the same after each test method, so it does not make much sense to store them for each test method snapshot, because we only run slapos node software at setupModule step. Log files from slapos node instance are smaller, but it's also not needed to make a snapshot after each test, because we only run slapos node instance at setUpClass step. To prevent duplication, store slapos log files only at setupModule (for software) and at setUpClass (for instance). Also store log slapos log files in all the steps that can fail in _cleanup.
-
Jérome Perrin authored
Everything in etc can be interesting while investigating issues in test, also it should not be too big.
-
Jérome Perrin authored
It's also interesting to see what scripts have been generated
-
Jérome Perrin authored
Keeping buildout.cfg and .installed.cfg can help diagnosing test failures.
-
Jérome Perrin authored
Directories were ignored by mistake, we found out that several files that would help us diagnosing problems were missing, because we only snapshot etc/* which did not snapshot recursive directories such as etc/promise or etc/service. Symlinks were copied (the target was copied), because they matched the isfile check, but if the symlink target was not existent, this caused errors. Also rename _snapshot_instance_file to _copySnapshot as it is no longer treating files only
-
Jérome Perrin authored
50 was too much now that we keep snapshots in tests.
-
- 24 Dec, 2019 1 commit
-
-
Łukasz Nowak authored
supervisor configuration is interesting to inspect in, the same for runners in run and service directories. /reviewed-on !170
-
- 18 Dec, 2019 1 commit
-
-
Łukasz Nowak authored
The supervisord binary in some environments (like webrunner), seems to not follow the automatic way to find the configuration file, so instead of relying on it, just explicitly provide the file. /reviewed-on !168
-
- 17 Dec, 2019 3 commits
-
-
Łukasz Nowak authored
-
Łukasz Nowak authored
Depending on the netifaces version the netmask can come with or without lenght prefix, so support both cases and consider netmask with prefix as equal to without prefix. The only result will be update of the netmask in the computer XML file.
-
Łukasz Nowak authored
self.interface.getGlobalScopeAddressList which uses netifaces can have different sorting of the addresses depending of the version, so prefer the already configured IPv6 address.
-
- 28 Nov, 2019 2 commits
-
-
Thomas Gambier authored
-
Thomas Gambier authored
follow up of f2798c25 it was still crashing when "create_tap = True"
-
- 25 Nov, 2019 4 commits
-
-
Thomas Gambier authored
-
Nicolas Wavrant authored
Also renames it so it reflects well its function. Before the fix in 77c4cca0, each call to /loadComputerConfigurationFromXML was deleting all the partition in the database. After the fix, because the test environment is not cleaned correctly between different tests, some slapparts would remain between following tests. Thanks to this commit, the previous behavior is restaured.
-
Jérome Perrin authored
-
Nicolas Wavrant authored
loadComputerConfigurationFromXML must be idempotent : if partitions are requested the same, then nothing should be done. With this commit, we make sure we only delete partitions that don't exist anymore, create new ones, and update the remaining ones
-
- 21 Nov, 2019 2 commits
-
-
Nicolas Wavrant authored
* --token ask in "slapos configure client" is not supported ("ask" is interpreted as the argument value, iow the token) * node_name : a node name is an unknown concept. On slapos.vifib.com interface, the nodes have titles and references /reviewed-on !158
-
Nicolas Wavrant authored
fix the following crash in command ```slapos node boot``` in slapos package version "1.5.2+1.0.125+3-1" : ``` # slapos node boot [BOOT] Checking if 'lo' has IPv6... [BOOT] Invoking ipv6 ping to slap.vifib.com... [BOOT] IPv6 network reachable... [BOOT] Invoking slapos node format... 2019-11-20 09:43:52 slapos[5511] WARNING Creating new computer data with id 'COMP-3121' 2019-11-20 09:43:52 slapos[5511] INFO Adding 10 new partitions 2019-11-20 09:43:52 slapos[5511] INFO Updating computer 2019-11-20 09:43:52 slapos[5511] ERROR u'ffff:ffff:ffff:ffff:ffff:ffff::/96' is not a valid IPv6 address string! Traceback (most recent call last): File "/opt/slapos/eggs/slapos.core-1.5.2-py2.7.egg/slapos/cli/entry.py", line 300, in run_subcommand result = cmd.run(parsed_args) File "/opt/slapos/eggs/slapos.core-1.5.2-py2.7.egg/slapos/cli/command.py", line 50, in run return self.take_action(parsed_args) File "/opt/slapos/eggs/slapos.core-1.5.2-py2.7.egg/slapos/cli/format.py", line 128, in take_action do_format(conf=conf) File "/opt/slapos/eggs/slapos.core-1.5.2-py2.7.egg/slapos/format.py", line 1401, in do_format use_unique_local_address_block=conf.use_unique_local_address_block) File "/opt/slapos/eggs/slapos.core-1.5.2-py2.7.egg/slapos/format.py", line 665, in format partition.address_list.append(self.interface.addIPv6Address()) File "/opt/slapos/eggs/slapos.core-1.5.2-py2.7.egg/slapos/format.py", line 1227, in addIPv6Address if self._addSystemAddress(addr, netmask, tap=tap): File "/opt/slapos/eggs/slapos.core-1.5.2-py2.7.egg/slapos/format.py", line 1058, in _addSystemAddress address_string = '%s/%s' % (address, netmaskToPrefixIPv6(netmask)) File "/opt/slapos/eggs/slapos.core-1.5.2-py2.7.egg/slapos/format.py", line 179, in netmaskToPrefixIPv6 netaddr.strategy.ipv6.str_to_int(netmask)] File "/opt/slapos/eggs/netaddr-0.7.19-py2.7.egg/netaddr/strategy/ipv6.py", line 142, in str_to_int raise AddrFormatError('%r is not a valid IPv6 address string!' % addr) AddrFormatError: u'ffff:ffff:ffff:ffff:ffff:ffff::/96' is not a valid IPv6 address string! [BOOT] [ERROR] Fail to format, try again in 15 seconds... [BOOT] Invoking slapos node format... ``` /reviewed-on !157
-
- 15 Nov, 2019 5 commits
-
-
Łukasz Nowak authored
It is the most used value in most scenarios.
-
Łukasz Nowak authored
-
Łukasz Nowak authored
This reverts commit 01e612bf.
-
Łukasz Nowak authored
This reverts commit 767475e9.
-
Łukasz Nowak authored
This reverts commit 7a4b44d1.
-
- 14 Nov, 2019 2 commits
-
-
Łukasz Nowak authored
Let slapos.grid.slapgrid module control the default cli setting for promise-timeout
-
Łukasz Nowak authored
Despite PROMISE_TIMEOUT is configurable on module level, the hardcoded value took precedence. In order to honour it, just pass None while instantiating the class.
-
- 13 Nov, 2019 2 commits
-
-
Łukasz Nowak authored
This is the default configuration of most of the deployed slapos.core cases, so follow it here.
-
Rafael Monnerat authored
-
- 12 Nov, 2019 1 commit
-
-
Rafael Monnerat authored
Save global and public state for further use by monitor. Those files are extended by the monitor with extra parameters (like frontends urls), to compose the final files.
-
- 08 Nov, 2019 1 commit
-
-
Rafael Monnerat authored
This is a port of the code from slapos.toolbox for future replacement.
-
- 06 Nov, 2019 1 commit
-
-
Łukasz Nowak authored
/reviewed-on !150
-
- 05 Nov, 2019 2 commits
-
-
Rafael Monnerat authored
-
Rafael Monnerat authored
This operation is done by the instance itself, updating the timestamp here will create an infinity call, where the instance is always edited and it is forced to run. At the ERP5 implementation of slapos master this api don't modify the timestamp (which is not defined by modification date but by an specific workflow. /cc @jerome /reviewed-on !151
-
- 30 Oct, 2019 1 commit
-
-
Jérome Perrin authored
-