- Feb 21, 2019
-
-
Guillaume Abrioux authored
We shouldn't reset `ceph_release` with `ceph_stable_release` when `ceph_repository` is `rhcs` Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1645379 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 2b60a356343677da6371b7861ee657bfd42c54fd)
-
- Feb 08, 2019
-
-
Leah Neukirchen authored
When {{omit}} is concatenated with another string, it expands to something like __omit_place_holder__63eea0d96dd6ed867b95405e11d87dddf61f448d. However, in these use-cases we need an empty string. Regression introduced in d53f55e8. Signed-off-by:
Leah Neukirchen <leah.neukirchen@mayflower.de>
-
- Jan 24, 2019
-
-
Guillaume Abrioux authored
when `ceph_origin` is set to `'repository'` and `ceph_repository` to `'community'` we need to ensure `ceph_release` reflect `ceph_stable_release`. 4a3f180f9d29d5a31468ebb3d1c5f31a53a93960 simply removed the override while it should just have to be run only when the condition mentioned above is satisfied. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 0bfefdd5bc06b4f1dd03d9060b0a38a6f447b207)
-
Guillaume Abrioux authored
This condition is useless and it's also creating issues we don't see in our CI. ceph_release is set by either ceph-common or ceph-docker-common so let's keep it this way. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1645379 (cherry picked from commit e9188cd202663656a773eb9e2276c6dbc0684599) Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com>
-
- Oct 19, 2018
-
-
Guillaume Abrioux authored
Move the handler to restart firewall in ceph-infra role. Closes: #3243 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com>
-
- Oct 10, 2018
-
-
Guillaume Abrioux authored
this role manages ceph infra services such as ntp, firewall, ... Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com>
-
Noah Watkins authored
Fixes the deprecation warning: [DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|search` use `result is search`. Signed-off-by:
Noah Watkins <nwatkins@redhat.com>
-
- Oct 06, 2018
-
-
Guillaume Abrioux authored
Check firewall isn't working as expected and might break deployments. This part of the code will be reworked soon. Let's focus on configure_firewall code for now. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1541840 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com>
-
- Oct 04, 2018
-
-
Rishabh Dave authored
Instead used "import_tasks" and "include_tasks" to tell whether tasks must be included statically or dynamically. Fixes: https://github.com/ceph/ceph-ansible/issues/2998 Signed-off-by:
Rishabh Dave <ridave@redhat.com>
-
- Oct 02, 2018
-
-
Benjamin Cherian authored
Allow user to choose between timesyncd, chronyd and ntpd Installation will default to timesyncd since it is distributed as part of the systemd installation for most distros. Added note indicating NTP daemon type is not used for containerized deployments. Fixes issue #3086 on Github Signed-off-by:
Benjamin Cherian <benjamin_cherian@amat.com>
-
- Sep 27, 2018
-
-
Rishabh Dave authored
Use "import_tasks" or "include_tasks" instead. Signed-off-by:
Rishabh Dave <ridave@redhat.com>
-
- Aug 22, 2018
-
-
Sébastien Han authored
A couple if things were wrong in the initial commit: * ceph_release_num[ceph_release] >= ceph_release_num['luminous'] will never work since the ceph_release fact is set in the roles after. So either ceph-common or ceph-docker-common set it * we can easily re-use the initial command to check if a cluster is running, it's more elegant than running it twice. * set the fact rgw_hostname on rgw nodes only Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1618678 Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Aug 21, 2018
-
-
Andy McCrae authored
The config_template plugin exists in the ceph-common role so that config_template will still work with ansible galaxy. This PR syncs the config_template module from the base of the repo in plugins/actions to the ceph-common role. Signed-off-by:
Andy McCrae <andy.mccrae@gmail.com>
-
- Aug 09, 2018
-
-
Sébastien Han authored
Since the container now simply reads the ceph.conf, we remove all the unnecessary options. Also this PR is the foundation to support multiple backend, such as the new 'beast' from Ceph Mimic. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1582411 Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Jul 04, 2018
-
-
Sébastien Han authored
We forgot to add mgr_group_name when checking for the mon repo, thus the conditional on the next task was failing. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1598185 Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Jun 29, 2018
-
-
Vasu Kulkarni authored
Signed-off-by:
Vasu Kulkarni <vasu@redhat.com>
-
- Jun 27, 2018
-
-
Andy McCrae authored
During 226f80c22bf61a7e8f00f4cca5f35eda67280250 only Debian package installs had the correct state set to ensure packages were upgraded when the "upgrade_ceph_packages" var was set to true. Signed-off-by:
Andy McCrae <andy.mccrae@gmail.com>
-
- Jun 18, 2018
-
-
Sébastien Han authored
Currently we expect that if configure_firewall is set to True to have firewalld enabled and running. Let's enforce that. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1589146 Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Jun 11, 2018
-
-
Sébastien Han authored
Prior to this patch if you were running on a Red Hat system, ceph-ansible would try to configure firewalld for you without the operators's consent. Now you can enable or disable the fw configuration by setting configure_firewall to either true or false. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1589146 Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Jun 07, 2018
-
-
Andrew Schoen authored
We need to do this because on dev or rhcs installs ceph_stable_release is not mandatory and the firewall check tasks have a task that is conditional based off the installed version of ceph. If we perform those checks after package install then they will not fail on dev or rhcs installs. Signed-off-by:
Andrew Schoen <aschoen@redhat.com>
-
- Jun 04, 2018
-
-
Sébastien Han authored
Prior to this commit the firewall tasks were not opening the ceph-mgr ports. This would lead to unclean configuration since the ceph-mgr daemons can not connect to the OSDs. Thi commit opens the right ports on the ceph-mgr nodes to talk with the OSDs. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1526400 Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Jun 01, 2018
-
-
Andrew Schoen authored
The first 14.x tag has been cut so this needs to be added so that version detection will still work on the master branch of ceph. Fixes: https://github.com/ceph/ceph-ansible/issues/2671 Signed-off-by:
Andrew Schoen <aschoen@redhat.com>
-
- May 18, 2018
-
-
Andrew Schoen authored
Signed-off-by:
Andrew Schoen <aschoen@redhat.com>
-
Andrew Schoen authored
Signed-off-by:
Andrew Schoen <aschoen@redhat.com>
-
- May 16, 2018
-
-
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.
-
- May 08, 2018
-
-
Sébastien Han authored
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1574458 Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- May 03, 2018
-
-
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:
Sébastien Han <seb@redhat.com>
-
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.
-
- Apr 23, 2018
-
-
Di Xu authored
works on AArch64 platform
-
- Apr 20, 2018
-
-
Sébastien Han authored
This is needed for both non-container and container deployments. Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Apr 17, 2018
-
-
Sébastien Han authored
When installing rhcs on Debian systems the red hat repos must have the highest priority so we avoid packages conflicts and install the rhcs version. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1565850 Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Apr 12, 2018
-
-
Sébastien Han authored
To install iscsi gw packages we need to enable the tools repo. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1547849 Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Apr 09, 2018
-
-
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.
-
Zack Cerza authored
No use even trying to use something that doesn't exist. Signed-off-by:
Zack Cerza <zack@redhat.com>
-
- Mar 15, 2018
-
-
Sébastien Han authored
The changes from these tasks only apply to osd nodes so there is no reason to have them in ceph-common. Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Mar 06, 2018
-
-
Sébastien Han authored
The command doesn't exist on Red Hat systems so it's better to skip it instead of ignoring the error. Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Mar 02, 2018
-
-
Sébastien Han authored
The command doesn't exist on Red Hat systems so it's better to skip it instead of ignoring the error. Signed-off-by:
Sébastien Han <seb@redhat.com>
-
- Feb 20, 2018
-
-
Andy McCrae authored
Using updatedb -e doesnt make a permanent change, but will updatedb without the passed path. To make this change more permanent we should update the /etc/updatedb.conf file to include /var/lib/ceph.
-
- Jan 31, 2018
-
-
Guillaume Abrioux authored
There is no need here to use `shell` instead of `command` Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com>
-
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:
Guillaume Abrioux <gabrioux@redhat.com>
-