Skip to content
Snippets Groups Projects
  1. 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
  2. Feb 21, 2020
  3. Oct 24, 2019
    • Mark Goddard's avatar
      Fix kolla-bootstrap-servers with docker_storage_driver set · 12987ca0
      Mark Goddard authored
      If docker_storage_driver is set in globals.yml, then kolla-ansible
      bootstrap-servers is run, it fails like so:
      
      The conditional check 'docker_storage_driver' failed. The error was: error
      while evaluating conditional (docker_storage_driver): 'devicemapper' is
      undefined
      
      Ansible does not like evaluating strings as conditionals. This change switches
      to using the length filter.
      
      Change-Id: Ib95cbdac2a659e7a0d5f113fe48046de3a39dcda
      Closes-Bug: #1849691
      12987ca0
  4. Sep 05, 2019
  5. Jun 06, 2019
  6. Apr 02, 2019
    • Mark Goddard's avatar
      Fix up config file permissions on the host · a4bb8567
      Mark Goddard authored
      Several config file permissions are incorrect on the host. In general,
      files should be 0660, and directories and executables 0770.
      
      Change-Id: Id276ac1864f280554e98b937f2845bb424d521de
      Closes-Bug: #1821579
      a4bb8567
  7. Mar 25, 2019
    • Mark Goddard's avatar
      Remove recurse: yes for owner/perms on /etc/kolla · 6b0be5c5
      Mark Goddard authored
      When kolla-ansible bootstrap-servers is run, it executes one of the
      following two tasks:
      
      - name: Ensure node_config_directory directory exists for user kolla
        file:
          path: "{{ node_config_directory }}"
          state: directory
          recurse: true
          owner: "{{ kolla_user }}"
          group: "{{ kolla_group }}"
          mode: "0755"
        become: True
        when: create_kolla_user | bool
      
      - name: Ensure node_config_directory directory exists
        file:
          path: "{{ node_config_directory }}"
          state: directory
          recurse: true
          mode: "0755"
        become: True
        when: not create_kolla_user | bool
      
      On the first run, normally node_config_directory (/etc/kolla/) doesn't
      exist, so it is created with kolla:kolla ownership and 0755 permissions.
      
      If we then run 'kolla-ansible deploy', config files are created for
      containers in this directory, e.g. /etc/kolla/nova-compute/. Permissions
      for those files should be set according to 'config_owner_user' and
      'config_owner_group'.
      
      If at some point we again run kolla-ansible bootstrap-servers, it will
      recursively set the ownership and permissions of all files in /etc/kolla
      to kolla:kolla / 0755.
      
      The solution is to change bootstrap-servers to not set the owner and
      permissions recursively. It's also arguable that /etc/kolla should be
      owned by 'config_owner_user' and 'config_owner_group', rather than
      kolla:kolla, although that's a separate issue.
      
      Change-Id: I24668914a9cedc94d5a6cb835648740ce9ce6e39
      Closes-Bug: #1821599
      6b0be5c5
  8. Jul 10, 2018
    • Mark Goddard's avatar
      Fix sudoers in bootstrap-servers when user != group · 0cc2daa5
      Mark Goddard authored
      In some cases we may want a configuration in which the kolla user's
      primary group name is not the same as their username. Doing this
      currently breaks the sudoers configuration, since user entries should
      reference a user, or a group prefixed with a '%'.
      
      There does not seem to be a good reason to give root privileges to the
      entire group (which sometimes may be a shared group), so let's revert to
      giving only the user root privileges.
      
      See kayobe CI test [1] in which a different user and group were
      configured, leading to permission denied when using kolla ansible.
      
      [1] http://logs.openstack.org/53/581053/2/check/kayobe-overcloud-centos/a70168e
      
      TrivialFix
      
      Change-Id: I677778ebd0de58df0adfa2a8705f161ec5552283
      0cc2daa5
  9. 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
    • Mark Goddard's avatar
      Append to kolla user groups in bootstrap-servers · 2a69050e
      Mark Goddard authored
      This makes the bootstrap-servers command more idempotent, since without
      the append argument set the kolla user will be removed from the docker
      group before being added to it again in a later task.
      
      TrivialFix
      
      Change-Id: Iab0f6b5e18a103e9140631ee3ebbbb48c490bc24
      2a69050e
    • Mark Goddard's avatar
      Fix ownership of virtualenv in bootstrap-servers · 4283dff9
      Mark Goddard authored
      In I86bf5e1df3d6568c4f1ca6f4757f08a3dd22754d, creation of the kolla user
      was moved to after package installation to ensure the sudo package is
      installed when required. This change does not work when python
      dependencies are installed in a virtual environment however - when the
      virtualenv variable is set.
      
      This change moves the ownership change of the virtualenv to after the
      kolla user has been created. It also uses the kolla_user and kolla_group
      variables to set the user and group appropriately.
      
      Change-Id: I320e5d611099ad162945a98d5505a79606da0eba
      TrivialFix
      4283dff9
  10. 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
  11. 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
  12. Feb 27, 2018
  13. Feb 26, 2018
    • caoyuan's avatar
      Fix the warning when reload the docker · 37ef38b6
      caoyuan authored
      use systemd module to reload the docker service, rather than
      command
      
      Change-Id: I2e3b2299365701a08de4025d6ad34cb492b33fda
      Closes-Bug: #1751690
      37ef38b6
  14. 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
  15. Jan 09, 2018
  16. 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
  17. Sep 19, 2017
    • Eduardo Gonzalez's avatar
      Unify global syntax in baremetal role · aa0209c9
      Eduardo Gonzalez authored
      Baremetal roles does not keep common sytax used
      in rest of the roles, even it baremetal role some
      tasks differs in syntax with each others.
      
      Change-Id: Ib04fe123501e2a3e829176953f20719a253999d3
      aa0209c9
  18. Jul 23, 2017
  19. Jul 10, 2017
  20. Jun 28, 2017
  21. Jun 26, 2017
  22. Jun 21, 2017
    • Michal (inc0) Jastrzebski's avatar
      Fix baremetal role idempotency · 2e3b6639
      Michal (inc0) Jastrzebski authored
      When you add new nodes to existing cluster, docker will restart
      all anyway and that will break a lot, including mariadb.
      
      Change-Id: Ie46f99a141f99480a87218ead4b76ba65f2edae9
      Closes-Bug: #1699335
      2e3b6639
  23. Mar 02, 2017
  24. Dec 07, 2016
    • zhuzeyu's avatar
      Optimize the code · 49c0ca3a
      zhuzeyu authored
      make bool filter more consistence between all roles.
      
      TrivialFix
      
      Change-Id: Icd51749039b1448e09a4713da093b16f965f9ed8
      49c0ca3a
  25. Oct 27, 2016
  26. Oct 06, 2016
  27. Sep 12, 2016
  28. Aug 10, 2016
Loading