- 05 Apr, 2022 4 commits
-
-
Rafael Monnerat authored
Whenever a user changes the Raw XML them return to the form, the changes on XML are loaded into the form. This allow the user reuse a known xml form as template.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
Whenever a parameter is incompatible with the serialization (by the use or not of "_" special parameter) the form should display a textarea as a failover. Whenever the parameter editor fail to render the form, the selection box (with the software type) shouldn't be hidden, so the user can still change to a proper Software type with a proper serialization (as long it allow you to are requesting an instance and not editing).
-
- 04 Apr, 2022 1 commit
-
-
Xavier Thompson authored
See merge request nexedi/slapos.core!373
-
- 01 Apr, 2022 5 commits
-
-
Xavier Thompson authored
-
Xavier Thompson authored
-
Xavier Thompson authored
The promise runner launched in a subprocess with the instance's python redirects stderr to stdout in order to reserve stderr for propagating error messages. However `preexec_fn` is used to run `dropPrivileges` inside the child process, so when `dropPrivileges` calls `logger.debug`, the logger writes to stderr before the redirection is set up. To fix this, the `preexec_fn` function is modified to apply the same redirection first and revert it at the end. Reverting it avoids the need to communicate the new file descriptor for the original stderr stream to runpromise.py.
-
Jérome Perrin authored
The vulnerability that this test was checking was removed from the database, let's use another one that looks more likely to be removed.
-
Rafael Monnerat authored
See merge request nexedi/slapos.core!368
-
- 30 Mar, 2022 23 commits
-
-
Thomas Gambier authored
this option was only used in generate-signature-key of slapos.libnetworkcache but it has been removed in nexedi/slapos.libnetworkcache@765d4737
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
This is same API already present on compute node, the core diference here is that the Software Instance oddly store the value.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
This clean up code, and the instance should be be responsable for this conversion as it is all instance related parameters anyway.
-
Rafael Monnerat authored
Help evaluate if the data is actually the last already
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
This prevent us rely on SlapTool implementation to search the Software Installation for a given URL
-
Rafael Monnerat authored
Create specific API for status suffixes, since this is a widely used by monitoring system
-
Rafael Monnerat authored
Move to workflow tranistion the duty of reset/set last data, so it work regardless of slaptool.
-
Rafael Monnerat authored
Introduce it as normal API of Software Instance since the structure is well-defined so we can move away from SlapTool
-
Rafael Monnerat authored
This aims to define an kind of export feature used widely on SlapTool, which is eventually used by the node on the proper context. So it would be reusable accross multiples API's.
-
Rafael Monnerat authored
Move away part of SlapTool code into a Mixin specific to fill and get Computer Information cache
-
Thomas Gambier authored
both signature-private-key-file and signature_private_key_file works for slapos.core but only signature-private-key-file works in slapcache and slapos.libnetworkcache
-
- 23 Mar, 2022 1 commit
-
-
Jérome Perrin authored
This fixes a bug when the program output contain some ansi code, like the \e[0;31m ansi code to display text in color on the terminal. These characters are not allowed in XML so if they end up in the XML-RPC messages this cause the underlying expat library to complain that the stream is not well-formed (invalid token). Fortunately, supervisor supports this and has a `strip_ansi` option that we can set in the config to prevent these problems.
-
- 22 Mar, 2022 6 commits
-
-
Thomas Gambier authored
-
Rafael Monnerat authored
It relies on Person_requestSupport now
-
Thomas Gambier authored
We just relax the conditions to have an OS match.
-
Thomas Gambier authored
* consider raspbian as a debian * never set id After the change to distro.linux_distribution() in 425f5bb7, raspbian is correctly detected and id is set, see the execution of both functions on raspbian: >>> platform.linux_distribution('', '', '', platform._supported_dists, 1) ('debian', '10.11', '') >>> distro.linux_distribution(full_distribution_name=False) ('raspbian', '10', 'buster')
-
Thomas Gambier authored
-
Łukasz Nowak authored
slapproxy, just like reference SlapOS Master, has to transmit important partition parameters, in order to really support all features expected by the software releases.
-