- 09 Dec, 2019 1 commit
-
-
Alain Takoudjou authored
In Gitlab, if URL is like https://USERNAME:PASSWORD@somedomain.com then gitlab will return 401 and ask for basic Authentication. For this kind of URL, we simply extract username and password and send ajax request with Basic Auth. /reviewed-on nexedi/slapos.core!163
-
- 04 Dec, 2019 2 commits
-
-
Thomas Gambier authored
-
Thomas Gambier authored
-
- 29 Nov, 2019 1 commit
-
-
Thomas Gambier authored
-
- 28 Nov, 2019 2 commits
-
-
Thomas Gambier authored
-
Thomas Gambier authored
follow up of f2798c25 it was still crashing when "create_tap = True"
-
- 27 Nov, 2019 2 commits
-
-
Thomas Gambier authored
-
Thomas Gambier authored
add erp5_accounting to fix the following: runTestSuite: Adding erp5_configurator business template ... (imported in 1.134s) (missing dependencies : ['erp5_accounting']) done (5.681s) add a test to see if all BT are correctly installed
-
- 25 Nov, 2019 5 commits
-
-
Thomas Gambier authored
-
Thomas Gambier authored
-
Nicolas Wavrant authored
Also renames it so it reflects well its function. Before the fix in 77c4cca0b3026fb6b35c13d2bb7cc1b43ae1da26, 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 nexedi/slapos.core!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 nexedi/slapos.core!157
-
- 18 Nov, 2019 1 commit
-
-
Boxiang Sun authored
The leading spaces in the XML will lead the XML to become invalid /reviewed-on nexedi/slapos.core!153
-
- 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 nexedi/slapos.core!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 nexedi/slapos.core!151
-
- 30 Oct, 2019 5 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
Now that slapos node instance outputs summary of problems, no need to pollute the logs so much
-
Jérome Perrin authored
This will improve the summary of problems at the end of slapos node instance. /reviewed-on nexedi/slapos.core!144
-
Boxiang Sun authored
[Test result](https://nexedijs.erp5.net/#/test_result_module?extended_search=%20%22Boxiang-SLAPOS-CORE-FIXUP%22&page=form&view=view) /reviewed-on !149
-
Jérome Perrin authored
Used to remove shared parts that are no longer referenced. With shared part installed for example in `/opt/slapgrd/shared/name/HASH` the heuristic is to assume that if `HASH` is present in a software's `.installed.cfg`, then this software is using this shared part. Similar, if `HASH` is present in `/opt/slapgrid/shared/another/ANOTHER_HASH/.slapos*signature` then share part another for hash `ANOTHER_HASH` is using the shared part. This also have some support to recursively look in instances and if they contain a `slapos.cfg` file, look for software and shared parts to see if they use the shared part. In other cases, this shared part can be deleted. /reviewed-on !139
-
- 29 Oct, 2019 1 commit
-
-
Thomas Gambier authored
python3-wheels and python3-setuptools are installed when we installed python3-pip only if recommended packages are installed. It's better to force the installation of what we need.
-
- 28 Oct, 2019 4 commits
-
-
Rafael Monnerat authored
This normalizes the result on python2 and python3, and as well, makes the result more accurate.
-
Julien Muchembled authored
-
Julien Muchembled authored
When reinstalling a computer, 'node software' may run before 'node format' has created users, then it fails because it can't set ownership of the directory it created. The directory already exists on next runs and before this commit, it didn't fix the ownership.
-
Julien Muchembled authored
-