Skip to content
Snippets Groups Projects
  1. May 13, 2024
  2. Apr 25, 2024
  3. Apr 22, 2024
  4. Mar 12, 2024
  5. Mar 05, 2024
  6. Dec 19, 2023
  7. Dec 13, 2023
  8. Nov 15, 2023
  9. Nov 14, 2023
    • Michal Nasiadka's avatar
      Introduce oneshot docker_restart_policy · cea076f3
      Michal Nasiadka authored
      docker_restart_policy: no causes systemd units to not get created
      and we use it in CI to disable restarts on services.
      
      Introducing oneshot policy to not create systemd unit for oneshot
      containers (those that are running bootstrap tasks, like db
      bootstrap and don't need a systemd unit), but still create systemd
      units for long lived containers but with Restart=No.
      
      Change-Id: I9e0d656f19143ec2fcad7d6d345b2c9387551604
      cea076f3
  10. Oct 06, 2023
  11. Aug 25, 2023
  12. Jun 28, 2023
  13. Jun 19, 2023
  14. Jun 17, 2023
  15. Apr 20, 2023
  16. Apr 19, 2023
    • Michal Arbet's avatar
      Trivial fix - add int filter for rabbitmq definitions · d1b24a41
      Michal Arbet authored
      Change-Id: I1d8021a1bc780449e3ca96183c6f4abaed17b382
      d1b24a41
    • Matt Crees's avatar
      Add precheck to fail if RabbitMQ HA needs configuring · a5331d32
      Matt Crees authored
      Currently, the process of enabling RabbitMQ HA with the variable
      ``om_enable_rabbitmq_high_availbility`` requires some manual steps to
      migrate from transient to mirrored queues. In preparation for setting
      this variable to ``True`` by default, this adds a precheck that will
      fail if a system is currently running non-mirrored queues and
      ``om_enable_rabbitmq_high_availbility`` is set to ``True``.
      
      Includes a helpful message informing the operator of their choice.
      Either follow the manual procedure to migrate the queues described in
      the docs, or set ``om_enable_rabbitmq_high_availbility`` to ``False``.
      
      The RabbitMQ HA section of the reference docs is updated to include
      these instructions.
      
      Change-Id: Ic5e64998bd01923162204f7bb289cc110187feec
      a5331d32
  17. Apr 13, 2023
    • Matt Crees's avatar
      Remove RabbitMQ ha-all policy when not required · c85b64d1
      Matt Crees authored
      With the addition of the variable
      `om_enable_rabbitmq_high_availability`, this feature in the upgrade
      task should be brought back. It is also now used in the deploy task. The
      `ha-all` policy is cleared only when
      `om_enable_rabbitmq_high_availability` is set to `false`.
      
      Change-Id: Ia056aa40e996b1f0fed43c0f672466c7e4a2f547
      c85b64d1
  18. Apr 12, 2023
  19. Mar 21, 2023
  20. Mar 06, 2023
    • Christian Berendt's avatar
      rabbitmq: add rabbitmq_datadir_volume parameter · a7812741
      Christian Berendt authored
      With the parameter rabbitmq_datadir_volume it is possible
      to use a directory as volume for the rabbitmq service. By default,
      a volume named rabbitmq is used (the previous default).
      
      Change-Id: I99d6bd71ca79cba81062dedfb767c5ed341bb182
      a7812741
  21. Feb 14, 2023
    • John Garbutt's avatar
      Improve RabbitMQ performance by reducing ha replicas · 6cf22b0c
      John Garbutt authored
      Currently we do not follow the RabbitMQ advice on replicas here:
      https://www.rabbitmq.com/ha.html#replication-factor
      
      Here we reduce the number of replicas to n // 2 + 1 as advised
      above. The hope it this helps speed up recovery from rabbit
      issues.
      
      Related-Bug: #1954925
      Change-Id: Ib6bcb26c499c9884faa4a0cd51abaec00cacb096
      6cf22b0c
    • Matt Crees's avatar
      Add flag to change RabbitMQ ha-mode definition · e13072a9
      Matt Crees authored
      Adds the flag `rabbitmq_ha_replica_count` to change how many different
      nodes a queue should be mirrored across. If the value is not set, then
      it defaults to "ha-mode":"all". This value is unset by default to avoid
      any unexpected changes to the RabbitMQ definitions.json file, as that
      would trigger an unexpected restart of RabbitMQ during the next deploy.
      
      Change-Id: Iee98cd937197a73a3b04aa8501fa325e8ecfff24
      e13072a9
  22. Feb 09, 2023
    • John Garbutt's avatar
      RabbitMQ: Support setting ha-promote-on-shutdown · 94f3ce0c
      John Garbutt authored
      By default ha-promote-on-shutdown=when-synced. However we are seeing
      issues with RabbitMQ automatically recovering when nodes are restarted.
      https://www.rabbitmq.com/ha.html#cluster-shutdown
      
      Rather than waiting for operator interventions, it is better we allow
      recovery to happen, even if that means we may loose some messages.
      A few failed and timed out operations is better than a totaly broken
      cloud. This is achieved using ha-promote-on-shutdown=always.
      
      Note, when a node failure is detected, this is already the default
      behaviour from 3.7.5 onwards:
      https://www.rabbitmq.com/ha.html#promoting-unsynchronised-mirrors
      
      This patch adds the option to change the ha-promote-on-shutdown
      definition, using the flag `rabbitmq_ha_promote_on_shutdown`. This
      value is unset by default to avoid any unexpected changes to the
      RabbitMQ definitions.json file, as that would trigger an unexpected
      restart of RabbitMQ during the next deploy.
      
      Related-Bug: #1954925
      
      Change-Id: I2146bda2c72ddac2c9923c6941b0596395fd9ab5
      94f3ce0c
  23. Jan 17, 2023
    • Michal Arbet's avatar
      Add ability to configure rabbitmq · 701dc20f
      Michal Arbet authored
      As rabbitmq's configuration file is not ini or yaml file,
      there is no option to extend configuration by new config
      options via merge_configs or merge_yaml.
      
      This patch moves config options to dictionary
      so it can be overriden in /etc/kolla/globals.yml.
      
      Change-Id: I5cd772f4fb80a0e200fb24d67be735ca81e3fdeb
      701dc20f
  24. Jan 13, 2023
    • Matt Crees's avatar
      Add a flag to handle RabbitMQ high availability · 09df6fc1
      Matt Crees authored
      A combination of durable queues and classic queue mirroring can be used
      to provide high availability of RabbitMQ. However, these options should
      only be used together, otherwise the system will become unstable. Using
      the flag ``om_enable_rabbitmq_high_availability`` will either enable
      both options at once, or neither of them.
      
      There are some queues that should not be mirrored:
      * ``reply`` queues (these have a single consumer and TTL policy)
      * ``fanout`` queues (these have a TTL policy)
      * ``amq`` queues (these are auto-delete queues, with a single consumer)
      An exclusionary pattern is used in the classic mirroring policy. This
      pattern is ``^(?!(amq\\.)|(.*_fanout_)|(reply_)).*``
      
      Change-Id: I51c8023b260eb40b2eaa91bd276b46890c215c25
      09df6fc1
  25. Jan 12, 2023
    • Mark Goddard's avatar
      Fix prechecks in check mode · 46aeb984
      Mark Goddard authored
      When running in check mode, some prechecks previously failed because
      they use the command module which is silently not run in check mode.
      Other prechecks were not running correctly in check mode due to e.g.
      looking for a string in empty command output or not querying which
      containers are running.
      
      This change fixes these issues.
      
      Closes-Bug: #2002657
      Change-Id: I5219cb42c48d5444943a2d48106dc338aa08fa7c
      46aeb984
  26. Jan 09, 2023
    • Erik Berg's avatar
      rabbitmq: Use assert on checks for readability · e0538c81
      Erik Berg authored
      assert will also fail when we're not meeting the conditions, makes
      clear what we're actually testing, and isn't listed as a skipped task
      when the condition is ok.
      
      Change-Id: I4c919b523dde2602c81179ab3d28b913650b4c9f
      e0538c81
  27. Dec 21, 2022
    • Matt Crees's avatar
      Integrate oslo-config-validator · 6c2aace8
      Matt Crees authored
      Regularly, we experience issues in Kolla Ansible deployments because we
      use wrong options in OpenStack configuration files. This is because
      OpenStack services ignore unknown options. We also need to keep on top
      of deprecated options that may be removed in the future. Integrating
      oslo-config-validator into Kolla Ansible will greatly help.
      
      Adds a shared role to run oslo-config-validator on each service. Takes
      into account that services have multiple containers, and these may also
      use multiple config files. Service roles are extended to use this shared
      role. Executed with the new command ``kolla-ansible validate-config``.
      
      Change-Id: Ic10b410fc115646d96d2ce39d9618e7c46cb3fbc
      6c2aace8
  28. Nov 02, 2022
  29. Oct 28, 2022
  30. Aug 09, 2022
  31. Jul 27, 2022
  32. Jul 25, 2022
    • Michal Nasiadka's avatar
      Fix var-spacing · dcf5a8b6
      Michal Nasiadka authored
      ansible-lint introduced var-spacing - let's fix our code.
      
      Change-Id: I0d8aaf3c522a5a6a5495032f6dbed8a2be0251f0
      dcf5a8b6
  33. May 23, 2022
  34. Apr 20, 2022
  35. Mar 24, 2022
Loading