Skip to content
Snippets Groups Projects
  1. Jul 11, 2019
    • Mark Goddard's avatar
      Fix glance with file backend · 602f89ba
      Mark Goddard authored
      Since https://review.opendev.org/647699/, we lost the logic to only
      deploy glance-api on a single host when using the file backend.
      
      This code was always a bit custom, and would be better supported by
      using the 'host_in_groups' pattern we have in a few other places where a
      single group name does not describe the placement of containers for a
      service.
      
      Change-Id: I21ce4a3b0beee0009ac69fecd0ce24efebaf158d
      Closes-Bug: #1836151
      602f89ba
  2. 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
  3. Nov 21, 2018
  4. Oct 10, 2018
    • Mark Goddard's avatar
      Generate Ceph configuration during upgrade · 242625df
      Mark Goddard authored
      If upgrading the nova, cinder or manila services via 'kolla-ansible
      upgrade', the Ceph config files are not generated. Users will expect
      that these files are generated, to pull in any changes from their
      configuration or the base kolla configuration.
      
      This change moves Ceph tasks inside config.yml to ensure that they are
      performed during deploy, reconfigure and upgrade. This has been done for
      nova, cinder, gnocchi and manila - glance already does this.
      
      Change-Id: Ic75692c2bcba9b81dee922ff6fbbccd160e7fa19
      Closes-Bug: #1794275
      242625df
  5. Jul 25, 2018
  6. Jul 18, 2018
  7. Jun 24, 2018
  8. Jun 08, 2018
  9. 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
  10. Apr 22, 2018
  11. Apr 06, 2018
  12. Mar 26, 2018
    • Eduardo Gonzalez's avatar
      Verify YAML syntax in gates · ea1a1dee
      Eduardo Gonzalez authored
      This patchset implements yamllint test to all *.yml
      files.
      
      Also fixes syntax errors to make jobs to pass.
      
      Change-Id: I3186adf9835b4d0cada272d156b17d1bc9c2b799
      ea1a1dee
  13. Mar 22, 2018
    • Joshua Harlow's avatar
      Glance policy copy is not using correct name · 39cb42ec
      Joshua Harlow authored
      This is currently using the full path for the destination
      which doesn't appear to be what is wanted; instead the
      actual file name should be used.
      
      Closes-Bug: 1757532
      
      Change-Id: If85e98097a0d0e0b55d0b2993185c8591e6dd10e
      39cb42ec
  14. Jan 29, 2018
  15. Nov 21, 2017
    • Mark Goddard's avatar
      Configure glance ceph during upgrade and genconfig · 2dbfe74f
      Mark Goddard authored
      Previously the glance ceph backend was only being configured during
      the deploy and reconfigure commands. This change ensures that it is
      configured during the upgrade and genconfig commands as well.
      
      Some of the related host/group selection logic has been cleaned up,
      as it was a little tautolgous.
      
      Change-Id: Ibfc2bfaaf2e24fb3a0697925e7723794046787fa
      Closes-Bug: #1728060
      2dbfe74f
  16. 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
  17. 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
  18. Aug 17, 2017
  19. 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
  20. 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
  21. 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
  22. Jan 24, 2017
    • Borne Mace's avatar
      Fixed config generation to check correct actions · bb475911
      Borne Mace authored
      
      A config generation check was added to a few services but the action
      name checked was "genconfig" where the kolla-ansible genconfig command
      actually uses the action name "config".
      
      Stop run the handlers when action is "config".
      
      Co-Authored-By: default avatarJeffrey Zhang <jeffrey.zhang@99cloud.net>
      Partially-implements: blueprint better-reconfigure
      Change-Id: I9d3be2f674087f340108b176c8e8e2209ffa8806
      bb475911
  23. Jan 05, 2017
  24. Jan 02, 2017
  25. 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
  26. 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
  27. Oct 19, 2016
  28. Aug 02, 2016
    • Ken Wronkiewicz's avatar
      Glance interface address, memcached override, and glance override. · 85db94e5
      Ken Wronkiewicz authored
      Note: This should not result in any behavior changes in regular Kolla, just
      Kolla-Kubernetes and only when you've overridden stuff in globals.yml
      
      Allows override of interface address, memcached pools, and glance registry
      host so that Kubernetes can do the right thing.
      
      There are some significant architectural issues involved in memcached pooling
      in the Kolla-kubernetes world.  Avoiding them right now.
      
      Current working with this Kolla-Kubernetes globals.yml file:
      
      api_interface_address: "0.0.0.0"
      
      memcached_servers: "memcached"
      
      keystone_database_address: "mariadb"
      keystone_admin_url: "http://keystone-admin:35357/v3"
      keystone_internal_url: "http://keystone-public:5000/v3"
      keystone_public_url: "http://keystone-public:5000/v3
      
      "
      glance_registry_host: "glance-registry"
      
      Two tings to note:
       * This depends on a kolla-kubernetes patch, so that it won't be merged
         until it's safe for glance to bind to 0.0.0.0.  It's OK to bind to
         0.0.0.0 in the Kubernetes world because the network fabric controls
         access.
       * In Kolla-Kubernetes, the global.yml file doesn't do var substitution
         so you have to be explicit about the URLs, otherwise Keystone will
         look like it was provisioned but it won't quite be provisioned right.
      
      Co-Authored-By: default avatarRyan Hallisey <rhallise@redhat.com>
      Change-Id: Ic87566118a1d4f552748392ff394b9b121c91887
      Partially-implements: blueprint api-interface-bind-address-override
      Depends-On: I586ce1c6c3300254c4e2a398ff46645df576aeb0
      85db94e5
  29. May 23, 2016
    • Ryan Hallisey's avatar
      Make configurable the location where config files are merged · 2da010a7
      Ryan Hallisey authored
      An operator may want to specify the location of custom config
      files so that kolla can detect their location and merge
      them with the default configs generated.
      
      Partially implements: blueprint multi-project-config
      
      Change-Id: Ibfb38d07a36dfa7fe25381adc34cc1d3cbe7d1e1
      2da010a7
  30. Mar 28, 2016
    • Jeffrey Zhang's avatar
      Refactor the glance service group mapping · 0a6cff4a
      Jeffrey Zhang authored
      Add a glance_service_groups variable containers the container name,
      service name and group name. In this way, we can remove lots of
      duplicated lines.
      
      TrivialFix
      
      Change-Id: I9beb7509ad7221cd495e3211a2e67d986486aac6
      0a6cff4a
    • Jeffrey Zhang's avatar
      Only copy the necessary config files for Glance · 9523fd0e
      Jeffrey Zhang authored
      Only copy the necessary config files when it _really_ needed. This
      will make the config file safer
      
      Partial-Bug: #1559122
      Change-Id: I5f5df54c688fb4f6b0ee68815116e2418d5742f7
      9523fd0e
  31. Mar 17, 2016
    • SamYaple's avatar
      Allow per node configuration with augments · 1f371e27
      SamYaple authored
      This type of per node configuration is required to support things like
      availability zones for nova. As always, if this file doesnt exist it
      doesnt get used so this change is safe.
      
      TrivialFix
      
      Change-Id: Iff8172af522c2c96e5f2c173b24a5dfd4d522ed2
      1f371e27
    • SamYaple's avatar
      Refactor glance config tasks · ff91d53c
      SamYaple authored
      This now matches the way we copy confis in other services.
      
      TrivialFix
      
      Change-Id: Ia9c6d5f9a633c0b20b4d9a697863bd2753d39443
      ff91d53c
  32. Dec 22, 2015
    • SamYaple's avatar
      Simplify config creation · ed82afa8
      SamYaple authored
      Convert config creation from a playbook to an action_plugin. This
      reduces the complexity and confusion while retaining the same augment
      structure and flexibility.
      
      This allows us to remove the 0-byte files as requirements. They will
      still be used if they are present (this means we require additional
      documentation around them).
      
      DocImpact
      Closes-Bug: #1528430
      Change-Id: I2c789f6be9f195c7771ca093a6d59499564b4740
      ed82afa8
  33. Sep 18, 2015
  34. Aug 12, 2015
  35. Jul 09, 2015
    • Sam Yaple's avatar
      Ansible Glance support · e7a7cc90
      Sam Yaple authored
      Adds support for glance in ansible
      
      Partially-Implements: blueprint ansible-service
      Change-Id: I2d162e79f85877116b0e33b1843de6ccb62a445a
      e7a7cc90
Loading