Skip to content
Snippets Groups Projects
  1. Jan 24, 2025
  2. Aug 12, 2024
    • Ivan Halomi's avatar
      Refactor of kolla_container_facts · 4ce47e22
      Ivan Halomi authored
      
      Refactor that prepares kolla_container_facts
      module for introducing more actions that will be moved
      from kolla_container module and kolla_container_volume_facts.
      
      This change is based on a discussion about adding a new action
      to kolla_container module that retrieves all names of the running
      containers. It was agreed that kolla-ansible should follow Ansible's
      direction of splitting modules between action modules and facts
      modules. Because of this, kolla_container_facts needs to be able
      to handle different requests for data about containers or volumes.
      
      Change-Id: Ieaec8f64922e4e5a2199db2d6983518b124cb4aa
      Signed-off-by: default avatarIvan Halomi <ivan.halomi@tietoevry.com>
      4ce47e22
  3. Jul 19, 2024
    • Michal Arbet's avatar
      Add support for docker_image_name_prefix · ae86e3a0
      Michal Arbet authored
      The Kolla project supports building images with
      user-defined prefixes. However, Kolla-ansible is unable
      to use those images for installation.
      
      This patch fixes that issue.
      
      Closes-Bug: #2073541
      Change-Id: Ia8140b289aa76fcd584e0e72686e3786215c5a99
      ae86e3a0
  4. Jun 28, 2024
    • Roman Krček's avatar
      Performance: use filters for service dicts · fb3a8f5f
      Roman Krček authored
      Most roles are not leveraging the jinja filters available.
      According to [1] filtering the list of services makes the execution
      faster than skipping the tasks.
      
      This patchset also includes some cosmetic changes to genconfig.
      Individual services are now also using a jinja filter. This has
      no impact on performance, just makes the tasks look cleaner.
      
      Naming of some vars in genconfig was changed to "service" to make
      the tasks more uniform as some were previously using
      the service name and some were using "service".
      
      Three metrics from the deployment were taken and those were
      - overall deployment time [s]
      - time spent on the specific role [s]
      - CPU usage (measured with perf) [-]
      Overall genconfig time went down on avg. from 209s to 195s
      Time spent on the loadbalancer role went down on avg. from 27s to 23s
      Time spent on the neutron role went down on avg from 102s to 95s
      Time spent on the nova-cell role went down on avg. from 54s to 52s
      Also the average CPUs utilized reported by perf went down
      from 3.31 to 3.15.
      For details of how this was measured see the comments in gerrit.
      
      [1] - https://github.com/stackhpc/ansible-scaling/blob/master/doc/skip.md
      
      
      
      Change-Id: Ib0f00aadb6c7022de6e8b455ac4b9b8cd6be5b1b
      Signed-off-by: default avatarRoman Krček <roman.krcek@tietoevry.com>
      fb3a8f5f
  5. Jun 10, 2024
    • Jan Horstmann's avatar
      Fix redundant extra config files in grafana role · 4178f02e
      Jan Horstmann authored
      
      Task `Check if extra configuration file exists` picks up all files in
      `{{ node_custom_config }}/grafana` including those that get handled
      specially later on.
      While `prometheus.yml` and `provisioning.yml` are best excluded from
      extra config , because their treatment requires more than just copying,
      `grafana_home_dashboard.json` may simply be treated as extra config,
      which saves the execution of two additional tasks.
      
      Closes-Bug: 2067999
      
      Change-Id: I7bce1fe3d0a96816f1782107b202d6dac7d1291d
      Signed-off-by: default avatarJan Horstmann <horstmann@osism.tech>
      Unverified
      4178f02e
  6. Mar 18, 2024
  7. Mar 15, 2024
  8. Feb 12, 2024
    • Dawud's avatar
      Remove the `grafana` volume · 8962b408
      Dawud authored
      Fixes not being able to add additional plugins at build time due to the
      `grafana` volume being mounted over the existing `/var/lib/grafana`
      directory. This is fixed by copying the dashboards into the container
      from an existing bind mount instead of using the ``grafana`` volume.
      This however leaves behind the volume which should be removed with
      `docker volume rm grafana` or by setting `grafana_remove_old_volume` to
      `True`.
      
      Closes-Bug: #2039498
      Change-Id: Ibcffa5d8922c470f655f447558d4a9c73b1ba361
      Unverified
      8962b408
  9. Nov 17, 2023
  10. Nov 15, 2023
  11. Nov 07, 2023
    • Will Szumski's avatar
      Support exposing prometheus_server externally · 37c2ab2a
      Will Szumski authored
      This avoids the need to use a proxy, or some other means, to connect to
      Prometheus. This is disabled by default and can be enabled by setting
      enable_prometheus_server_external to true.
      
      Change-Id: Ia0af044ff436c2a204b357750a16ff49fcdfec45
      37c2ab2a
  12. Jun 28, 2023
  13. 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
  14. 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
  15. Dec 01, 2022
  16. Nov 11, 2022
    • Doug Szumski's avatar
      Remove support for deploying OpenStack Monasca · adb8f89a
      Doug Szumski authored
      Kolla Ansible is switching to OpenSearch and is dropping support for
      deploying ElasticSearch. This is because the final OSS release of
      ElasticSearch has exceeded its end of life.
      
      Monasca is affected because it uses both Logstash and ElasticSearch.
      Whilst it may continue to work with OpenSearch, Logstash remains an
      issue.
      
      In the absence of any renewed interest in the project, we remove
      support for deploying it. This helps to reduce the complexity
      of log processing configuration in Kolla Ansible, freeing up
      development time.
      
      Change-Id: I6fc7842bcda18e417a3fd21c11e28979a470f1cf
      adb8f89a
  17. Nov 04, 2022
  18. Nov 02, 2022
  19. Aug 09, 2022
  20. 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
  21. Jun 27, 2022
  22. Jun 08, 2022
  23. May 23, 2022
  24. May 02, 2022
    • Pierre Riteau's avatar
      Fix typos in docs · 555cd39f
      Pierre Riteau authored
      This is a follow up to I7e5c1e20c7b66b64cbd333f669ef8d8da60daaa8.
      
      Change-Id: I11a86f59c1fb9cddde3370b544ee7bf4e8ae4fb4
      555cd39f
  25. Apr 20, 2022
  26. Mar 25, 2022
    • Jan Horstmann's avatar
      Change grafana provisioning.yaml indentation · 3d91e69a
      Jan Horstmann authored
      This commit changes the indentation scheme used in
      `ansible/roles/grafana/templates/provisioning.yaml.j2` to the commonly
      used pattern of two whitespaces.
      
      Change-Id: I2f9d34930ed06aa2e63f7cc28bfdda7046fc3e67
      3d91e69a
  27. Feb 22, 2022
    • Pierre Riteau's avatar
      Remove grafana [session] configuration · f3756282
      Pierre Riteau authored
      These configuration settings were removed in Grafana 6.2. Instead we can
      use [remote_cache], but it is not required since it will use database
      settings by default.
      
      Change-Id: I37966027aea9039b2ecba4214444507e9d87f513
      f3756282
  28. Feb 14, 2022
  29. Dec 31, 2021
    • Pierre Riteau's avatar
      Move project_name and kolla_role_name to role vars · 56fc74f2
      Pierre Riteau authored
      Role vars have a higher precedence than role defaults. This allows to
      import default vars from another role via vars_files without overriding
      project_name (see related bug for details).
      
      Change-Id: I3d919736e53d6f3e1a70d1267cf42c8d2c0ad221
      Related-Bug: #1951785
      56fc74f2
  30. Dec 09, 2021
  31. Oct 20, 2021
  32. Aug 10, 2021
    • Radosław Piliszek's avatar
      Refactor and optimise image pulling · 9ff2ecb0
      Radosław Piliszek authored
      We get a nice optimisation by using a filtered loop instead
      of task skipping per service with 'when'.
      
      Partially-Implements: blueprint performance-improvements
      Change-Id: I8f68100870ab90cb2d6b68a66a4c97df9ea4ff52
      9ff2ecb0
  33. Jun 23, 2021
    • Mark Goddard's avatar
      Use ansible_facts to reference facts · ade5bfa3
      Mark Goddard authored
      By default, Ansible injects a variable for every fact, prefixed with
      ansible_. This can result in a large number of variables for each host,
      which at scale can incur a performance penalty. Ansible provides a
      configuration option [0] that can be set to False to prevent this
      injection of facts. In this case, facts should be referenced via
      ansible_facts.<fact>.
      
      This change updates all references to Ansible facts within Kolla Ansible
      from using individual fact variables to using the items in the
      ansible_facts dictionary. This allows users to disable fact variable
      injection in their Ansible configuration, which may provide some
      performance improvement.
      
      This change disables fact variable injection in the ansible
      configuration used in CI, to catch any attempts to use the injected
      variables.
      
      [0] https://docs.ansible.com/ansible/latest/reference_appendices/config.html#inject-facts-as-vars
      
      Change-Id: I7e9d5c9b8b9164d4aee3abb4e37c8f28d98ff5d1
      Partially-Implements: blueprint performance-improvements
      ade5bfa3
  34. Apr 27, 2021
    • Doug Szumski's avatar
      Remove Monasca Grafana service · 82cf40ed
      Doug Szumski authored
      In the Xena cycle it was decided to remove the Monasca
      Grafana fork due to lack of maintenance. This commit removes
      the service and provides a limited workaround using the
      Monasca Grafana datasource with vanilla Grafana.
      
      Depends-On: I9db7ec2df050fa20317d84f6cea40d1f5fd42e60
      Change-Id: I4917ece1951084f6665722ba9a91d47764d3709a
      82cf40ed
  35. Apr 19, 2021
    • Doug Szumski's avatar
      Extend support for custom Grafana dashboards · d01192c1
      Doug Szumski authored
      The current behaviour is to support supplying a single
      folder of Grafana dashboards which can then be populated
      into a single folder in Grafana. Some users may wish
      to have sub-folders of Dashboards, and load these into
      separate dashboard folders in Grafana via a custom
      provisioning file. For example, a user may have a
      sub-folder of Ceph dashboards that they wish to keep
      separate from OpenStack dashboards. This patch supports
      sub-folders whilst not affecting the original mechanism.
      
      Trivial-Fix
      
      Change-Id: I9cd289a1ea79f00cee4d2ef30cbb508ac73f9767
      d01192c1
  36. Mar 16, 2021
    • Bartosz Bezak's avatar
      Add support for custom grafana dashboards · a9e30382
      Bartosz Bezak authored
      Allow users to import custom grafana dashboards.
      Dashboards as JSON files should be placed into
      "{{ node_custom_config }}/grafana/dashboards/" folder.
      
      Change-Id: Id0f83b8d08541b3b74649f097b10c9450201b426
      a9e30382
  37. Jan 18, 2021
    • Will Szumski's avatar
      Do not wait for grafana to start when kolla_action=config · 31f97d6c
      Will Szumski authored
      Prior to this change it was not possible to generate the config
      before deploying the services as you'd hit:
      
      RUNNING HANDLER [Waiting for grafana to start on first node] *************************
      Monday 18 January 2021  15:06:35 +0000 (0:00:00.182)       0:04:39.213 ********
      skipping: [sv-h22a8-u19]
      skipping: [sv-h22a5-u36]
      FAILED - RETRYING: Waiting for grafana to start on first node (10 retries left).
      
      This would never succeed as the service has not yet been deployed.
      
      TrivialFix
      Change-Id: I9437a049b24e5e613a7e66add481a8983b84867a
      31f97d6c
  38. Dec 14, 2020
    • Mark Goddard's avatar
      Revert "Performance: Use import_tasks in the main plays" · db4fc85c
      Mark Goddard authored
      This reverts commit 9cae59be.
      
      Reason for revert: This patch was found to introduce issues with fluentd customisation. The underlying issue is not currently fully understood, but could be a sign of other obscure issues.
      
      Change-Id: Ia4859c23d85699621a3b734d6cedb70225576dfc
      Closes-Bug: #1906288
      db4fc85c
  39. Oct 27, 2020
    • Radosław Piliszek's avatar
      Performance: Use import_tasks in the main plays · 9cae59be
      Radosław Piliszek authored
      Main plays are action-redirect-stubs, ideal for import_tasks.
      
      This avoids 'include' penalty and makes logs/ara look nicer.
      
      Fixes haproxy and rabbitmq not to check the host group as well.
      
      Change-Id: I46136fc40b815e341befff80b54a91ef431eabc0
      Partially-Implements: blueprint performance-improvements
      9cae59be
Loading