1. 24 Oct, 2024 1 commit
    • Kirill Smelkov's avatar
      software/simpleran: Fix fluentbit ingestion not to barf on large lines · 8b7b0e92
      Kirill Smelkov authored
      Fluentbit Tail input documentation[1] says that by default maximum buffer
      size is 32K which turned out to be too small in practice because we hit
      a situation where enb.xlog started to have lines with ~ 34K and so
      fluentbit ingestion stopped to work with the following error in
      fluentbit log:
      
          [2024/10/23 20:30:23] [error] [input:tail:tail.0] file=/srv/slapgrid/slappart19/srv/monitor/public/enb.xlog requires a larger buffer size, lines are too long. Skipping file.
      
      -> Fix that by increasing max buffer size to 1M which seems to be high
         enough at least for now.
      
      Maybe it will make sense to configure this as unlimited, but I'm not
      sure if going as unlimited is universally a good idea.
      
      [1] https://docs.fluentbit.io/manual/pipeline/inputs/tail
      
      /cc @lu.xu, @jhuge, @tomo
      /reviewed-by @paul.graydon
      /reviewed-on nexedi/slapos!1672
      8b7b0e92
  2. 22 Oct, 2024 2 commits
  3. 21 Oct, 2024 1 commit
    • Jérome Perrin's avatar
      random: fix password recipe when using storage-path and passwd · 280370c7
      Jérome Perrin authored
      As discussed on nexedi/slapos@bb841a7b (comment 219278)
      when using storage-path and passwd option, the storage file could not
      be updated to the new format because of AttributeError _needs_migration.
      
      This changes to no longer try to detect if the storage needs migration,
      but just compare the expected content of the storage file during install
      and overwrite the file if it is different.
      
      This new approach also fix a behavior that re-running buildout with
      storage-path option and a different passwd option did not update the
      storage file. Now it is also updated.
      
      ( this also fixes a potential encoding problem on py2 )
      280370c7
  4. 18 Oct, 2024 2 commits
  5. 17 Oct, 2024 5 commits
    • Jérome Perrin's avatar
    • Jérome Perrin's avatar
      software/mosquitto/test: fix flaky test · 4a8f846f
      Jérome Perrin authored
      This test is using two connection one with a client to subscribe to a
      topic and wait for message and another one with publish.single to
      publish to the topic.
      The test was failing from time to time because the publish might have
      happened after the client was subscribed.
      
      Refactor the test to use `loop` on the client to have more control
      and be able to wait for the client to be subscribed using the
      `on_subscribe` callback.
      
      The test is also factorized, instead of having the same test twice for
      IPv4 and IPv6, we pass the host as parameter.
      4a8f846f
    • Jérome Perrin's avatar
      ERP5-py3: fix repozo backup generation · 8bff11cc
      Jérome Perrin authored
      See merge request !1665
      8bff11cc
    • Jérome Perrin's avatar
      stack/erp5: use repozo --kill-old-on-full when producing backups · ce34e0c1
      Jérome Perrin authored
      from repozo doc:
      
      > If a full backup is created, remove any prior full or incremental
      > backup files (and associated metadata files) from the repository
      > directory.
      
      This solves a problem that after a pack some old repozo files were left
      around, with this option they are automatically removed.
      ce34e0c1
    • Jérome Perrin's avatar
      stack/erp5: fix ZEO repozo backups not produced on python3 · c74efadc
      Jérome Perrin authored
      Products.TIDStorage was not ported to python3 and is not installed on
      software-py3.cfg but the backup crontab expects tidstorage to be
      present - as a result, it was silently failing to produce backups.
      
      This brings minimal support to repozo backups on python3, without
      Products.TIDStorage interraction and also extends software release test
      to have a simple test checking that backups are produced and can be
      restored.
      c74efadc
  6. 16 Oct, 2024 10 commits
  7. 15 Oct, 2024 7 commits
  8. 11 Oct, 2024 4 commits
  9. 10 Oct, 2024 4 commits
  10. 09 Oct, 2024 4 commits