Skip to content
Snippets Groups Projects
  1. Oct 22, 2021
  2. Sep 30, 2021
  3. Jul 02, 2021
    • Mark Goddard's avatar
      Add disable_firewall variable · 9fffc7bc
      Mark Goddard authored
      Adds a new variable, 'disable_firewall', which defaults to true. If set
      to false, then the host firewall will not be disabled during
      kolla-ansible bootstrap-servers.
      
      Change-Id: Ie5131013012f89c8c3b91ca359ad17d9cb77efc8
      9fffc7bc
  4. Jun 23, 2021
    • Mark Goddard's avatar
      Use ansible_facts to reference facts · ade5bfa3
      Mark Goddard authored
      By default, Ansible injects a variable for every fact, prefixed with
      ansible_. This can result in a large number of variables for each host,
      which at scale can incur a performance penalty. Ansible provides a
      configuration option [0] that can be set to False to prevent this
      injection of facts. In this case, facts should be referenced via
      ansible_facts.<fact>.
      
      This change updates all references to Ansible facts within Kolla Ansible
      from using individual fact variables to using the items in the
      ansible_facts dictionary. This allows users to disable fact variable
      injection in their Ansible configuration, which may provide some
      performance improvement.
      
      This change disables fact variable injection in the ansible
      configuration used in CI, to catch any attempts to use the injected
      variables.
      
      [0] https://docs.ansible.com/ansible/latest/reference_appendices/config.html#inject-facts-as-vars
      
      Change-Id: I7e9d5c9b8b9164d4aee3abb4e37c8f28d98ff5d1
      Partially-Implements: blueprint performance-improvements
      ade5bfa3
  5. Apr 27, 2021
  6. Mar 26, 2021
  7. Dec 23, 2020
  8. 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
  9. Sep 28, 2020
  10. Jun 15, 2020
    • Michal Arbet's avatar
      Remove chrony package if containerized chrony is enabled · 3d747b72
      Michal Arbet authored
      This patch is removing chrony package
      from docker host when containerized chrony is enabled.
      It is also fixing issue with chrony container running
      under Ubuntu docker host as noted below.
      
      + exec /usr/sbin/chronyd -d -f /etc/chrony/chrony.conf
      2020-06-08T08:19:09Z chronyd version 3.4 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 -DEBUG)
      2020-06-08T08:19:09Z Fatal error : Could not open configuration file /etc/chrony/chrony.conf : Permission denied
      
      Added also removal apparmor profile for ubuntu when
      containerized chrony is enabled, as chrony's package
      is not removing apparmor profile, and therefore
      containerized chrony is not working.
      
      Change-Id: Icf3bbae38b9f5630b69d5c8cf6a8bee11786a836
      Closes-Bug: #1882513
      3d747b72
  11. May 08, 2020
  12. Apr 22, 2020
  13. Apr 20, 2020
    • Mark Goddard's avatar
      Remove support for Python 2 on the host · 284f4928
      Mark Goddard authored
      Drops support for creating Python 2 virtualenvs in bootstrap-servers,
      and looking for a python2 interpreter in the kolla-ansible script.
      
      Also forces the use of Python 3 as the remote interpreter in CI on
      Debian and Ubuntu hosts, since they typically symlink the unversioned
      interpreter to python2.7.
      
      Change-Id: Id0e977de381e7faafed738674a140ba36184727e
      Partially-Implements: blueprint drop-py2-support
      284f4928
  14. Apr 08, 2020
    • Mark Goddard's avatar
      Remove support for CentOS 7 · f4e20a1f
      Mark Goddard authored
      CentOS 8 support is now fairly complete - time to drop CentOS 7.
      
      Partially-Implements: blueprint centos-rhel-8
      
      Change-Id: I940b1d3eceb98e16fa366c243672f588b1412d70
      f4e20a1f
  15. Feb 11, 2020
  16. Jan 28, 2020
    • Mark Goddard's avatar
      CentOS 8: Deploy CentOS 8 containers · 3b24e566
      Mark Goddard authored
      * HAProxy is now 1.8 in CentOS 8
      * Support python3 in baremetal role
      * Remove support for environments without python2 installed (this could
        not have worked since we gather facts before this point)
      
      Workarounds:
      
      * Using CentOS 7 yum repo for Docker, with module_hotfixes
      
      Change-Id: I30bd3d58f6224ad4c9575ba66c74deabe6895cc4
      Partially-Implements: blueprint centos-rhel-8
      3b24e566
  17. Oct 12, 2019
  18. Sep 05, 2019
  19. Aug 06, 2019
  20. Aug 05, 2019
  21. Jul 16, 2019
    • Michal Nasiadka's avatar
      ceph-nfs: Add rpcbind to Ubuntu host bootstrap · efcaf400
      Michal Nasiadka authored
      * Ubuntu ships with nfs-ganesha 2.6.0, which requires to do an rpcbind
      udp test on startup (was fixed later)
      * Add rpcbind package to be installed by kolla-ansible bootstrap when
      ceph_nfs is enabled
      * Update Ceph deployment docs with a note
      
      Change-Id: Ic19264191a0ed418fa959fdc122cef543446fbe5
      efcaf400
  22. May 20, 2019
  23. May 16, 2019
  24. Apr 09, 2019
  25. Dec 17, 2018
    • Mark Goddard's avatar
      Support Docker CE in bootstrap-servers · 48aea563
      Mark Goddard authored
      Kolla Ansible's bootstrap-servers command provides support for
      installing the Docker engine. This is currently done using the packages
      at https://apt.dockerproject.org and https://yum.dockerproject.org.
      These packages are outdated, with the most recent packages from May 2017
      - docker-engine-17.05.
      
      The source for up to date docker packages is
      https://download.docker.com, which was introduced with the move to
      Docker Community Edition (CE) and Docker Enterprise Edition (EE).
      
      This change adds support to bootstrap-servers for Docker CE for CentOS
      and Ubuntu.
      
      It also adds a new variable, 'enable_docker_repo', which controls
      whether a package repository for Docker will be enabled.
      
      It also adds a new variable, 'docker_legacy_packages', which controls
      whether the legacy packages at dockerproject.org will be used or the
      newer packages at docker.com. The default value for this variable is
      'false', meaning to use Docker CE.
      
      Upgrading from docker-engine to docker-ce has been tested on CentOS 7.5
      and Ubuntu 16.04, by running 'kolla-ansible bootstrap-servers' with
      'docker_legacy_packages' set to 'false'. The upgrades were successful,
      but result in all containers being stopped. For this reason, the
      bootstrap-servers command checks running containers prior to upgrading
      packages, and ensures they are running after the package upgrade is
      complete.
      
      As mentioned in the release note, care should be taken when upgrading
      Docker with clustered services, which could lose quorum. To avoid this,
      use --serial or --limit to apply the change in batches.
      
      Change-Id: I6dfd375c868870f8646ef1a8f02c70812e8f6271
      Implements: blueprint docker-ce
      48aea563
  26. Aug 03, 2018
  27. Jul 09, 2018
    • Mark Goddard's avatar
      Make sudoers config optional in bootstrap-servers · 8ec92df8
      Mark Goddard authored
      In some environments it may not be desirable to modify the sudoers
      configuration. This change makes this part of bootstrap-servers
      optional, based on the create_kolla_user_sudoers variable.
      
      Change-Id: I653403bfc5431741807edef57df58e05e679900b
      8ec92df8
  28. Jun 25, 2018
    • fan_guiju's avatar
      Add sudo package for bootstrap-servers · 9ff5d548
      fan_guiju authored
      sudo package is required when we use ubuntu base on centos to deploy.
      
      The following tasks belong to the environment check after
      installation of environment-related software packages.
      So, move to the post-install module.
      
          Create kolla user
          Add public key to kolla user authorized keys
          Grant kolla user passwordless sudo
          Ensure node_config_directory directory exists for user kolla
          Ensure node_config_directory directory exists
      
      Change-Id: I86bf5e1df3d6568c4f1ca6f4757f08a3dd22754d
      Closes-Bug: #1777571
      9ff5d548
  29. May 30, 2018
    • Kevin Tibi's avatar
      Add custom option for docker · b6bab5b9
      Kevin Tibi authored
      Some options can't be add in the daemon.json
      The only way to configure daemon is to add option in the service file
      
      Change-Id: I88697951ed6518f62bca30bb52288ad0e487ec03
      b6bab5b9
  30. Feb 27, 2018
  31. Feb 03, 2018
    • pengdake's avatar
      Update task about selinux set. · 4f98f08f
      pengdake authored
      1.Fix the invalid value about selinux policy
      2.Update description of task about selinux.The permissive mode
      need enable selinux.The parameter named "disable_selinux" is not good.
      In order to customize selinux modes, we need a new
      parameter named "selinux_state".
      
      Closes-Bug: #1749046
      Change-Id: I20c084cf2e46cc0de149afbd34c6dcb77a1051f4
      4f98f08f
  32. Jan 21, 2018
    • Mark Goddard's avatar
      Support virtualenv installation in baremetal role · 69979efc
      Mark Goddard authored
      Installing python packages directly to the system site-packages can
      cause various problems, in particular when pip overwrites a system
      package. Python virtualenvs are one solution to this issue, as they
      allow python packages to be installed in an isolated environment.
      
      This change adds support to the baremetal role for installing python
      dependencies in a virtualenv. Typically we will need to enable use of
      system site-packages from within this virtualenv, to support the use of
      modules such as yum, apt, and selinux, which are not available on PyPI.
      
      The path to the virtualenv is configured via the 'virtualenv' variable,
      and access to site-packages is controlled via
      'virtualenv_site_packages'.
      
      When executing other kolla-ansible commands, the variable
      'ansible_python_interpreter' should be set to the python interpreter
      installed in 'virtualenv'. Note that this variable cannot be templated.
      
      Change-Id: I0741923065246f9c5b168059fcd66504f2753c41
      Related-Bug: #1731026
      69979efc
  33. Jan 13, 2018
  34. Jan 09, 2018
  35. Sep 23, 2017
    • Eduardo Gonzalez's avatar
      Fix ci gate failure · fa06dcd3
      Eduardo Gonzalez authored
      
      This patch includes three unrelated fixes.
      
      Make qemu use nova user in centos
      Libvirt 3.2.0 (latest version in centos) seems to
      have changed behavior of dynamic_ownership.
      
      Pin ansible to <2.4 to make ara work in gates
      ARA does not work yet with ansible 2.4, this change
      pins to lower version to make gates work.
      Revert once ara works with 2.4
      
      Disable selinux for oraclelinux and centos.
      
      Co-Authored-By: default avatarwanghongxu <wang19930902@gmail.com>
      Co-Authored-By: default avatarJeffrey Zhang <jeffrey.zhang@99cloud.net>
      Change-Id: Iac8bec19437192cd198d58f71c6ed0a65a76f820
      Closes-bug: #1718541
      fa06dcd3
  36. Jul 23, 2017
  37. Jul 10, 2017
    • Michel Rode's avatar
      Added open-iscsi to default removals · 82fe7bc0
      Michel Rode authored
      The bootstrapping process should remove the open-iscsi package.
      Otherwise the iscsid startup will failed.
      
      Change-Id: I0c31c84f4486bd44c467fbaf7a26563e4dbc5ccf
      82fe7bc0
  38. May 12, 2017
  39. Jan 31, 2017
  40. Aug 31, 2016
    • Sean Mooney's avatar
      replace baremetal_nic with api_interface · 7f108480
      Sean Mooney authored
      - The baremetal_nic variable was used as part of
        kolla host playbook when generating the /etc/hosts file.
        Populating the /etc/hosts is done to ensure that rabbitmq
        can reach the other nodes in the rabbitmq cluster by hostname.
      - Before this change the baremetal_nic variable was used to
        determin which interface to read when mapping the hostname to
        an ip address.
      - This change removes baremetal_nic and uses api_interface
        instead as the hostname used by rabbitmq should always map to the
        api_interface ip.
      
      TrivialFix
      Closes-Bug: #1618381
      
      Change-Id: I65fe3aad58ac34b001a1f4a38641addc9fa5a1d4
      7f108480
Loading