Skip to content
Snippets Groups Projects
  1. Aug 16, 2019
    • Scott Solkhon's avatar
      Support configuration of trusted CA certificate file · 09e02ef8
      Scott Solkhon authored
      This commit adds the functionality for an operator to specify
      their own trusted CA certificate file for interacting with the
      Keystone API.
      
      Implements: blueprint support-trusted-ca-certificate-file
      Change-Id: I84f9897cc8e107658701fb309ec318c0f805883b
      09e02ef8
  2. Jul 18, 2019
    • Radosław Piliszek's avatar
      Fix handling of docker restart policy · 6a737b19
      Radosław Piliszek authored
      Docker has no restart policy named 'never'. It has 'no'.
      This has bitten us already (see [1]) and might bite us again whenever
      we want to change the restart policy to 'no'.
      
      This patch makes our docker integration honor all valid restart policies
      and only valid restart policies.
      All relevant docker restart policy usages are patched as well.
      
      I added some FIXMEs around which are relevant to kolla-ansible docker
      integration. They are not fixed in here to not alter behavior.
      
      [1] https://review.opendev.org/667363
      
      
      
      Change-Id: I1c9764fb9bbda08a71186091aced67433ad4e3d6
      Signed-off-by: default avatarRadosław Piliszek <radoslaw.piliszek@gmail.com>
      6a737b19
  3. Jul 12, 2019
    • Mark Goddard's avatar
      During deploy, always sync DB · d5e5e885
      Mark Goddard authored
      A common class of problems goes like this:
      
      * kolla-ansible deploy
      * Hit a problem, often in ansible/roles/*/tasks/bootstrap.yml
      * Re-run kolla-ansible deploy
      * Service fails to start
      
      This happens because the DB is created during the first run, but for some
      reason we fail before performing the DB sync. This means that on the second run
      we don't include ansible/roles/*/tasks/bootstrap_service.yml because the DB
      already exists, and therefore still don't perform the DB sync. However this
      time, the command may complete without apparent error.
      
      We should be less careful about when we perform the DB sync, and do it whenever
      it is necessary. There is an argument for not doing the sync during a
      'reconfigure' command, although we will not change that here.
      
      This change only always performs the DB sync during 'deploy' and
      'reconfigure' commands.
      
      Change-Id: I82d30f3fcf325a3fdff3c59f19a1f88055b566cc
      Closes-Bug: #1823766
      Closes-Bug: #1797814
      d5e5e885
  4. 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
  5. Jun 06, 2019
    • Mark Goddard's avatar
      Use become for all docker tasks · b123bf66
      Mark Goddard authored
      Many tasks that use Docker have become specified already, but
      not all. This change ensures all tasks that use the following
      modules have become:
      
      * kolla_docker
      * kolla_ceph_keyring
      * kolla_toolbox
      * kolla_container_facts
      
      It also adds become for 'command' tasks that use docker CLI.
      
      Change-Id: I4a5ebcedaccb9261dbc958ec67e8077d7980e496
      b123bf66
  6. Nov 26, 2018
    • Eduardo Gonzalez's avatar
      Support stop specific containers · 1a682fab
      Eduardo Gonzalez authored
      With this change, an operator may be able to stop a
      service container without stopping all services in a host.
      This change is the starting point to start
      fast-forward upgrades support.
      In next changes new flags will be introducced to disable
      stop dataplane services during upgrades.
      
      Change-Id: Ifde7a39d7d8596ef0d7405ecf1ac1d49a459d9ef
      Implements: blueprint support-stop-containers
      1a682fab
  7. Sep 26, 2018
    • Adam Harwell's avatar
      Refactor haproxy config (split by service) V2.0 · f1c81365
      Adam Harwell authored
      Having all services in one giant haproxy file makes altering
      configuration for a service both painful and dangerous. Each service
      should be configured with a simple set of variables and rendered with a
      single unified template.
      
      Available are two new templates:
      
      * haproxy_single_service_listen.cfg.j2: close to the original style, but
      only one service per file
      * haproxy_single_service_split.cfg.j2: using the newer haproxy syntax
      for separated frontend and backend
      
      For now the default will be the single listen block, for ease of
      transition.
      
      Change-Id: I6e237438fbc0aa3c89a3c8bd706a53b74e71904b
      f1c81365
  8. Aug 14, 2018
  9. Jul 26, 2018
    • Lakshmi Prasanna Goutham Pratapa's avatar
      Apply Resource Constraints to Services. · 14bf5247
      Lakshmi Prasanna Goutham Pratapa authored
      This commit is to apply resource-constraints to a few more OpenStack services.
      Commit to  apply constraints to the last set of services will be made in
      the upcoming commit.
      
      Depends-on: Icafa54baca24d2de64238222a5677b9d8b90e2aa
      Change-Id: I39004f54281f97d53dfa4b1dbcf248650ad6f186
      14bf5247
  10. Jul 25, 2018
  11. Jun 08, 2018
  12. May 14, 2018
  13. 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
  14. Apr 24, 2018
  15. Apr 16, 2018
    • Jeffrey Zhang's avatar
      Remove useless module_extra_vars in registry.yml · 84ade4e1
      Jeffrey Zhang authored
      - remove uesless module_extra_vars, this is a historical issue. In the
        past, we use 'docker exec kolla_toolbox ansible xxx' to run module on
        target node, so complex data have to pass through extra_vars. Now we
        are using kolla_toolbox module, no need to use extra_vars anymore.
      - Remove some useless until.
      
      Change-Id: I72ed28001202917f9a82a1c3ea33cd6319911ec8
      84ade4e1
  16. 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
  17. Jan 23, 2018
    • Alexandru Bogdan Pica's avatar
      Implement external MariaDB and pre-configured Databases support · 8e3b7944
      Alexandru Bogdan Pica authored
      This change allows the following use cases:
      
      1. Using an already-configured MariaDB / MySQL server / Cluster
      2. Using already-created DB users, without requiring root DB access.
      
      Update: added external mariadb precheck
      
      Change-Id: I78b0d178306d7c5293b0bf53e445f19f18b4b824
      Implements: blueprint external-mariadb-support.
      Closes-Bug: #1603121
      8e3b7944
  18. Jan 22, 2018
  19. Jan 04, 2018
    • Michal Rostecki's avatar
      dev mode: Add support for magnum · 8533fc58
      Michal Rostecki authored
      Provide support fot kolla dev mode in Magnum. When
      'kolla_dev_mode' or 'magnum_dev_mode' variables are
      enabled, source code of Magnum project is cloned
      and bindmounted.
      
      Partially implements: blueprint mount-sources
      
      Change-Id: Id479bf4dc77ee4a2367c9c7d8f0f00de761b8c85
      8533fc58
  20. Oct 05, 2017
    • James McCarthy's avatar
      Update container_proxy with configurable proxy settings · 9369ad12
      James McCarthy authored
      For a deployment behind a firewall/proxy server some additional
      environment settings should be passed along, for containers
      such as magnum
      
      This commit adds three new properties;
       container_http_proxy
       container_https_proxy
       container_no_proxy
      
      In particular, the user will want to set container_http_proxy
      and container_https_proxy properties with the proxy server
      details.
      
      Closes-Bug: #1628335
      Change-Id: I0950a0467b4b68c38b13875eaf9cd433e64363cf
      9369ad12
    • Eduardo Gonzalez's avatar
      Fix deployment with public TLS enabled · 56374206
      Eduardo Gonzalez authored
      When deploying with tls enabled in public
      endpoints, ansible modules fails due SSL certificates
      are self-signed.
      
      This change adds a new variable to allow customization
      on which endpoints ansible should connect.
      Defaults to admin because admin auth parameters defaults
      to admin endpoint.
      
      Change-Id: Ic3ed58cf9c9579cae08a11bbfe6fce983b5a9cbc
      Closes-Bug: #1720995
      56374206
  21. Sep 13, 2017
    • Bertrand Lallau's avatar
      Simplify Openstack services configuration possibilities · a3dfdfc0
      Bertrand Lallau authored
      Actually Openstack services configuration can be overriden using many
      files:
      - /etc/kolla/config/<< service name >>/<< config file >>
      - /etc/kolla/config/<< service name >>/<<host>>/<< config file >>
      - /etc/kolla/config/global.conf
      - /etc/kolla/config/database.conf
      - /etc/kolla/config/messaging.conf
      
      Only per-service configuration is actually documented here:
      https://github.com/openstack/kolla-ansible/blob/master/doc/advanced-configuration.rst#L164
      
      Allowing to globally modify service configuration can be perform too,
      but it can be done in 3 different manners, all not documented:
      - /etc/kolla/config/global.conf
      - /etc/kolla/config/database.conf
      - /etc/kolla/config/messaging.conf
      
      database.conf and messaging.conf seems redundant with global.conf.
      In order to simplify codebase it seems logical to remove them.
      
      Documentation has been added for overriding configuration globally and
      release note has been added too.
      
      Closes-Bug: #1682479
      Change-Id: I5d922dfc0d938173bad34ac64e490b78db1b7e31
      a3dfdfc0
  22. Jul 05, 2017
    • Bertrand Lallau's avatar
      Avoid launching "local" actions too many times · a9113fc4
      Bertrand Lallau authored
      In order to speed up deployment time some "local" actions should be run
      only once using 'run_once: True'.
      This will decrease deployment time in case of multihost configuration.
      
      Change-Id: I6015d772d35c15e96c52f577013b6e41197cb41a
      a9113fc4
  23. Jun 20, 2017
    • caoyuan's avatar
      Fix the database user name for all roles · 36c530f9
      caoyuan authored
      when create database user, it should use
      database_user, not database_name.
      
      Change-Id: I4dfa01d1a5a46c5c58f1fc47b0be71b186462764
      Closes-Bug: #1698762
      36c530f9
  24. 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
  25. May 23, 2017
  26. May 04, 2017
    • Jeffrey Zhang's avatar
      Add timeout parameter for precheck tasks · b1f01561
      Jeffrey Zhang authored
      wait_for module waits 300 seconds for the port started or stopped.  This
      is meaningless and useless in precheck. This patch change timeout to 1
      seconds.
      
      Change-Id: I9b251ec4ba17ce446655917e8ef5e152ef947298
      Closes-Bug: #1688152
      b1f01561
  27. Mar 09, 2017
    • Paul Bourke's avatar
      Enable sanity checks from kolla-ansible · 5418ada1
      Paul Bourke authored
      Add a new subcommand 'check' to kolla-ansible, used to run the
      smoke/sanity checks.
      
      Add stub files to all services that don't currently have checks.
      
      Change-Id: I9f661c5fc51fd5b9b266f23f6c524884613dee48
      Partially-implements: blueprint sanity-check-container
      5418ada1
  28. Feb 23, 2017
    • t.goto's avatar
      magnum domain register error at setting domain id · d1417cd1
      t.goto authored
      Setting up Magnum fails at creating and setting magnum's trustee
      domain.
      The changes this patch introduces follow.
        - add registering trustee_domain
        - remove unnecessary set_fact as this variable is used only once
      
      Change-Id: I1c1ed8a20871fb4e9f153c6dd1431d9b6fd286a5
      Closes-Bug: #1667209
      d1417cd1
  29. Feb 14, 2017
    • caoyuan's avatar
      Add the missing condition for config.yml · 1c3c611f
      caoyuan authored
      - add "item.value.enabled | bool"
      - add "| bool" to keystone
      - add group check for searchlight
      
      Change-Id: Id4555a0a96ea1670e99c88a1da9d3e07bf253497
      1c3c611f
  30. Feb 04, 2017
  31. Feb 03, 2017
  32. Jan 26, 2017
  33. Jan 24, 2017
  34. Jan 12, 2017
  35. Jan 06, 2017
  36. Nov 29, 2016
    • Duong Ha-Quang's avatar
      Fix placement of policy.json · b5d1e4b4
      Duong Ha-Quang authored
      Currently, policy.json is put in
      "{{ node_config_directory }}/{{ service_name }}"
      in target nodes.
      
      Relocation policy.json to "{{ node_config_directory }}/{{ item }}"
      with item is corresponding service compoment config directory.
      
      Currently, the policy.json is copied to all services, but it
      should be reviewed and left only in neccesary service
      (at many cases, only API service needs that).
      
      Redundant files will be removed in follow up patchset.
      
      Change-Id: I0e997dccf4ec438c9c0436db71ec2fd06650f50d
      Closes-Bug: #1639686
      b5d1e4b4
  37. Nov 03, 2016
    • Jeffrey Zhang's avatar
      Move precheck into its own role · fa458019
      Jeffrey Zhang authored
      * Merge prechecks.yml and site.yml playbook
      * Create empty precheck.yml into all roles.
      
      Change-Id: I8a138558a26c0a2a66c5fd48ed37be657c99c1dd
      Implements: blueprint condition-pre-check
      fa458019
  38. Oct 28, 2016
    • Eduardo Gonzalez's avatar
      Custom policy files · ef1fd6b8
      Eduardo Gonzalez authored
      Allow operators to use their custom policy files.
      Avoid maintain policy files in kolla repos, only copying
      the files when an operator add their custom config.
      
      Implements: blueprint custom-policies
      Change-Id: Icf3c961b87cbc7a1f1dd2ffbfffcf271d151d862
      ef1fd6b8
  39. Oct 07, 2016
    • Martin Matyáš's avatar
      Fix genconfig and reconfigure for magnum · 4fa2508e
      Martin Matyáš authored
      Genconfig and reconfigure failing for magnum.
      Chainging magnum trust configuretion parameters
      to user/domain names instead of ids so they don't
      depend on register.yml task anymore.
      
      Change-Id: I55fddf48eafc44892fd0ab96835bfb0b51849d37
      Closes-bug: #1630248
      4fa2508e
Loading