1. 26 Aug, 2016 1 commit
    • Vincent Pelletier's avatar
      erp5: Update output schema. · 0a10fee2
      Vincent Pelletier authored
      hosts-dict values cannot be domain names.
      memcached entries are implementation-independent (no mention of kumofs
      anymore).
      relational database information (which does not follow above memcached
      rule, sadly, naming mariadb explicitly) is published in two lists.
      Add minimal patterns to document what requester should expect.
      Document deadlock-debugger-password".
      Drop non-standard "optional" property from jupyter-url declaration.
      0a10fee2
  2. 25 Aug, 2016 4 commits
  3. 23 Aug, 2016 2 commits
  4. 14 Aug, 2016 1 commit
  5. 10 Aug, 2016 3 commits
  6. 09 Aug, 2016 4 commits
    • Alain Takoudjou's avatar
      slapos.toolbox version up (0.57) · 7e5ba508
      Alain Takoudjou authored
      7e5ba508
    • Alain Takoudjou's avatar
    • Alain Takoudjou's avatar
      monitor: script moved to slapos.toolbox · 445a6b90
      Alain Takoudjou authored
      445a6b90
    • Kirill Smelkov's avatar
      Revert "dropbear: Don't waste transfer time in favour of small-memory machines defaults" · 55460a4a
      Kirill Smelkov authored
      This reverts commit 605e564b.
      
      Rationale: Stability matters:
      
      Quoting 605e564b:
      > Besides changing only recv window size at runtime breaks compatibility with
      > openssh: if we only do `-W 1M` on server and try to upload data with openssh as
      > client, dropbear complains
      >
      >     [3302] Apr 17 23:10:06 Exit (slapuser2): Bad packet size 32777
      >
      > and connection terminates. Thus RECV_MAX_PAYLOAD_LEN increase is also
      > required, which cannot be done via option at runtime:
      >
      >     https://github.com/mkj/dropbear/blob/DROPBEAR_0.53.1/options.h#L268
      >
      >     ---- 8< ----
      >     /* Maximum size of a received SSH data packet - this _MUST_ be >= 32768
      >        in order to interoperate with other implementations */
      >     #ifndef RECV_MAX_PAYLOAD_LEN
      >     #define RECV_MAX_PAYLOAD_LEN 32768
      >     #endif
      >     ---- 8< ----
      >
      > So let's increase DEFAULT_RECV_WINDOW to 1M and RECV_MAX_PAYLOAD_LEN
      > appropriately (experimentally found that at 512K the complain goes
      > away).
      
      It turned out that "Bad packet size" did not really went away. For example I've
      recently hit the following:
      
          [14586] Aug 04 19:12:43 Pubkey auth succeeded for 'slapuser16' with key md5 b1:35:06:d3:a5:b1:0b:c6:7f:e6:59:31:ab:3a:e1:56 from 2001:67c:1254:c0::1:49886
          [14586] Aug 04 19:12:55 Exit (slapuser16): Integrity error (bad packet size 524500)
      
      in .slappartX_runner_sshd.log of my upgraded webrunner with connection being broken.
      ( !68 (comment 17748) )
      
      We could maybe try to play games with increasing RECV_MAX_PAYLOAD_LEN to
      be more than DEFAULT_RECV_WINDOW but this already turned out to be error-prone.
      
      Since when really needed we should be able to replace dropbear with openssh
      
          !68 (comment 7082)
      
      which is both performant and good-compatible, to me the way is:
      
      - make current dropbear run stable again,
      - when we really need to sync large amounts of data (and we should be
        needing to do soon or already) -> work on replacing dropbear with
        openssh.
      55460a4a
  7. 07 Aug, 2016 6 commits
    • Kirill Smelkov's avatar
      gitlab: Upgrade to 8.7 · abc0873b
      Kirill Smelkov authored
      - GitLab Software + patches ported to GitLab 8.7.X;
      - Configs synced with upstream;
      - No base software upgrades this time because it was all recently
        upgraded during a590b03e;
      
      TODO: allow configuration of trusted proxies
      
      /reviewed-by TrustMe
      abc0873b
    • Kirill Smelkov's avatar
      gitlab: Sync sidekiq service to upstream · af0c5b11
      Kirill Smelkov authored
      Like for 2a835e63
      
          $ git diff 8.6.5+ce.0-0-g342f8be..8.7.9+ce.1-0-gf589ad7 --
                  files/gitlab-cookbooks/gitlab/templates/default/sv-sidekiq-run.erb
      
      is empty.
      af0c5b11
    • Kirill Smelkov's avatar
      gitlab: Sync gitlab-parameters.cfg to upstream · 61177775
      Kirill Smelkov authored
      I've manually reviewed
      
          git diff 8.6.5+ce.0-0-g342f8be..8.7.9+ce.1-0-gf589ad7 --    \
              files/gitlab-config-template/gitlab.rb.template \
              files/gitlab-cookbooks/gitlab/attributes/default.rb
      
      and modulo trusted proxies there are no interesting changes for us.
      61177775
    • Kirill Smelkov's avatar
      gitlab: Slapos'ify gitlab config updates · 35b142e0
      Kirill Smelkov authored
      - config.ru template is gone - pristine gitlab-ce/config.ru can do the
        job because it obtains unicorn OOM killer setting via environment
        variables.
      
        https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/672
      
      - we put TODO there for configuring trusted proxies (gitlab.yml & nginx)
      
      - we restore our slaposified configuration from config.ru to unicorn.rb
      35b142e0
    • Kirill Smelkov's avatar
      gitlab: Merge in upstream config updates · 0f85f570
      Kirill Smelkov authored
      This does almost(*) only pure merge. We will slaposify / adjust config
      and corresponding md5sum in the following patches.
      
      (*) smtp ssl option is only added as comment.
      0f85f570
    • Kirill Smelkov's avatar
      gitlab: Update software to gitlab 8.7 · bf688f44
      Kirill Smelkov authored
      Update GitLab software to
      
          - gitlab-ce 8.7.9 + NXD patches
      
          - gitlab-shell to 2.7.2 + 1 patch to remove unneeded hooks.old in *.git
      
          - gitlab-workhorse stays at 0.7.1 + NXD patches because gitlab-ce 8.7.x
            sticks to this version (i.e. no workhorse upgrade for gitlab 8.6 -> 8.7)
      
      This only updates software and begins SR update to 8.7 - for now gitlab
      instance becomes non-working -- we'll pull in configuration files
      updates and fixups in the following patches.
      bf688f44
  8. 05 Aug, 2016 8 commits
  9. 04 Aug, 2016 2 commits
  10. 03 Aug, 2016 2 commits
  11. 02 Aug, 2016 7 commits
    • Kirill Smelkov's avatar
      gitlab/gitlab-unicorn-startup: Make sure pg_trgm extension is enabled for gitlab db · b7166b9e
      Kirill Smelkov authored
      Starting from GitLab 8.6 pg_trgm extension becomes hard dependency of
      gitlab.
      
          https://gitlab.com/gitlab-org/gitlab-ce/commit/d24ee2a2
      
      The extension can be activated only by db superuser, so gitlab db
      migration scripts does not activate it - it has to be done by DB
      administrator or is handled by integrating code in omnibus case.
      
      As we already handle DB setup and migrations in unicorn startup script,
      as pre-action there, let's activate pg_trgm.
      b7166b9e
    • Kirill Smelkov's avatar
      gitlab/gitlab-unicorn-startup: Factor our psql call · 7e999c14
      Kirill Smelkov authored
      We'll need to invoke psql connected to gitlab db in another place, so
      before doing it let's factor out the code to call psql as connected to a
      separate function.
      7e999c14
    • Kirill Smelkov's avatar
      gitlab: Sync sidekiq service to upstream · 2a835e63
      Kirill Smelkov authored
      Like for 0a72505e
      
          $ git diff 8.5.1+ce.0-1-ge732b39..8.6.5+ce.0-0-g342f8be --
              files/gitlab-cookbooks/gitlab/templates/default/sv-sidekiq-run.erb
      
      is empty.
      2a835e63
    • Kirill Smelkov's avatar
      gitlab: Sync gitlab-parameters.cfg to upstream · 6459ea7c
      Kirill Smelkov authored
      I manually reviewed
      
          $ git diff 8.5.1+ce.0-1-ge732b39..8.6.5+ce.0-0-g342f8be --  \
              files/gitlab-config-template/gitlab.rb.template \
              files/gitlab-cookbooks/gitlab/attributes/default.rb
      
      in omnibus-gitlab, and module proxy_cache and http2 changes, which we
      already handled in 2 previous patches, there is nothing more interesting
      for us.
      6459ea7c
    • Kirill Smelkov's avatar
      gitlab: Slapos'ify gitlab config updates · b8075b63
      Kirill Smelkov authored
      Almost no changes this time: we only comment-out Nginx cache. See
      details for why we do not need it in comments and in f6f97d72.
      b8075b63
    • Kirill Smelkov's avatar
      gitlab: Merge in upstream config updates · f867fd8e
      Kirill Smelkov authored
      This does almost(*) only pure merge. We will slaposify / adjust config
      and corresponding md5sum in the following patches.
      
      (*) option to enable/disable HTTP/2 was in the same line as other nginx
          already jinja2'ified listen options.
      
          As already noted in f6f97d72 we are going to always support HTTP/2,
          that's why we do not merge-in upstream change only to through it away in
          the following patch.
      f867fd8e
    • Kirill Smelkov's avatar
      gitlab: Update software to gitlab 8.6 · 74066db8
      Kirill Smelkov authored
      Update GitLab software to
      
          - gitlab-ce 8.6.9 + NXD patches
      
            nexedi/gitlab-ce!1
      
          - gitlab-shell to 2.6.12 + 1 patch to remove unneeded hooks.old in *.git
      
            nexedi/gitlab-shell!1
      
          - gitlab-workhorse 0.7.1 + NXD patches.
      
            nexedi/gitlab-workhorse!1
      
            ( download speedup patches were reworked because of upstream changes.
      	Please see details in the above MR and in fixup commits )
      
      This only updates software and begins SR update to 8.6 - for now gitlab
      instance becomes non-working -- we'll pull in configuration files
      updates and fixups in the following patches.
      74066db8