- 23 May, 2018 3 commits
-
-
Jérome Perrin authored
Some files and sockets where created in their default location, which was in the software. As a result, this software was working only on webrunner or testnodes, which uses same unix user for software and instance.
-
Jérome Perrin authored
To be usable in a "system level" slapos with multiple users, executables scripts must be 0755
-
Jérome Perrin authored
!311 was merged a bit too fast. After test suite was repaired ( the test node was stuck updating the git repository ), [test](https://nexedi.erp5.net/test_result_module/20180507-19395E1F/2) was not passing on testnode, because path was too deep. While debugging this, I realized this check was wrong, because supervisor [also append the pid](https://github.com/Supervisor/supervisor/blob/70720a0311d868fbf58a31cd26a7147921dcff29/supervisor/http.py#L564-L574) to this path, so the path is even longer. I just checked that we have room for 7 digit pids. Because path was too long on test node, test now run with `SLAPOS_TEST_WORKING_DIR` set to a slightly shorter path that's enough for this case. There are some other minor fixes, see individual commits. /cc @Nicolas @luke @rafael /reviewed-on nexedi/slapos!325
-
- 22 May, 2018 5 commits
-
-
Jérome Perrin authored
For supervisord AF_UNIX socket
-
Jérome Perrin authored
This is a convention from http://community.slapos.org/slapos_community/wiki/slapos-Wiki.Home/developer-SlapOS.Conventions.Guidelines
-
Jérome Perrin authored
fix all getInstanceParameterDict typos
-
Jérome Perrin authored
supervisord creates a socket with pid in the name, so we have to account for the space of pid. Because it's not so easy to know the max size of pids, we just assume 7 places.
-
Jérome Perrin authored
otherwise we leak zombie slapproxy processes
-
- 20 May, 2018 4 commits
-
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
- 19 May, 2018 2 commits
-
-
Rafael Monnerat authored
Pin eggsa re mandatory.
-
Rafael Monnerat authored
Rename --config to --configuration on apache-dex among others changes. This is just to reduce the diff between erp5 and slapos-master
-
- 18 May, 2018 3 commits
-
-
Łukasz Nowak authored
It was missing double slash (//) after schema. /reviewed-on nexedi/slapos!332
-
Roque authored
The main idea is to rename the service wrapper using a hash of the corresponding configuration files. In that way, if the config files are updated, the corresponding script file, section in supervisor.conf and service process will be updated accordingly. - the file name in wrapper_path contains a hash of the corresponding config files - when config files change, and therefore the hash, the wrapper will be re-created and the corresponding service restarted - the config files paths will be a parameter in the corresponding buildout section, if it isn't set there won't be hash-check /reviewed-on nexedi/slapos!326
-
- 17 May, 2018 2 commits
-
-
Łukasz Nowak authored
The exposed apache_custom_http option for custom slave was incorrectly missing, and apache_custom_http*s* was used instead. /reviewed-on nexedi/slapos!330
-
Xiaowu Zhang authored
/reviewed-on nexedi/slapos!329
-
- 16 May, 2018 2 commits
-
-
Łukasz Nowak authored
HTTP2 in curl client will allow to test HTTP2 servers. See: https://curl.haxx.se/docs/http2.html /reviewed-on nexedi/slapos!328
-
Łukasz Nowak authored
-
- 07 May, 2018 4 commits
-
-
Julien Muchembled authored
-
Julien Muchembled authored
-
Julien Muchembled authored
-
Jérome Perrin authored
-
- 02 May, 2018 2 commits
-
-
Roque authored
- destination server gets its own server id - this removes complexity at the cost of respecting consistency in names - http-send-name-header is not well supported by haproxy and that it may leads to random errors with not well formated request /reviewed-on nexedi/slapos!324
-
Jérome Perrin authored
Currently cloudooo does not compile with gcc 6.3 ( default gcc from current debian stable ) because of ffmpeg component: ``` [CC] nestegg/halloc/src/halloc.c.o In file included from nestegg/halloc/src/halloc.c:19:0: nestegg/halloc/src/align.h:33:25: error: conflicting types for 'max_align_t' typedef union max_align max_align_t; ^~~~~~~~~~~ In file included from nestegg/halloc/src/../halloc.h:18:0, from nestegg/halloc/src/halloc.c:18: /usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:429:3: note: previous declaration of 'max_align_t' was here } max_align_t; ^~~~~~~~~~~ Makefile:104: recipe for target 'nestegg/halloc/src/halloc.c.o' failed ``` Because we don't use ffmpeg in cloudooo, I'm just temporarily removing it . /cc @rafael @kazuhiko @gabriel @vpelletier /reviewed-on nexedi/slapos!264
-
- 27 Apr, 2018 4 commits
-
-
Alain Takoudjou authored
-
Alain Takoudjou authored
-
Alain Takoudjou authored
-
Jérome Perrin authored
To be compatible with buildout (and not only `slapos.recipe.template:jinja2`) See [#20180416-1138FFA](https://nexedi.erp5.net/bug_module/20180416-1138FFA/) --- Running this buildout: ``` [buildout] parts=x [userinfo] recipe = slapos.cookbook:userinfo [x] recipe = plone.recipe.command command = echo "Hello user id ${userinfo:pw-uid}" ``` In a slapos patched buildout it outputs: `"Hello user id !py!991"` (which means it's not usable for references directly in other buildout parts) In a "non patched" buildout fail with error: ``` While: Installing. Getting section x. Initializing section x. Getting option x:command. Getting section userinfo. Initializing section userinfo. An internal error occurred due to a bug in either zc.buildout or in a recipe being used: Traceback (most recent call last): File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 2127, in main getattr(buildout, command)(args) File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 681, in install [self[part]['recipe'] for part in install_parts] File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1278, in __getitem__ options._initialize() File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1376, in _initialize self._dosub(k, v) File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1431, in _dosub v = '$$'.join([self._sub(s, seen) for s in v.split('$$')]) File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1495, in _sub v = self.buildout[section].get(option, None, seen) File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1278, in __getitem__ options._initialize() File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1386, in _initialize self.initialize() File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1395, in initialize self.recipe = recipe_class(buildout, name, self) File "/tmp/x/eggs/slapos.cookbook-1.0.62-py2.7.egg/slapos/recipe/userinfo.py", line 13, in __init__ options['pw-uid'] = pinfo.pw_uid File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1520, in __setitem__ raise TypeError('Option values must be strings', value) TypeError: ('Option values must be strings', 991) ``` /cc @Nicolas @alain.takoudjou @vpelletier /reviewed-on nexedi/slapos!321
-
- 25 Apr, 2018 1 commit
-
-
Jérome Perrin authored
Proftpd with sftp and virtual users http://www.proftpd.org/docs/ # Features * sftp only is enabled * partially uploadloaded are not visible thanks to [`HiddenStores`](http://proftpd.org/docs/directives/linked/config_ref_HiddenStores.html) ( in fact they are, but name starts with `.` ) * 5 failed login attempts will cause the host to be temporary banned # TODO * only password login is enabled. enabling [`SFTPAuthorizedUserKeys`](http://www.proftpd.org/docs/contrib/mod_sftp.html#SFTPAuthorizedUserKeys) seems to break password only login * log rotation * make sure SFTPLog is useful (seems very verbose and does not contain more than stdout) * make it easier to manage users ( using `mod_auth_web` against an ERP5 endpoint or accepting a list of user/password as instance parameter ) * allow configuring webhooks when new file is uploaded ---- depends on slapos.core!41 /reviewed-on !311
-
- 24 Apr, 2018 3 commits
-
-
Alain Takoudjou authored
-
Yusei Tahara authored
-
Łukasz Nowak authored
_ (underscore) is not supported by apache as domain name (https://bugzilla.redhat.com/show_bug.cgi?id=1410130), so avoid using it. /reviewed-on nexedi/slapos!320
-
- 23 Apr, 2018 1 commit
-
-
Łukasz Nowak authored
The build of nodejs uses python, and python leaking from the system can lead to unexpected results, thus use provided from SlapOS. /reviewed-on !319
-
- 17 Apr, 2018 3 commits
-
-
Rafael Monnerat authored
The correct is use require and not required.
-
Alain Takoudjou authored
-
Jérome Perrin authored
fix getInstanceParameterDict typo
-
- 16 Apr, 2018 1 commit
-
-
Julien Muchembled authored
-