Skip to content
Snippets Groups Projects
  1. 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
  2. Jun 28, 2023
  3. 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
  4. 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
  5. Dec 01, 2022
  6. 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
  7. Nov 04, 2022
  8. Nov 02, 2022
  9. Aug 09, 2022
  10. 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
  11. Jun 27, 2022
  12. Jun 08, 2022
  13. May 23, 2022
  14. 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
  15. Apr 20, 2022
  16. 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
  17. 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
  18. Feb 14, 2022
  19. 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
  20. Dec 09, 2021
  21. Oct 20, 2021
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. Oct 12, 2020
    • Radosław Piliszek's avatar
      Performance: optimize genconfig · 3411b9e4
      Radosław Piliszek authored
      Config plays do not need to check containers. This avoids skipping
      tasks during the genconfig action.
      
      Ironic and Glance rolling upgrades are handled specially.
      
      Swift and Bifrost do not use the handlers at all.
      
      Partially-Implements: blueprint performance-improvements
      Change-Id: I140bf71d62e8f0932c96270d1f08940a5ba4542a
      3411b9e4
  31. Aug 28, 2020
  32. Aug 19, 2020
    • Rafael Weingärtner's avatar
      Standardize use and construction of endpoint URLs · f425c067
      Rafael Weingärtner authored
      
      The goal for this push request is to normalize the construction and use
       of internal, external, and admin URLs. While extending Kolla-ansible
       to enable a more flexible method to manage external URLs, we noticed
       that the same URL was constructed multiple times in different parts
       of the code. This can make it difficult for people that want to work
       with these URLs and create inconsistencies in a large code base with
       time. Therefore, we are proposing here the use of
       "single Kolla-ansible variable" per endpoint URL, which facilitates
       for people that are interested in overriding/extending these URLs.
      
      As an example, we extended Kolla-ansible to facilitate the "override"
      of public (external) URLs with the following standard
      "<component/serviceName>.<companyBaseUrl>".
      Therefore, the "NAT/redirect" in the SSL termination system (HAproxy,
      HTTPD or some other) is done via the service name, and not by the port.
      This allows operators to easily and automatically create more friendly
       URL names. To develop this feature, we first applied this patch that
       we are sending now to the community. We did that to reduce the surface
        of changes in Kolla-ansible.
      
      Another example is the integration of Kolla-ansible and Consul, which
      we also implemented internally, and also requires URLs changes.
      Therefore, this PR is essential to reduce code duplicity, and to
      facility users/developers to work/customize the services URLs.
      
      Change-Id: I73d483e01476e779a5155b2e18dd5ea25f514e93
      Signed-off-by: default avatarRafael Weingärtner <rafael@apache.org>
      f425c067
  33. Aug 10, 2020
    • Mark Goddard's avatar
      Mount /etc/timezone based on host OS · 146b00ef
      Mark Goddard authored
      Previously we mounted /etc/timezone if the kolla_base_distro is debian
      or ubuntu. This would fail prechecks if debian or ubuntu images were
      deployed on CentOS. While this is not a supported combination, for
      correctness we should fix the condition to reference the host OS rather
      than the container OS, since that is where the /etc/timezone file is
      located.
      
      Change-Id: Ifc252ae793e6974356fcdca810b373f362d24ba5
      Closes-Bug: #1882553
      146b00ef
  34. Jul 28, 2020
    • Mark Goddard's avatar
      Performance: use import_tasks for check-containers.yml · 9702d4c3
      Mark Goddard authored
      Including tasks has a performance penalty when compared with importing
      tasks. If the include has a condition associated with it, then the
      overhead of the include may be lower than the overhead of skipping all
      imported tasks. In the case of the check-containers.yml include, the
      included file only has a single task, so the overhead of skipping this
      task will not be greater than the overhead of the task import. It
      therefore makes sense to switch to use import_tasks there.
      
      Partially-Implements: blueprint performance-improvements
      
      Change-Id: I65d911670649960708b9f6a4c110d1a7df1ad8f7
      9702d4c3
  35. Jul 27, 2020
    • Doug Szumski's avatar
      Improve Grafana DB bootstrap · 2c730590
      Doug Szumski authored
      This fixes an issue where multiple Grafana instances would race
      to bootstrap the Grafana DB. The following changes are made:
      
      - Only start additional Grafana instances after the DB has been
        configured.
      
      - During upgrade, don't allow old instances to run with an
        upgraded DB schema.
      
      Change-Id: I3e0e077ba6a6f43667df042eb593107418a06c39
      Closes-Bug: #1888681
      2c730590
  36. Jul 07, 2020
    • Mark Goddard's avatar
      Performance: Run common role in a separate play · 56ae2db7
      Mark Goddard authored
      The common role was previously added as a dependency to all other roles.
      It would set a fact after running on a host to avoid running twice. This
      had the nice effect that deploying any service would automatically pull
      in the common services for that host. When using tags, any services with
      matching tags would also run the common role. This could be both
      surprising and sometimes useful.
      
      When using Ansible at large scale, there is a penalty associated with
      executing a task against a large number of hosts, even if it is skipped.
      The common role introduces some overhead, just in determining that it
      has already run.
      
      This change extracts the common role into a separate play, and removes
      the dependency on it from all other roles. New groups have been added
      for cron, fluentd, and kolla-toolbox, similar to other services. This
      changes the behaviour in the following ways:
      
      * The common role is now run for all hosts at the beginning, rather than
        prior to their first enabled service
      * Hosts must be in the necessary group for each of the common services
        in order to have that service deployed. This is mostly to avoid
        deploying on localhost or the deployment host
      * If tags are specified for another service e.g. nova, the common role
        will *not* automatically run for matching hosts. The common tag must
        be specified explicitly
      
      The last of these is probably the largest behaviour change. While it
      would be possible to determine which hosts should automatically run the
      common role, it would be quite complex, and would introduce some
      overhead that would probably negate the benefit of splitting out the
      common role.
      
      Partially-Implements: blueprint performance-improvements
      
      Change-Id: I6a4676bf6efeebc61383ec7a406db07c7a868b2a
      56ae2db7
  37. Jun 15, 2020
    • Radosław Piliszek's avatar
      Fix Grafana datasource update · 7bd88050
      Radosław Piliszek authored
      Grafana changed the error message wording.
      Match on the shortest sane string to play it safe.
      
      Change-Id: Ic175ebdb1da6ef66047309ff07bcbba98fc67008
      Closes-Bug: #1881890
      7bd88050
  38. Apr 14, 2020
    • James Kirsch's avatar
      Refactor copy certificates task · 4d155d69
      James Kirsch authored
      Refactor service configuration to use the copy certificates task. This
      reduces code duplication and simplifies implementing encrypting backend
      HAProxy traffic for individual services.
      
      Change-Id: I0474324b60a5f792ef5210ab336639edf7a8cd9e
      4d155d69
  39. Apr 09, 2020
    • Dincer Celik's avatar
      Introduce /etc/timezone to Debian/Ubuntu containers · 4b5df0d8
      Dincer Celik authored
      Some services look for /etc/timezone on Debian/Ubuntu, so we should
      introduce it to the containers.
      
      In addition, added prechecks for /etc/localtime and /etc/timezone.
      
      Closes-Bug: #1821592
      Change-Id: I9fef14643d1bcc7eee9547eb87fa1fb436d8a6b3
      4b5df0d8
Loading