Skip to content
Snippets Groups Projects
  1. Jan 24, 2025
  2. 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
  3. 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>
      4178f02e
  4. Oct 20, 2021
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. Mar 10, 2020
    • yj.bai's avatar
      Add notify restart container when cert changed · d3cc2f67
      yj.bai authored
      
      When change the cert file in /etc/kolla/certificate/.
      The certificate in the container has not changed.
      So I think can use kolla-ansible deploy when certificate is
      changed. restart <container>
      
      Partially-Implements: blueprint custom-cacerts
      
      Change-Id: Iaac6f37e85ffdc0352e8062ae5049cc9a6b3db26
      Signed-off-by: default avataryj.bai <bai.yongjun@99cloud.net>
      d3cc2f67
  11. Jan 28, 2020
    • James Kirsch's avatar
      Copy CA into containers. · 511ba9f6
      James Kirsch authored
      When kolla_copy_ca_into_containers is set to "yes", the Certificate
      Authority in /etc/kolla/certificates will be copied into service
      containers to enable trust for that CA. This is especially useful when
      the CA is self signed, and would not be trusted by default.
      
      Partially-Implements: blueprint custom-cacerts
      
      Change-Id: I4368f8994147580460ebe7533850cf63a419d0b4
      511ba9f6
  12. Nov 22, 2019
    • Michal Nasiadka's avatar
      Change local_action to delegate_to: localhost · 10099311
      Michal Nasiadka authored
      As part of the effort to implement Ansible code linting in CI
      (using ansible-lint) - we need to implement recommendations from
      ansible-lint output [1].
      
      One of them is to stop using local_action in favor of delegate_to -
      to increase readability and and match the style of typical ansible
      tasks.
      
      [1]: https://review.opendev.org/694779/
      
      Partially implements: blueprint ansible-lint
      
      Change-Id: I46c259ddad5a6aaf9c7301e6c44cd8a1d5c457d3
      10099311
  13. Sep 26, 2019
    • Kris Lindgren's avatar
      Add a job that *only* deploys updated containers · 2fe0d98e
      Kris Lindgren authored
      Sometimes as cloud admins, we want to only update code that is running
      in a cloud.  But we dont need to do anything else.  Make an action in
      kolla-ansible that allows us to do that.
      
      Change-Id: I904f595c69f7276e71692696471e32fd1f88e6e8
      Implements: blueprint deploy-containers-action
      2fe0d98e
  14. Sep 25, 2019
  15. Jun 27, 2019
    • Mark Goddard's avatar
      Simplify handler conditionals · de00bf49
      Mark Goddard authored
      Currently, we have a lot of logic for checking if a handler should run,
      depending on whether config files have changed and whether the
      container configuration has changed. As rm_work pointed out during
      the recent haproxy refactor, these conditionals are typically
      unnecessary - we can rely on Ansible's handler notification system
      to only trigger handlers when they need to run. This removes a lot
      of error prone code.
      
      This patch removes conditional handler logic for all services. It is
      important to ensure that we no longer trigger handlers when unnecessary,
      because without these checks in place it will trigger a restart of the
      containers.
      
      Implements: blueprint simplify-handlers
      
      Change-Id: I4f1aa03e9a9faaf8aecd556dfeafdb834042e4cd
      de00bf49
  16. Apr 02, 2019
    • Mark Goddard's avatar
      Fix up config file permissions on the host · a4bb8567
      Mark Goddard authored
      Several config file permissions are incorrect on the host. In general,
      files should be 0660, and directories and executables 0770.
      
      Change-Id: Id276ac1864f280554e98b937f2845bb424d521de
      Closes-Bug: #1821579
      a4bb8567
  17. Jul 25, 2018
  18. Jun 08, 2018
  19. May 16, 2018
  20. May 11, 2018
    • Jeffrey Zhang's avatar
      Fix ansible warning · c5670551
      Jeffrey Zhang authored
      - rename action and serial to kolla_ansible and kolla_serial
      - use become instead of "sudo <command>" in shell
      - Remove quota for failed_when and changed_when in rabbitmq tasks
      
      Change-Id: I78cb60168aaa40bb6439198283546b7faf33917c
      Implements: blueprint migrate-to-ansible-2-2-0
      c5670551
  21. May 03, 2018
    • Mark Giles's avatar
      Automatically add Prometheus as a Grafana datasource · 6777c903
      Mark Giles authored
      Assuming both Prometheus and Grafana are enabled, this change
      configures Grafana such that it can use data collected by the
      Prometheus server.
      
      Partially-Implements: blueprint prometheus
      Change-Id: I0290806d0c622b1de33cf7047f099795b4c780b9
      6777c903
  22. Apr 13, 2018
  23. Mar 12, 2018
    • Duong Ha-Quang's avatar
      Specify 'become' for only neccesary tasks (all other roles) · 9965cc46
      Duong Ha-Quang authored
      Add become to only neccesary tasks in roles:
      
      - aodh
      - barbican
      - bifrost
      - ceilometer
      - ceph
      - chrony
      - cinder
      - cloudkitty
      - collectd
      - congress
      - designate
      - elasticsearch
      - etcd
      - freezer
      - gnocchi
      - grafana
      - influxdb
      - ironic
      - iscsi
      - karbor
      - kibana
      - kuryr
      - magnum
      - manila
      - mistral
      - mongodb
      - multipathd
      - murano
      - octavia
      - panko
      - qdrouterd
      - rally
      - sahara
      - searchlight
      - senlin
      - skydive
      - solum
      - swift
      - swift
      - tacker
      - telegraf
      - tempest
      - trove
      - vmtp
      - watcher
      - zun
      
      Change-Id: I6e32d94d4172dd96d09d8609e8a5221ab5586a31
      Partial-Implements: blueprint ansible-specific-task-become
      9965cc46
  24. Jul 24, 2017
  25. Jun 15, 2017
    • Jeffrey Zhang's avatar
      Use unified vars in task · 03e1b05f
      Jeffrey Zhang authored
      Ansible task support vars directive, no need implement another one in
      merge_config. This patch remove the vars directive in merge_config
      action plugin.
      
      Change-Id: I33648a2b6e39b4d49ce76eb66fbf2522721f8c68
      03e1b05f
  26. Jan 25, 2017
  27. Sep 14, 2016
Loading