Skip to content
Snippets Groups Projects
  1. Nov 19, 2018
    • caoyuan's avatar
      Use correct variable for default certificate paths · 9223deee
      caoyuan authored
      The variable {{ node_config_directory }} is used for the configuration
      directory on the remote hosts, and should not be used for paths on the
      deploy host (localhost).
      
      This changes the default value of the TLS certificate and CA file to
      reference {{ CONFIG_DIR }}, in line with the directory used for
      admin-openrc.sh (as of I0709482ead4b7a67e82796e17f85bde151e71bc0).
      
      This change also introduces a variable, {{ node_config }}, that
      references {{ CONFIG_DIR | default('/etc/kolla') }}, to remove
      duplication.
      
      Change-Id: Ibd82ac78630ebfff5824c329d7399e1e900c0ee0
      Closes-Bug: #1804025
      9223deee
  2. 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
  3. Aug 14, 2018
  4. Aug 13, 2018
    • caoyuan's avatar
      Update usage of "|" to "is" · 471985dc
      caoyuan authored
      With the more recent versions of ansible, we should now use
      "is" instead of the "|"
      
      This should update it.
      
      Change-Id: I6fba56fca182349972e8b0ee5452b37aa4090e0c
      471985dc
  5. 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
  6. Jul 25, 2018
  7. Jun 27, 2018
    • caoyuan's avatar
      Add the role enabled check for some projects · 2b3a0468
      caoyuan authored
      1. Add the role enabled check for some projects
      2. adjust the file created positon for keystone to keep
      consistence with others
      
      Change-Id: Id2b893ba546b3adf41d97927f8d20dca403a0457
      2b3a0468
  8. Jun 12, 2018
  9. Jun 08, 2018
  10. 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
  11. 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
  12. Mar 29, 2018
    • Martin Chlumsky's avatar
      Add common_options to keystone container check · 735012c4
      Martin Chlumsky authored
      keystone_* containers are created via the kolla_docker ansible module
      with common_options set to docker_common_options. However, when the
      containers are checked, common_options are not passed to the
      kolla_docker ansible module. This can cause the keystone_* containers
      to be restarted during a reconfigure when there are no changes to
      keystone configuration.
      
      Add the common_options argument to the kolla_docker ansible module when
      checking the keystone containers and set it to docker_common_options.
      
      Change-Id: I44aefcf3d71faecaf1ffe384fd5a2f611e584a37
      Closes-Bug: #1759922
      735012c4
  13. Feb 09, 2018
    • Alexandru Bogdan Pica's avatar
      Fix MySQL access denied error during upgrade · 9822bb53
      Alexandru Bogdan Pica authored
      This change makes it so that if preconfigured database users are used,
      the attempt to change the log_bin_trust_function_creators mysql
      variable isn't made anymore.
      
      Also updated the upgrade docs
      
      Change-Id: I356313952d435de6d3b5444c0dd8a71f45aee452
      Closes-Bug: 1748269
      9822bb53
  14. Jan 29, 2018
  15. 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
  16. Jan 09, 2018
    • Michal Rostecki's avatar
      dev mode: Add support for keystone · 307d324f
      Michal Rostecki authored
      Provide support fot kolla dev mode in Keystone. When
      'kolla_dev_mode' or 'keystone_dev_mode' variables are
      enabled, source code of Keystone project is cloned
      and bindmounted.
      
      Partially implements: blueprint mount-sources
      
      Change-Id: Ie4cf401ecd9a507e739a53dfdf16f65292ab57e5
      307d324f
  17. Nov 16, 2017
  18. Nov 12, 2017
  19. Oct 31, 2017
    • Duong Ha-Quang's avatar
      Specify 'become' for only necessary tasks (default roles) · 2d3866c6
      Duong Ha-Quang authored
      Add become to only neccesary tasks in roles:
      - glance
      - heat
      - horizon
      - keystone
      - neutron
      - nova
      - openvswitch
      
      Gate is also updated to use 'become' feature
      
      Change-Id: I2f3f27306e9f384148e1ad4d54d8da2ebef34d00
      Partial-Implements: blueprint ansible-specific-task-become
      2d3866c6
  20. Oct 05, 2017
    • 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 26, 2017
    • Eduardo Gonzalez's avatar
      Wait keystone_fernet running before init tokens · ca82b298
      Eduardo Gonzalez authored
      Init fernet task fails if keystone_fernet container
      is not running and ssh port bind.
      This change add a check to ensure all keystone_fernet containers
      are running before init fernet tokens.
      
      Change-Id: Ib95bb5a47a9174f1a00b82cc8b697c0dc19c848e
      Closes-Bug: #1704758
      ca82b298
  23. Jul 10, 2017
    • Bertrand Lallau's avatar
      Clean some Boolean condition checks · 8b5b3cef
      Bertrand Lallau authored
      * "bool" filter is removed when not required
      * 'not' is used instead of '== False' check
      
      Change-Id: I85a5bb9a5ea874ac1c397cbf8de416147d2424c3
      8b5b3cef
    • Noboru Iwamatsu's avatar
      delete delimiter from init fernet condition check · 2182e563
      Noboru Iwamatsu authored
      In ansible 2.3.1, conditional statement should not include jinja2
      templating delimiters (e.g. {{ ).  So, this change removes the
      delimiters from when statemant, and also removes unnesessary
      parentheses from until statement.
      
      Closes-Bug: 1702607
      
      Change-Id: I071ffd5ba6175ee1bc61719a84b805c022753459
      2182e563
  24. Jul 05, 2017
  25. Jul 03, 2017
    • Eduardo Gonzalez's avatar
      Remove symlink in reconfigure tasks · 8d5526c0
      Eduardo Gonzalez authored
      Some roles have a symlink to deploy.yml file
      for reconfigure. This is causing some issues.
      "included task files must contain a list of tasks"
      
      Change-Id: Ie7ade52900a61bc1c5b867fa7a8f75fc541a6426
      Closes-Bug: #1694251
      8d5526c0
  26. Jun 23, 2017
    • jiangpch's avatar
      The notify "Restart keystone containers" is not correct · 77358dd9
      jiangpch authored
      No handler named "Restart keystone containers", and we should restart
      the keystone and the keystone-fernet container according to the context
      
      Closes-Bug: #1699924
      
      Change-Id: I62512dc022426cc762ff603d8554e48651fa621f
      77358dd9
  27. Jun 20, 2017
    • Juan J. Martinez's avatar
      Retry Keystone's default user role creation · ba5c4302
      Juan J. Martinez authored
      Sometimes Ansible is faster running tasks that haproxy tagging Keystone
      services as UP. Keystone bootstrap uses SQL directly but the default
      user role creation requires the API, and because of that it may fail.
      
      Retry in case the backend is not yet available.
      
      Change-Id: I9dfc030bbf92ca0a3dcb008d55e9fa2055f900ec
      Closes-Bug: 1699096
      ba5c4302
    • 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
  28. Jun 15, 2017
  29. Jun 13, 2017
    • Jeffrey Zhang's avatar
      Remove keystone-paste.ini file in kolla · 6ce222af
      Jeffrey Zhang authored
      keystone-paste.ini file is introduced by
      I3a3ca2e74c0ae341105d3481f97956c6da473046 for a security risk of
      admin_token_auth middleware. Now this middleware is removed by
      I57586ccfa0ad1309cc806d95377dc1ecad015914. So it is safe to use upstream
      keystone-paste.ini file.
      
      This patch also keep custom paste file feature. Just put the file to
      /etc/kolla/config/keystone/keyston-paste.ini path.
      
      Closes-Bug: #1695023
      Partially-Implements: blueprint custom-paste
      Change-Id: Ieb983b6a9edb6a156928f6b56a4bd2dbed4281e2
      6ce222af
  30. Jun 12, 2017
  31. Jun 04, 2017
    • caoyuan's avatar
      Remove the unnecessary jinja2 templating delimiters · 597e112a
      caoyuan authored
      [WARNING]: when statements should not include jinja2 templating
      delimiters such as {{ }} or {% %}. Found: {{
      (keystone_bootstrap.stdout | from_json).changed }}
      
      Closes-Bug: #1689550
      
      Change-Id: Ib6fdbcde02319011b072990f06fbd5e74b8d2d93
      597e112a
  32. May 23, 2017
  33. 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
  34. Apr 06, 2017
    • Paul Bourke's avatar
      Update keystone sanity check to use built in shade · 8006ecda
      Paul Bourke authored
      The current module 'kolla_sanity' was written as a shim before full
      shade support was added to Ansible. This should now no longer be needed,
      we can implement the checks using Ansible provided modules.
      
      Begin by updating the Keystone check to use 'os_auth' to fetch a token,
      I think this is a good basic smoke test to verify Keystone is working.
      
      Change-Id: I16049d9201fd8138c781ef2e1e0c1827ea817259
      Partially-implements: blueprint sanity-check-container
      8006ecda
  35. Mar 19, 2017
    • Eduardo Gonzalez's avatar
      Use versionless keystone endpoints · b14f1c56
      Eduardo Gonzalez authored
      nova quota fail to create due a recent change.
      Keystone endpoint cannot have version v3 in the url.
      
      During upgrade to Pike nova endpoint must be changed
      to be versionless.
      
      Change-Id: Idb433d526f7d44dfe4fd02ee918bd67e05c523f6
      Depends-On: I568db4559428525ac6c5083cfc20cffc20be6342
      Closes-Bug: #1668663
      b14f1c56
  36. Mar 15, 2017
Loading