Skip to content
Snippets Groups Projects
  1. Feb 21, 2019
  2. Feb 08, 2019
  3. Jan 24, 2019
  4. Oct 19, 2018
  5. Oct 10, 2018
  6. Oct 06, 2018
  7. Oct 04, 2018
  8. Oct 02, 2018
  9. Sep 27, 2018
  10. Aug 22, 2018
  11. Aug 21, 2018
  12. Aug 09, 2018
  13. Jul 04, 2018
  14. Jun 29, 2018
  15. Jun 27, 2018
  16. Jun 18, 2018
  17. Jun 11, 2018
  18. Jun 07, 2018
  19. Jun 04, 2018
  20. Jun 01, 2018
  21. May 18, 2018
  22. May 16, 2018
    • Andy McCrae's avatar
      Install packages as a list · d6cce800
      Andy McCrae authored
      To make the package installation more efficient we should install
      packages as a list rather than as individual tasks or using a
      "with_items" loop. The package managers can handle a list passed to them
      to install in one go.
      
      We can use a specified list and substitute any packages that are not to
      be installed with the ceph-common package, which is installed on every
      package install, then apply the unique filter to the package install
      list.
      d6cce800
  23. May 08, 2018
  24. May 03, 2018
    • Sébastien Han's avatar
      common: copy iso files if rolling_update · 83949bb9
      Sébastien Han authored
      If we are in a middle of an update we want to get the new package
      version being installed so the task that copies the repo files should
      not be skipped.
      
      Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1572032
      
      
      Signed-off-by: default avatarSébastien Han <seb@redhat.com>
      v3.1.0beta9
      83949bb9
    • Andy McCrae's avatar
      Move apt cache update to individual task per role · 781519d8
      Andy McCrae authored
      The apt-cache update can fail due to transient issues related to the
      action being a network operation. To reduce the impact of these
      transient failures this patch adds a retry to the update_cache task.
      
      However, the apt_repository tasks which would perform an apt_update
      won't retry the apt_update on a failure in the same way, as such this PR
      moves the apt_update into an individual task, once per role.
      
      Finally, the apt_repository tasks no longer have a changed_when: false,
      and the apt_cache update is only performed once per role, if the
      repositories change. Otherwise the cache is updated on the "apt" install
      tasks if the cache_timeout has been reached.
      781519d8
  25. Apr 23, 2018
  26. Apr 20, 2018
  27. Apr 17, 2018
  28. Apr 12, 2018
  29. Apr 09, 2018
    • Ken Dreyer's avatar
      common: upgrade/install ceph-test RPM first · 8459f142
      Ken Dreyer authored
      Prior to this change, if a user had ceph-test-12.2.1 installed, and
      upgraded to ceph v12.2.3 or newer, the RPM upgrade process would
      fail.
      
      The problem is that the ceph-test RPM did not depend on an exact version
      of ceph-common until v12.2.3.
      
      In Ceph v12.2.3, ceph-{osdomap,kvstore,monstore}-tool binaries moved
      from ceph-test into ceph-base. When ceph-test is not yet up-to-date, Yum
      encounters package conflicts between the older ceph-test and newer
      ceph-base.
      
      When all users have upgraded beyond Ceph < 12.2.3, this is no longer
      relevant.
      2 tags
      8459f142
    • Zack Cerza's avatar
      Use the CentOS repo for Red Hat dev packages · 587e900c
      Zack Cerza authored
      
      No use even trying to use something that doesn't exist.
      
      Signed-off-by: default avatarZack Cerza <zack@redhat.com>
      587e900c
  30. Mar 15, 2018
  31. Mar 06, 2018
  32. Mar 02, 2018
  33. Feb 20, 2018
  34. Jan 31, 2018
    • Guillaume Abrioux's avatar
      common: do not use `shell` module when it is not needed · 5eef520f
      Guillaume Abrioux authored
      
      There is no need here to use `shell` instead of `command`
      
      Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
      5eef520f
    • Guillaume Abrioux's avatar
      syntax: change local_action syntax · dc9f358e
      Guillaume Abrioux authored
      Use a nicer syntax for `local_action` tasks.
      We used to have oneliner like this:
      ```
      local_action: wait_for port=22 host={{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }} state=started delay=10 timeout=500 }}
      ```
      
      The usual syntax:
      ```
          local_action:
            module: wait_for
            port: 22
            host: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
            state: started
            delay: 10
            timeout: 500
      ```
      is nicer and kind of way to keep consistency regarding the whole
      playbook.
      
      This also fix a potential issue about missing quotation :
      
      ```
      Traceback (most recent call last):
        File "/tmp/ansible_wQtWsi/ansible_module_command.py", line 213, in <module>
          main()
        File "/tmp/ansible_wQtWsi/ansible_module_command.py", line 185, in main
          rc, out, err = module.run_command(args, executable=executable, use_unsafe_shell=shell, encoding=None, data=stdin)
        File "/tmp/ansible_wQtWsi/ansible_modlib.zip/ansible/module_utils/basic.py", line 2710, in run_command
        File "/usr/lib64/python2.7/shlex.py", line 279, in split
          return list(lex)                                                                                                                                                                                                                                                                                                            File "/usr/lib64/python2.7/shlex.py", line 269, in next
          token = self.get_token()
        File "/usr/lib64/python2.7/shlex.py", line 96, in get_token
          raw = self.read_token()
        File "/usr/lib64/python2.7/shlex.py", line 172, in read_token
          raise ValueError, "No closing quotation"
      ValueError: No closing quotation
      ```
      
      writing `local_action: shell echo {{ fsid }} | tee {{ fetch_directory }}/ceph_cluster_uuid.conf`
      can cause trouble because it's complaining with missing quotes, this fix solves this issue.
      
      Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1510555
      
      
      
      Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
      dc9f358e
Loading