Skip to content
Snippets Groups Projects
  1. Oct 12, 2019
  2. Oct 10, 2019
    • Mark Goddard's avatar
      Remove /etc/hosts entries pointing hostname to localhost and prevent · 0b24a0f2
      Mark Goddard authored
      cloud-init to manage /etc/hosts
      
      1) Ubuntu includes a line in /etc/hosts that makes the local hostname and
      nodename (if different) point to 127.0.1.1. This can break RabbitMQ,
      which expects the hostname to resolve to the API network address.
      
      2) The distribution might come with cloud-init installed, and manage_etc_hosts
      configuration enabled. If so, it will override the file /etc/hosts from cloud-init
      templates at every boot, which will break RabbitMQ.
      
      This change fixes these issues.
      
      Change-Id: I53261d0403b983ab419bd44e705b89f7b7a1c316
      Closes-Bug: #1837699
      0b24a0f2
  3. Oct 09, 2019
  4. Oct 07, 2019
    • Mark Goddard's avatar
      Fix swift-proxy-server memcached configuration · 3488479d
      Mark Goddard authored
      Currently, swift-proxy config uses hosts in the swift-proxy-server group
      to generate the list of memcached servers. However, memcached is
      deployed to hosts in the memcached group.
      
      This change fixes the memcached_servers option for swift-proxy to be the
      same as other services.
      
      Change-Id: Ib850a1bb2a504ac3e1396846ca3f1d9a30e8fca0
      Closes-Bug: #1774313
      3488479d
  5. Oct 03, 2019
  6. Oct 01, 2019
    • Doug Szumski's avatar
      Copy Nova role as a basis for the Nova cell role · 952b5308
      Doug Szumski authored
      The idea is to factor out a role for deploying Nova related services
      to cells. Since all deployments use cells, this role can be used
      in both regular deployments which have just cell0 and cell1,
      and deployments with many cells.
      
      Partially Implements: blueprint support-nova-cells
      Change-Id: Ib1f36ec0a773c384f2c1eac1843782a3e766045a
      952b5308
    • Mark Goddard's avatar
      Add service-rabbitmq role · 039cc2be
      Mark Goddard authored
      This role can be used by other roles to register RabbitMQ resources.
      Currently support is provided for creating virtual hosts and users.
      
      Change-Id: Ie1774a10b4d629508584af679b8aa9e372847804
      Partially Implements: blueprint support-nova-cells
      Depends-On: https://review.opendev.org/684742
      039cc2be
  7. Sep 30, 2019
    • Mark Goddard's avatar
      Fall back to regexes in kolla_toolbox with Docker API 1.24 · 8d25b306
      Mark Goddard authored
      Since
      https://opendev.org/openstack/kolla-ansible/commit/70b515bf1225e56b7df81677043d75be4bbb1ab4
      was merged, we implicitly require Docker API version 1.25
      (https://docs.docker.com/engine/api/v1.25/) to support passing
      environment variables to docker exec. The version of docker we deployed
      before the Docker CE upgrade was 1.12.0, which is Docker API version
      1.24, and so does not support this. We get the following error:
      
          Setting environment for exec is not supported in API < 1.25
      
      This change modifies the kolla_toolbox module to use the new JSON
      method for parsing Ansible's output when Docker API 1.25 is available,
      falling back to the old regex-based method otherwise.
      
      This change can be reverted when we require a minimum Docker API version
      of 1.25+.
      
      Change-Id: Ie671624ecca5b43d7bd8fbd959d701d9e21d66b3
      Closes-Bug: #1845681
      8d25b306
    • Joseph M's avatar
      [designate] Add coordination backend for designate workers · 9cae6083
      Joseph M authored
      Add coordination backend configuration to designate.conf which is
      required in multinode environments. Fixes warning from designate:
      
      WARNING designate.coordination [-] No coordination backend configured,
      assuming we are the only worker. Please configure a coordination backend
      
      Change-Id: I23c4d2de7e3f9368795c423000a4f9a6c3a431e2
      Closes-Bug: #1843842
      Related-Bug: #1840070
      9cae6083
  8. Sep 29, 2019
  9. Sep 26, 2019
  10. Sep 25, 2019
  11. Sep 24, 2019
    • Mark Goddard's avatar
      Switch default cloudkitty storage backend to influxdb · 27f4876e
      Mark Goddard authored
      Backport: stein
      
      In the Stein release, cloudkitty switched the default storage backend
      from sqlalchemy to influxdb. In kolla-ansible stein configuration, we
      did not explicitly set the storage backend, and so we automatically
      picked up this change. However, prior to
      https://review.opendev.org/#/c/615928/ we did not have full support for
      InfluxDB as a storage backend, and so this has broken the Rocky-Stein
      upgrade (https://bugs.launchpad.net/kolla-ansible/+bug/1838641), which
      fails with this during the DB sync:
      
      ERROR cloudkitty InfluxDBClientError: get_list_retention_policies()
      requires a database as a parameter or the client to be using a database
      
      This change synchronises our default with cloudkitty's (influxdb), and
      also provides an upgrade transition to create the influxdb database.
      
      We also move the cloudkitty_storage_backend variable to
      group_vars/all.yml, since it is used to determine whether to enable
      influxdb.
      
      Finally, the section name in cloudkitty.conf was incorrect - it was
      storage_influx,  but should be storage_influxdb.
      
      Change-Id: I71f2ed11bd06f58e141d222e2709835b7ddb2c71
      Closes-Bug: #1838641
      27f4876e
    • Mark Goddard's avatar
      Create and grant all keystone roles in service-ks-register · 741f6d9b
      Mark Goddard authored
      This ensures we execute the keystone os_* modules in one place.
      
      Also rework some of the task names and loop item display.
      
      Change-Id: I6764a71e8147410e7b24b0b73d0f92264f45240c
      741f6d9b
    • Alexis Deberg's avatar
      Swift: add swift_extra_ring_files variable to handle multi-policies deployment · 0adbbb26
      Alexis Deberg authored
      The current tasks only use a hardcoded list deploying only the required files.
      When using multiple custom policies, additionnal object-*.builder and
      object*.gz files are to be deployed as well.
      This adds a new default-empty variable that can be overridden when needed
      
      Change-Id: I29c8e349c7cc83e3a2e01ff702d235a0cd97340e
      Closes-Bug: #1844752
      0adbbb26
  12. Sep 23, 2019
    • Mark Goddard's avatar
      Ensure keepalived is restarted during upgrade · 6f05f1b8
      Mark Goddard authored
      During upgrade, we stop all slave keepalived containers. However, if the
      keepalived container configuration has not changed, we never restart
      them.
      
      This change fixes the issue by notifying the restart handler when the
      containers are stopped.
      
      Change-Id: Ibe094b0c14a70a0eb811182d96f045027aa02c2a
      Closes-Bug: #1836368
      6f05f1b8
    • Mark Goddard's avatar
      Add <project>_install_type for all projects · cc555c41
      Mark Goddard authored
      This allows the install type for the project to be different than
      kolla_install_type
      
      This can be used to avoid hitting bug 1786238, since kuryr only supports
      the source type.
      
      Change-Id: I2b6fc85bac092b1614bccfd22bee48442c55dda4
      Closes-Bug: #1786238
      cc555c41
    • Dincer Celik's avatar
      [prometheus] Added support for extra options · 5ff7bab4
      Dincer Celik authored
      This change introduces the way to pass extra options to prometheus.
      
      Currently, prometheus runs with nearly default options, and when clouds
      start getting bigger, you need to pass extra parameters to prometheus.
      
      Change-Id: Ic773c0b73062cf3b2285343bafb25d5923911834
      5ff7bab4
  13. Sep 20, 2019
    • Mark Goddard's avatar
      Remove some deprecated config options · e127627d
      Mark Goddard authored
      Heat's [DEFAULT] deferred_auth_method is deprecated, and we are setting
      the default value of 'trusts'.
      
      Glance's [DEFAULT] registry_host is deprecated, and we do not deploy a
      registry.
      
      Change-Id: I80024907c575982699ce323cd9a93bab94c988d3
      e127627d
    • Mark Goddard's avatar
      Add retries to keystone resource registration tasks · 2ddf1fbf
      Mark Goddard authored
      Sometimes things go wrong. We shouldn't fail a Kolla Ansible run because
      of a temporary failure when creating keystone resources.
      
      This task adds retries to the tasks in the service-ks-tasks role.
      Default is 5 retries with a 10 second delay, as is used in OpenStack
      Ansible.
      
      Change-Id: Ib692062fb93ba330bb9c8a35c684ad06652be8a2
      2ddf1fbf
  14. Sep 19, 2019
  15. Sep 18, 2019
    • Mark Goddard's avatar
      Remove support for OracleLinux · 15e35333
      Mark Goddard authored
      We have agreed to remove support for Oracle Linux.
      
      http://lists.openstack.org/pipermail/openstack-discuss/2019-June/006896.html
      
      Change-Id: If11b4ff37af936a0cfd34443e8babb952307882b
      15e35333
    • Scott Solkhon's avatar
      Adding Prometheus blackbox exporter · b22375eb
      Scott Solkhon authored
      
      This commit follows up the work in Kolla to provide deploy and configure the
      Prometheus blackbox exporter.
      
      An example blackbox-exporter module has been added (disabled by default)
      called os_endpoint. This allows for the probing of endpoints over HTTP
      and HTTPS. This can be used to monitor that OpenStack endpoints return a status
      code of either 200 or 300, and the word 'versions' in the payload.
      
      This change introduces a new variable `prometheus_blackbox_exporter_endpoints`.
      Currently no defaults are specified because the configuration is heavily
      dependent on the deployment.
      
      Co-authored-by: default avatarJack Heskett <Jack.Heskett@gresearch.co.uk>
      Change-Id: I36ad4961078d90e2fd70c9a3368f5157d6fd89cd
      b22375eb
  16. Sep 17, 2019
  17. Sep 16, 2019
    • Mark Goddard's avatar
      Catch errors and changes in kolla_toolbox module · 70b515bf
      Mark Goddard authored
      The kolla_toolbox Ansible module executes as-hoc ansible commands in the
      kolla_toolbox container, and parses the output to make it look as if
      ansible-playbook executed the command. Currently however, this module
      sometimes fails to catch failures of the underlying command, and also
      sometimes shows tasks as 'ok' when the underlying command was changed.
      This has been tested both before and after the upgrade to ansible 2.8.
      
      This change fixes this issue by configuring ansible to emit output in
      JSON format, to make parsing simpler. We can now pick up errors and
      changes, and signal them to the caller.
      
      This change also adds an ansible playbook, tests/test-kolla-toolbox.yml,
      that can be executed to test the module. It's not currently integrated
      with any CI jobs.
      
      Note that this change cannot be backported as the JSON output callback
      plugin was added in Ansible 2.5.
      
      Change-Id: I8236dd4165f760c819ca972b75cbebc62015fada
      Closes-Bug: #1844114
      70b515bf
    • Mark Goddard's avatar
      Add custom filters for checking services · af2e7fd7
      Mark Goddard authored
      These filters can be used to capture a lot of the logic that we
      currently have in 'when' statements, about which services are enabled
      for a particular host.
      
      In order to use these filters, it is necessary to install the
      kolla_ansible python module, and not just the dependencies listed in
      requirements.txt. The CI test and quickstart install from source
      documentation has been updated accordingly.
      
      Ansible is not currently in OpenStack global requirements, so for unit
      tests we avoid a direct dependency on Ansible and provide fakes where
      necessary.
      
      Change-Id: Ib91cac3c28e2b5a834c9746b1d2236a309529556
      af2e7fd7
    • chenxing's avatar
      Update "openstack_release" variable to static brach name · 4eceb48d
      chenxing authored
      Since we use the release name as the default tag to publish images
      to Dockerhub, we should use this by default.
      
      This change also removes support for the magic value "auto".
      
      Change-Id: I5610cc7729e9311709147ba5532199a033dfd156
      Closes-Bug: #1843518
      4eceb48d
  18. Sep 15, 2019
  19. Sep 14, 2019
  20. Sep 13, 2019
    • Mark Flynn's avatar
      Fix prometheus-alertmanager cluster bug · 01eb7a63
      Mark Flynn authored
      
      Edited the
      ansible/roles/prometheus/templates/prometheus-alertmanager.json.j2 file
      to change the mesh.peer and mesh.listen-address to cluter.peer and
      cluster.listen-address.  This stopped alertmanager from crashing with
      error "--mesh.peer is an invalid flag"
      
      Change-Id: Ia0447674b9ec377a814f37b70b4863a2bd1348ce
      Signed-off-by: default avatarMark Flynn <markandrewflynn@gmail.com>
      01eb7a63
  21. Sep 12, 2019
    • Mark Goddard's avatar
      Sync enable flags in globals.yml · fd1fcdc4
      Mark Goddard authored
      Change-Id: I593b06c447d156c7a981d1c617f4f9baa82884de
      Closes-Bug: #1841175
      fd1fcdc4
    • Scott Solkhon's avatar
      Enable Swift Recon · d463d3f7
      Scott Solkhon authored
      
      This commit adds the necessary configuration to the Swift account,
      container and object configuration files to enable the Swift recon
      cli.
      
      In order to give the object server on each Swift host access to the
      recon files, a Docker volume is mounted into each container which
      generates them. The volume is then mounted read only into the object
      server container. Note that multiple containers append to the same
      file. This should not be a problem since Swift uses a lock when
      appending.
      
      Change-Id: I343d8f45a78ebc3c11ed0c68fe8bec24f9ea7929
      Co-authored-by: default avatarDoug Szumski <doug@stackhpc.com>
      d463d3f7
  22. Sep 11, 2019
Loading