Skip to content
Snippets Groups Projects
  1. Dec 22, 2020
  2. Dec 16, 2020
  3. 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
  4. Dec 10, 2020
    • Mark Goddard's avatar
      Fix mariadb_recovery when mariadb container is missing · f903d774
      Mark Goddard authored
      Mariadb recovery fails if a cluster has previously been deployed, but any of
      the mariadb containers do not exist.
      
      Steps to reproduce
      ==================
      
      * Deploy a mariadb galera cluster
      * Remove the mariadb container from at least one host (docker rm -f mariadb)
      * Run kolla-ansible mariadb_recovery
      
      Expected results
      ================
      
      The cluster is recovered, and a new container deployed where necessary.
      
      Actual results
      ==============
      
      The task 'Stop MariaDB containers' fails on any host where the container does
      not exist.
      
      Solution
      ========
      
      This change fixes the issue by using the 'ignore_missing' flag for kolla_docker
      with the stop_container action. This means the task does not fail when the
      container does not exist. It is also necessary to swap some 'docker cp'
      commands for 'cp' on the host, using the path to the volume.
      
      Closes-Bug: #1907658
      
      Change-Id: Ibd4a6adeb8443e12c45cbab65f501392ffb16fc7
      f903d774
  5. Dec 09, 2020
    • Mark Goddard's avatar
      Fix prechecks with Docker 20.10.0 · b60b0d58
      Mark Goddard authored
      The 'prechecks : Checking Docker version' task previously failed with
      Docker 20.10.0. The regex used to parse the version was returning
      0.10.0, which is not above the minimum. The previous version of 19.x
      would have been parsed as 9.x, which is above the minimum.
      
      This change fixes the issue by matching the beginning and end of the
      version using \b.
      
      Depends-On: https://review.opendev.org/766183
      
      Change-Id: I2a23eea7effb5b9a5e73361bcd48bd2e16d1569c
      Closes-Bug: 1907436
      b60b0d58
  6. Dec 08, 2020
  7. Dec 06, 2020
  8. Dec 04, 2020
  9. Nov 23, 2020
  10. Nov 19, 2020
  11. Nov 11, 2020
    • Alban Lecorps's avatar
      Add override timeout for openstack exporter · 99680b56
      Alban Lecorps authored
      Add scrape_timeout option in
      prometheus_openstack_exporter job in order
      to avoid timeout for large Openstack environment.
      
      Change-Id: If96034e602bee3b3eea34a2656047355e1d17eec
      Closes-Bug: #1903547
      99680b56
  12. Nov 10, 2020
  13. Nov 09, 2020
    • Michal Nasiadka's avatar
      ovn: Do not schedule SNAT routers on computes · 06baf514
      Michal Nasiadka authored
      Currently we set enable-chassis-as-gw on compute nodes when distributed FIP
      is enabled - that is not required for FIP functionality.
      
      Change-Id: Ic880a9479fa0cdbb1d1cae3dbe9523ef2e1132ce
      Closes-Bug: #1901960
      06baf514
  14. Nov 08, 2020
  15. Oct 29, 2020
  16. Oct 27, 2020
    • Radosław Piliszek's avatar
      Do not set 'always' tag where unnecessary · 71e9c603
      Radosław Piliszek authored
      Makes 'import_tasks' not change behaviour compared to
      'include_tasks'.
      
      Change-Id: I600be7c3bd763b3b924bd4a45b4e7b4dca7a33e3
      71e9c603
    • 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
  17. Oct 24, 2020
    • linpeiwen's avatar
      Add support for GlusterFS NFS Manila backend · f01492b1
      linpeiwen authored
      Follows existing backends patterns to add support for the GlusterFS
      NFS driver.
      NFS server type used by the GlusterFS backend, Gluster or Ganesha,
      currently supports Gluster.
      The GlusterFS NFS driver needs to install the glusterfs-fuse package
      in the kolla images manila share container in advance, which has been merged
      in https://review.opendev.org/747510
      
      Change-Id: I7fdb121b5bf9850d62246a24f9b17d226028c2ca
      f01492b1
  18. Oct 22, 2020
    • Mark Goddard's avatar
      Fix permission denied during Fernet key rotation · b45679f1
      Mark Goddard authored
      During a deploy, if keystone Fernet key rotation happens before the
      keystone container starts, the rotation may fail with 'permission
      denied'. This happens because config.json for Keystone sets the
      permissions for /etc/keystone/fernet-keys.
      
      This change fixes the issue by also setting the permissions for
      /etc/keystone/fernet-keys in config.json for keystone-fernet and
      keystone-ssh.
      
      Change-Id: I561e4171d14dcaad8a2a9a36ccab84a670daa904
      Closes-Bug: #1888512
      b45679f1
    • Mark Goddard's avatar
      Fix keystone-startup.sh - remove Fernet key age check · ba8c27f5
      Mark Goddard authored
      Currently we check the age of the primary Fernet key on Keystone
      startup, and fail if it is older than the rotation interval. While this
      may seem sensible, there are various reasons why the key may be older
      than this:
      
      * if the rotation interval is not a factor of the number of seconds in a
        week, the rotation schedule will be lumpy, with the last rotation
        being up to twice the nominal rotation interval
      * if a keystone host is unavailable at its scheduled rotation time,
        rotation will not happen. This may happen multiple times
      
      We could do several things to avoid this issue:
      
      1. remove the check on the age of the key
      2. multiply the rotation interval by some factor to determine the
         allowed key age
      
      This change goes for the more simple option 1. It also cleans up some
      terminology in the keystone-startup.sh script.
      
      Closes-Bug: #1895723
      
      Change-Id: I2c35f59ae9449cb1646e402e0a9f28ad61f918a8
      ba8c27f5
  19. Oct 19, 2020
  20. 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
    • James Kirsch's avatar
      Add support for encrypting backend Neutron API Server · 93ad57f4
      James Kirsch authored
      Add TLS support for backend Neutron API Server communication using
      HAProxy to perform TLS termination. When used in conjunction with
      enabling TLS for service API endpoints, network communication will be
      encrypted end to end, from client through HAProxy to the Neutron
      service.
      
      Change-Id: Ib333a1f1bd12491df72a9e52d961161210e2d330
      Partially-Implements: blueprint add-ssl-internal-network
      93ad57f4
  21. Oct 10, 2020
  22. Oct 09, 2020
  23. Oct 08, 2020
    • Mark Goddard's avatar
      baremetal: Install iptables for Docker if enabled · bc1d02d8
      Mark Goddard authored
      If iptables is not installed, e.g. in the CentOS 8 cloud image, and
      Docker iptables management is enabled, we get the following errors:
      
      Failed to find iptables: exec: \"iptables\": executable file not found
      in $PATH failed to start daemon: Error initializing network controller:
      error obtaining controller instance: failed to create NAT chain DOCKER:
      Iptables not found
      
      This change installs the iptables package Docker iptables management is
      enabled.
      
      Change-Id: I3ba5318debccafb28c3cbce8e4e9813c28b086fc
      Closes-Bug: #1899060
      bc1d02d8
    • Radosław Piliszek's avatar
      Fix haproxy bundle generation · 3f9d30a2
      Radosław Piliszek authored
      This fixes the `certificates` command to not include CSRs in
      the haproxy bundle.
      The regex was wrong.
      
      Change-Id: If25a6d5dd40f507fea4470be01baeeb7c8a790b4
      3f9d30a2
    • wu.chunyang's avatar
      add octavia openrc file · 195269d7
      wu.chunyang authored
      we use octavia user to upload image currently, so it is better to
      create a octavia openrc file for user
      
      Implements: blueprint implement-automatic-deploy-of-octavia
      
      Change-Id: Ib53d00fa4a6ee59b8a0b2245f83786a6af0cbf53
      195269d7
    • Mark Goddard's avatar
      octavia: generate certificates automatically · 894f4912
      Mark Goddard authored
      
      implemented as a separate command (kolla-ansible octavia-certificates)
      
      Implements: blueprint implement-automatic-deploy-of-octavia
      
      Co-Authored-By: default avatarwu.chunyang <wuchunyang@yovole.com>
      Co-Authored-By: default avatarRadosław Piliszek <radoslaw.piliszek@gmail.com>
      
      Change-Id: I2c5b26ce9e363f35c523865904a582f7960aa682
      894f4912
  24. Oct 06, 2020
    • nikparasyr's avatar
      Allow overwrite of placement-api wsgi config · fc4327d9
      nikparasyr authored
      Use with_first_found on placement-api-wsgi to allow
      overwrite from users and keep consistency with other
      roles.
      
      Change-Id: I11c84db6df1bb5be61db5b6b0adf8c160a2bd931
      Closes-Bug: #1898766
      fc4327d9
    • Mark Goddard's avatar
      Update ironic iPXE configuration · dd826417
      Mark Goddard authored
      * ipxe_enabled was removed in Ussuri, now there is a separate ipxe boot
        interface.
      * iPXE now has its own set of configuration for the bootfile and config
        template, and the values previously set when iPXE is enabled are now
        the default in ironic. The overrides have been removed, since they
        match the iPXE defaults.
      
      Change-Id: I9d9f030ee4be979d0a849b59e5eb991f2d82f6a4
      dd826417
  25. Oct 05, 2020
  26. Oct 04, 2020
    • Radosław Piliszek's avatar
      Coordinate haproxy and keepalived restarts · c2d0bf30
      Radosław Piliszek authored
      Keepalived and haproxy cooperate to provide control plane HA in
      kolla-ansible deployments.
      Certain care should be exerted to avoid prolonged availability
      loss during reconfigurations and upgrades.
      This patch aims to provide this care.
      There is nothing special about keepalived upgrade compared to
      reconfig, hence it is simplified to run the same code as for
      deploy.
      The broken logic of safe upgrade is replaced by common handler
      code which's goal is to ensure we down current master only after
      we have backups ready.
      
      This change introduces a switch to kolla_docker module that allows
      to ignore missing containers (as they are logically stopped).
      ignore_missing is the switch's name.
      All tests are included.
      
      Change-Id: I22ddec5f7ee4a7d3d502649a158a7e005fe29c48
      c2d0bf30
Loading