- 25 Oct, 2019 4 commits
-
-
Guillaume Abrioux authored
This must be consistent with what is used in `name` parameter. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit d06057eb)
-
Guillaume Abrioux authored
otherwise a single MDS would never be updated. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit d8ab11d2f8e08c28731f783d592507dd198b5742)
-
Guillaume Abrioux authored
Let's skip this part of the code if there's no mds node in the inventory. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 5ec906c3)
-
Dimitri Savineau authored
The ceph-container-engine role is missing from both playbooks so the container engine (docker, podman) isn't install resulting in a failure on the added nodes. fatal: [xxxxx]: FAILED! => changed=false cmd: docker --version msg: '[Errno 2] No such file or directory' rc: 2 Closes: #4634 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit bfb1d6be)
-
- 24 Oct, 2019 1 commit
-
-
Dimitri Savineau authored
Add ceph_docker_registry_username and ceph_docker_registry_password variables in ceph-defaults role so they will be present in the group_vars samples but commented. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1763139 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit b33c476f)
-
- 23 Oct, 2019 8 commits
-
-
Guillaume Abrioux authored
on master, it doesn't make sense anymore to use device name, we should use osd id instead. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit b5a61fe2)
-
Guillaume Abrioux authored
This commit removes the backslash in allow command parameter, this was needed before the ceph_key module integration. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 384161ed)
-
Dimitri Savineau authored
It doesn't make sense to test the old 3.0.x container images with nautilus+ ceph releases. Also disable the dashboard deployment and switch to bluestore backend. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 3c2840da)
-
Dimitri Savineau authored
When deploying with ceph-iscsi nodes and dashboard enabled, we need to add the ceph iscsi gateway endpoints to the dashboard configuration and add the mgr ip address in the trusted list in the iscsi gateway configuration file. Closes: #4638 Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1764173 https://docs.ceph.com/docs/master/mgr/dashboard/#enabling-iscsi-management Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit d050391c)
-
Dimitri Savineau authored
This commit adds the support of the ceph-iscsi stable repository when use ceph_repository community instead of always using the devel repositories. We're still using the devel repositories for rtslib and tcmu-runner in both cases (dev and community). Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit f2cb9371)
-
Dimitri Savineau authored
We don't have to use ceph_iscsi_config_dev (default true) on RHCS because all iscsi packages are already included in the RHCS repositories. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 82495eaf)
-
Dimitri Savineau authored
We don't need this since [1]. Also this was only working for python2 and not supporting python3. [1] https://github.com/ceph/ceph-iscsi/commit/00f198a This reverts commit 167737dd . Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit fd8d47da)
-
Dimitri Savineau authored
When deploying with packages then the ceph-container-common role isn't executed so the registry authentication task is ignored. Closes: #4636 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 9ad00061)
-
- 21 Oct, 2019 4 commits
-
-
Dimitri Savineau authored
If ansible-lint reports an error then it's skipped. We should fail in this case. This patch also fixes the pipefail lint in the rbd mirror role [306] Shells that use pipes should set the pipefail option Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 3969470f)
-
Dimitri Savineau authored
[303] mktemp used in place of tempfile module [602] Don't compare to empty string [701] No 'galaxy_info' found [702] Use 'galaxy_tags' rather than 'categories' This patch also changes the ansible log_path value via the ANSIBLE_LOG_PATH environment variable in the travis configuration to avoid warnings. [WARNING]: log file at /home/travis/ansible/ansible.log is not writeable and we cannot create it, aborting Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit f7fd0b6d)
-
Guillaume Abrioux authored
This task is failing when `ceph_docker_registry_auth` is enabled and `ceph_docker_registry_username` is undefined with an ansible error instead of the expected message. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1763139 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit da4215e9)
-
Guillaume Abrioux authored
Add missing quote in order to keep consistency. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 8d72ff8e)
-
- 18 Oct, 2019 7 commits
-
-
Dimitri Savineau authored
We should show the ceph cluster status as the last task of the playbook. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 47ce9c0d)
-
Dimitri Savineau authored
The [group|host]_vars directories are ignored for the dashboard playbook when the inventory file directory doesn't contain those directories. Closes: #4601 Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1761612 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 84268562)
-
Dimitri Savineau authored
The commit replaces the pv/vg/lv commands used with the ansible command module by the lvg and lvol modules. This also fixes the size of the second data LV because we were only using 50% of the remaining space instead of 100%. With a 50G device, the result was: - data-lv1 was 25G - data-lv2 was 12.5G Instead of: - data-lv1 was 25G - data-lv2 was 25G Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 2c03c6fc)
-
Guillaume Abrioux authored
This commit makes the all_daemons scenario deploying 3 mds in order to cover the multimds case. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 25b98b2c)
-
Guillaume Abrioux authored
This commit fixes the standby_mdss group creation by using `{{ item }}`. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit c4fc8cc8)
-
Dimitri Savineau authored
We don't need to have high handler delay in the CI so reducing to 10 seconds. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 04ec1ad3)
-
Guillaume Abrioux authored
Otherwise it fails like following: ``` TASK [ceph-mds : allow multimds] ************************************************************************************************************************************************** Monday 22 July 2019 16:37:38 +0800 (0:00:03.269) 0:13:25.651 *********** fatal: [rhel7u6clone1]: FAILED! => {"msg": "The conditional check 'ceph_release_num[ceph_release] == ceph_release_num.luminous' failed. The error was: error while evaluating conditional (ceph_release_num[ceph_release] == ceph_release_num.luminous): 'dict object' has no attribute u'dummy'\n\nThe error appears to have been in '/usr/share/ceph-ansible/roles/ceph-mds/tasks/create_mds_filesystems.yml': line 43, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: allow multimds\n ^ here\n"} ``` Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1645379 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 4e9504c9)
-
- 16 Oct, 2019 8 commits
-
-
Guillaume Abrioux authored
this task is a leftover and no longer needed. It even causes bug when collocating nfs with mon. Closes: #4609 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit b63bd130)
-
Mike Christie authored
When using python3 the name of the rtslib rpm is python3-rtslib. The packages that use rtslib already have code that detects the python version and distro deps, so drop it from the ceph iscsi gw task list and let the ceph-iscsi rpm dependency handle it. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1760930 Signed-off-by:
Mike Christie <mchristi@redhat.com> (cherry picked from commit ba141298)
-
Dimitri Savineau authored
Due the 'failed_when: false' statement present in the peer task then the playbook continues to ran even if the peer task was failing (like incorrect remote peer format. "stderr": "rbd: invalid spec 'admin@cluster1'" This patch adds a task to list the peer present and add the peer only if it's not already added. With this we don't need the failed_when statement anymore. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1665877 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 0b1e9c07)
-
Guillaume Abrioux authored
Refact the mds cluster upgrade code in order to follow the documented recommandation. See: https://github.com/ceph/ceph/blob/master/doc/cephfs/upgrading.rst Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1569689 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 71cebf80)
-
Dimitri Savineau authored
When the iscsi gateway or the ceph configuration file change then we need to notify the rbd target api/gw services to be restarted. This patch also merges the rbd-target-api and rbd-target-gw handler into a single file and listen. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit bc701860)
-
Dimitri Savineau authored
The common roles don't need to be executed again on each group plays (like mons, osds, etc..). We only need to execute them during the first play. That wat, we will apply the changes on all nodes in parallel instead of doing it once per group. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 68a3dac7)
-
Dimitri Savineau authored
The is_atomic and container_binary facts are already defined in the ceph-facts role so we don't need to have dedicated tasks for that before the ceph-facts role exectution. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 643b50bd)
-
Guillaume Abrioux authored
There is no need to loop over all mgr nodes to set this fact, it's even breaking deployments because it tries to copy all mgr keyring on all mgr. Closes: #4602 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit cb802317)
-
- 15 Oct, 2019 4 commits
-
-
Dimitri Savineau authored
We are using multiple listen topics with the handlers. That means that we are notifying 4 tasks for each handler. Instead we can group the listen on an include_tasks and based on the group condition. Before: NOTIFIED HANDLER ceph-handler : set _mon_handler_called before restart for mon0 NOTIFIED HANDLER ceph-handler : copy mon restart script for mon0 NOTIFIED HANDLER ceph-handler : restart ceph mon daemon(s) for mon0 NOTIFIED HANDLER ceph-handler : set _mon_handler_called after restart for mon0 NOTIFIED HANDLER ceph-handler : set _osd_handler_called before restart for mon0 NOTIFIED HANDLER ceph-handler : copy osd restart script for mon0 NOTIFIED HANDLER ceph-handler : restart ceph osds daemon(s) for mon0 NOTIFIED HANDLER ceph-handler : set _osd_handler_called after restart for mon0 NOTIFIED HANDLER ceph-handler : set _mds_handler_called before restart for mon0 NOTIFIED HANDLER ceph-handler : copy mds restart script for mon0 NOTIFIED HANDLER ceph-handler : restart ceph mds daemon(s) for mon0 NOTIFIED HANDLER ceph-handler : set _mds_handler_called after restart for mon0 NOTIFIED HANDLER ceph-handler : set _rgw_handler_called before restart for mon0 NOTIFIED HANDLER ceph-handler : copy rgw restart script for mon0 NOTIFIED HANDLER ceph-handler : restart ceph rgw daemon(s) for mon0 NOTIFIED HANDLER ceph-handler : set _rgw_handler_called after restart for mon0 NOTIFIED HANDLER ceph-handler : set _mgr_handler_called before restart for mon0 NOTIFIED HANDLER ceph-handler : copy mgr restart script for mon0 NOTIFIED HANDLER ceph-handler : restart ceph mgr daemon(s) for mon0 NOTIFIED HANDLER ceph-handler : set _mgr_handler_called after restart for mon0 NOTIFIED HANDLER ceph-handler : set _rbdmirror_handler_called before restart for mon0 NOTIFIED HANDLER ceph-handler : copy rbd mirror restart script for mon0 NOTIFIED HANDLER ceph-handler : restart ceph rbd mirror daemon(s) for mon0 NOTIFIED HANDLER ceph-handler : set _rbdmirror_handler_called after restart for mon0 After: NOTIFIED HANDLER ceph-handler : mons handler for mon0 NOTIFIED HANDLER ceph-handler : osds handler for mon0 NOTIFIED HANDLER ceph-handler : mdss handler for mon0 NOTIFIED HANDLER ceph-handler : rgws handler for mon0 NOTIFIED HANDLER ceph-handler : mgrs handler for mon0 NOTIFIED HANDLER ceph-handler : rbdmirrors handler for mon0 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit fe9c5b8c)
-
Guillaume Abrioux authored
This commit adds some missing `| bool` filters. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit ccc11cfc)
-
Guillaume Abrioux authored
This commit merges the two restart tasks into a single one, this way it's one task less to notify. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 411bd07d)
-
Dimitri Savineau authored
The current ceph-validate role is using both validate action and fail module tasks to validate the ceph configuration. The validate action is based on the notario python library. When one of the notario validation fails then a python stack trace is reported to the ansible task. This output isn't understandable by users. This patch removes the validate action and the notario depencendy. The validation is now done with only fail ansible module. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1654790 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 0f978d96)
-
- 14 Oct, 2019 1 commit
-
-
Dimitri Savineau authored
This is already done in the main playbooks but absent in the dashboard playbook. The facts are already gathered during the first play of the main playbooks so we don't need to doing twice. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 5ae7304a)
-
- 11 Oct, 2019 2 commits
-
-
Guillaume Abrioux authored
Delegating on remote node isn't necessary here since we are already iterating over the right nodes. Closes: #4518 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 16117052)
-
Guillaume Abrioux authored
This commit adds a validation task to prevent from installing an OSD on the same disk as the OS. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1623580 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 80e2d00b)
-
- 10 Oct, 2019 1 commit
-
-
Guillaume Abrioux authored
This commit removes some legacy tasks. These tasks aren't needed, they cause the playbook to fail when collocating daemons. Closes: #4553 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 27341318)
-