Skip to content
Snippets Groups Projects
  1. Apr 02, 2020
    • Mark Goddard's avatar
      Separate per-service host configuration tasks · fdea19a3
      Mark Goddard authored
      Currently there are a few services that perform host configuration
      tasks. This is done in config.yml. This means that these changes are
      performed during 'kolla-ansible genconfig', when we might expect not to
      be making any changes to the remote system.
      
      This change separates out these host configuration tasks into a
      config-host.yml file, which is included directly from deploy.yml.
      
      One change in behaviour is that this prevents these tasks from running
      during an upgrade or genconfig. This is probably what we want, but we
      should be careful when any of these host configuration tasks are
      changed, to ensure they are applied during an upgrade if necessary.
      
      Change-Id: I001defc75d1f1e6caa9b1e11246abc6ce17c775b
      Closes-Bug: #1860161
      fdea19a3
    • Mark Goddard's avatar
      Avoid unconditional fact gathering · e0ba55a8
      Mark Goddard authored
      One way to improve the performance of Ansible is through fact caching.
      Rather than gather facts in every play, we can configure Ansible to
      cache them in a persistent store. An example Ansible configuration for
      doing this is as follows:
      
      [defaults]
      gathering = smart
      fact_caching = jsonfile
      fact_caching_connection = ./facts
      fact_caching_timeout = 86400
      
      This does not affect Kolla Ansible however, since we use the setup
      module which unconditionally gathers facts regardless of the state of
      the cache. This gets worse with large inventories limited to a small
      batch of hosts via --limit or serial, since the limited hosts must
      gather facts for all others.
      
      One way to detect whether facts exist for a host is via the
      'module_setup' variable, which exists only when facts exist. This change
      uses the 'module_setup' fact to determine whether facts need to be
      gathered for hosts outside of the batch. For hosts in the batch, we
      switch from using the setup module to gather_facts on the play, which
      can use the 'smart' gathering logic.
      
      Change-Id: I04841fb62b2e1d9e97ce4b75ce3a7349b9c74036
      Partially-Implements: blueprint performance-improvements
      e0ba55a8
  2. Apr 01, 2020
    • Radosław Piliszek's avatar
      Fix ovs fw driver for the other ovs agent · c033ddca
      Radosław Piliszek authored
      In [1] only neutron-openvswitch-agent was fixed and not xenapi.
      That merged in Ussuri and went cleanly into Train.
      In Stein and Rocky, the backport was not clean and
      accidentally fixed xenapi instead of the regular one.
      
      Neither the original bug nor its incomplete fix were released,
      except for Rocky. :-(
      Hence this patch also removes the confusing reno instead of
      adding a new one.
      
      [1] https://review.opendev.org/713129
      
      Change-Id: I331417c8d61ba6f180bcafa943be697418326645
      Closes-bug: #1869832
      Related-bug: #1867506
      c033ddca
  3. Mar 30, 2020
    • Doug Szumski's avatar
      Support setting Kafka storage volume · b7588834
      Doug Szumski authored
      Not everyone wants Kafka data stored on a Docker volume. This
      change allows a user to flexibly control where the data is stored.
      
      Change-Id: I2ba8c7a85c7bf2564f954a43c6e6dbb3257fe902
      b7588834
  4. Mar 26, 2020
  5. Mar 25, 2020
    • Mark Goddard's avatar
      Fix HAProxy prechecks during scale-out with limit · f3350d4e
      Mark Goddard authored
      Deploy HAProxy on one or more servers. Add another server to the
      inventory in the haproxy group, and run the following:
      
      kolla-ansible prechecks --limit <new host>
      
      The following task will fail:
      
          TASK [haproxy : Checking if kolla_internal_vip_address and
          kolla_external_vip_address are not pingable from any node]
      
      This happens because ansible does not execute on hosts where
      haproxy/keepalived is running, and therefore does not know that the VIP
      should be active.
      
      This change skips VIP prechecks when not all HAProxy hosts are in the
      play.
      
      Closes-Bug: #1868986
      
      Change-Id: Ifbc73806b768f76f803ab01c115a9e5c2e2492ac
      f3350d4e
  6. Mar 23, 2020
    • Mark Goddard's avatar
      Fix kolla-ansible stop with heterogeneous hosts · 89df07e8
      Mark Goddard authored
      The 'kolla-ansible stop' command can be used to stop the services
      running on hosts. However, if you run this command in an environment
      with heterogeneous nodes (most real world scenarios have at least
      control/compute), then it fails. This is because it only checks
      whether a container is enabled, and not whether the host is in the
      correct group. For example, it fails with nova-libvirt:
      
          No such container: nova_libvirt to stop.
      
      This change fixes the issue by only attempting to stop containers on
      hosts to which they are mapped.
      
      Change-Id: Ibecac60d1417269bbe25a280996ca9de6e6d018f
      Closes-Bug: #1868596
      89df07e8
  7. Mar 20, 2020
    • Doug Szumski's avatar
      Support disabling Prometheus server · 505cded2
      Doug Szumski authored
      This is useful to people who manage their Prometheus Server
      externally to Kolla Ansible, or want to use the exporters with
      another framework such as Monasca.
      
      Change-Id: Ie3f61e2e186c8e77e21a7b53d2bd7d2a27eee18e
      505cded2
  8. Mar 18, 2020
  9. Mar 16, 2020
  10. Mar 15, 2020
  11. Mar 12, 2020
  12. Mar 10, 2020
    • yj.bai's avatar
      support ipv6 for grafana.ini.j2 · 3e582a05
      yj.bai authored
      
      grafana not support ipv6 in grafana.ini.j2.
      
      Closes-Bug: #1866141
      
      Change-Id: Ia89a9283e70c10a624f25108b487528dbb370ee4
      Signed-off-by: default avataryj.bai <bai.yongjun@99cloud.net>
      3e582a05
    • Mark Goddard's avatar
      Check supported host OS distributions in prechecks · d20c65ed
      Mark Goddard authored
      This should help to ensure that users are running tested and supported
      host OS distributions.
      
      Change-Id: I6ee76463d284ad4f3646af1c7ec2b7e50e2f3b15
      Partially-Implements: blueprint improve-prechecks
      d20c65ed
    • Mark Goddard's avatar
      Fix HAProxy monitor VIP precheck · 93a4dcc1
      Mark Goddard authored
      If haproxy is running somewhere in the cluster and listening on the VIP,
      but not running locally, then the following precheck may fail:
      
         TASK [haproxy : Checking free port for HAProxy monitor (vip interface)]
      
         msg: Timeout when waiting for 192.0.2.10:61313 to stop.
      
      This change fixes the issue by skipping the check if HAProxy is running
      on any host.
      
      Change-Id: I831eb2f700ef3fcf65b7e08382c3b4fcc4ce8d8d
      Closes-Bug: #1866617
      93a4dcc1
    • Will Szumski's avatar
      Delete stale fluent config on restart · e7870e9d
      Will Szumski authored
      We already only include .conf files in fluent.conf:
      
      (fluentd)[fluentd@cpu-e-1041 /etc/fluentd]$ cat fluent.conf
      @include input/*.conf
      @include filter/*.conf
      @include format/*.conf
      @include output/*.conf
      
      so this change should not cause ill effect. This works because of the
      merge option in config files:
      
      merge: merges the source directory into the target directory instead of
      replacing it. Boolean, defaults to false.
      
      see https://docs.openstack.org/kolla/latest/admin/kolla_api.html#kolla-api-external-config
      
      Change-Id: I28f63ec81f1ea5bc4a213d053bfb2c04388d5925
      Closes-Bug: #1862211
      e7870e9d
    • Jeffrey Zhang's avatar
      Fix elasticsearch configuration in ipv6 environments · 3a8f5338
      Jeffrey Zhang authored
      Closes-Bug: #1866727
      Change-Id: I455ef6026b39110791cd38dac053205550af1ce2
      3a8f5338
  13. Mar 06, 2020
  14. Mar 05, 2020
  15. Mar 03, 2020
  16. Mar 02, 2020
  17. Feb 28, 2020
  18. Feb 27, 2020
  19. Feb 25, 2020
  20. Feb 24, 2020
  21. Feb 22, 2020
    • James Kirsch's avatar
      Construct service configuration urls using kolla_internal_fqdn · 256322a8
      James Kirsch authored
      Service configuration urls should be constructed using
      kolla_internal_fqdn instead of kolla_internal_vip_address. Otherwise SSL
      validation will fail when certificates are issued using domain names.
      
      Change-Id: I21689e22870c2f6206e37c60a3c33e19140f77ff
      Closes-Bug: 1862419
      256322a8
  22. Feb 21, 2020
    • Mark Goddard's avatar
      Fix invalid JSON body in Elasticsearch API requests · 5db9eab0
      Mark Goddard authored
      The kibana, elasticsearch and monasca roles all use the uri module to
      perform Elasticsearch configuration tasks via its API. The body of the
      request should be JSON formatted, but these tasks now fail because it is
      not.
      
      The following error is seen:
      
      TASK [monasca : Create default control plane organisation if it doesn't
      exist]
      
      invalid character '\\'' looking for beginning of object key string
      
      The 'JSON' body in this case was:
      
      {'name': 'monasca_control_plane@default'}
      
      This was probably caused by the recent change to execute these tasks in
      the kolla_toolbox container, but may also be caused by an Ansible
      version bump (or something else).
      
      This change fixes the issue by ensuring that the body is JSON-encoded in
      all cases.
      
      Change-Id: I7acc097381dd9a4af4e014525c1c88213abbde93
      Closes-Bug: #1864177
      5db9eab0
  23. Feb 20, 2020
  24. Feb 19, 2020
    • Jason Anderson's avatar
      [gnocchi] Disable statsd daemon by default · 57365000
      Jason Anderson authored
      This daemon is an additional piece of functionality supported by Gnocchi
      and the general pattern in KA is to disable such things unless the user
      explicitly wants them. This also helps avoid having to set the
      resource_id, user_id, and project_id variables for Gnocchi if you don't
      care about this daemon.
      
      Change-Id: I5f14cee4b0bb0d781b1ff53200d11de972d20c82
      57365000
    • Will Szumski's avatar
      Introduce influxdb_datadir_volume · 4cf7ff9f
      Will Szumski authored
      This allows you to tune the performance of InfluxDB by locating the
      volume on a drive that is separate to the default docker storage.
      
      Change-Id: Iea555a2702b225b30f5d7035b8a703d4f3376ee7
      4cf7ff9f
    • Michal Nasiadka's avatar
      Allow setting additional galera WSREP options · ea36bbf1
      Michal Nasiadka authored
      Change-Id: I26206bece95d31c0182e75f2a585c50d6f0fad6f
      ea36bbf1
  25. Feb 16, 2020
  26. Feb 14, 2020
    • Radosław Piliszek's avatar
      Fix Cinder Backup access to kernel modules (iscsi_tcp issue) · eff22e7c
      Radosław Piliszek authored
      It looks like the only missing part was the actual mount of
      /lib/modules
      
      Now Cinder Backup volumes differ from Cinder Volume volumes only
      by /etc/target which is not relevant (Cinder Backup does not
      provide a target).
      
      Change-Id: Iccf4298c4f9306eb0a95b6712815778555ef44fc
      Closes-bug: #1863094
      eff22e7c
  27. Feb 13, 2020
  28. Feb 12, 2020
    • Radosław Piliszek's avatar
      Use more permissive regex to remove the offending 127.0.1.1 · adbe115e
      Radosław Piliszek authored
      line from /etc/hosts
      
      Ubuntu always uses 127.0.1.1 for that with some tricky sauce
      around `hostname` depending on whether it contains '.' or not.
      And when I mean `hostname` it's the one returned by `hostname`
      command with no arguments.
      
      ansible_hostname is always a single word so we can match on that.
      
      I did not want to remove just any 127.0.1.1 in case someone
      is using it for other purposes. :-)
      
      Change-Id: I8bd3d42a5e3bd0f63336ed60a0af90d52b1650d6
      Closes-bug: #1862739
      adbe115e
Loading