- 02 Oct, 2019 2 commits
-
-
Guillaume Abrioux authored
There is no need to get n * number of nodes the different keyrings. Adding a `run_once: true` here avoid running a ceph command too many times which could be impacting large cluster deployment. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 9bad239d)
-
Dimitri Savineau authored
During the rolling_update scenario, the fsid value is retrieve from the current ceph cluster configuration via the ceph daemon config command. This command tries first to resolve the admin socket path via the ceph-conf command. Unfortunately this command won't work if you have a duplicate key in the ceph configuration even if it only produces a warning. As a result the task will fail. Can't get admin socket path: unable to get conf option admin_socket for mon.xxx: warning: line 13: 'osd_memory_target' in section 'osd' redefined Instead of using ceph daemon we can use the --admin-daemon option because we already know what the socket admin path value based on the ceph cluster and mon hostname values. Closes: #4492 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit ec3b687d)
-
- 01 Oct, 2019 8 commits
-
-
Guillaume Abrioux authored
Check for gpt header when osd scenario is lvm or lvm batch. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 272d16e1)
-
Guillaume Abrioux authored
rename this file to be more generic. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit ed8616aa)
-
Guillaume Abrioux authored
This commit moves containerized deployment related files to `./tasks/` directory. This is needed to make `docker-to-podman.yml` working since we use `tasks_from:` option. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit e08194dd)
-
Guillaume Abrioux authored
This commit moves containerized deployment related files to `./tasks/` directory. This is needed to make `docker-to-podman.yml` working since we use `tasks_from:` option. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit c69816c6)
-
Guillaume Abrioux authored
This commit moves containerized deployment related files to `./tasks/ directory. This is needed to make `docker-to-podman.yml` working since we use `tasks_from:` option. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 4636f3f7)
-
Guillaume Abrioux authored
this commit adds a new playbook to force systemd units for containers to use podman instead of docker. This is needed in the rhel8 upgrade context so after the base OS is upgraded containers can be started using podman. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit f2017dcd)
-
Guillaume Abrioux authored
This commit isolates the systemd unit files generation for containers into separate yml files in order to be able importing each corresponding roles without playing all tasks. This is needed so we can run ceph-ansible to render systemd unit files so they call podman instead of docker. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit bd641674)
-
Dimitri Savineau authored
e695efca hasn't been updated with the changes introduced in 9bb11c7b so the ips_in_ranges filter isn't used for an external grafana instance. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 20b1a464)
-
- 30 Sep, 2019 3 commits
-
-
Boris Ranto authored
The old default prometheus port 9090 clashes with cockpit in rhel 8. The 9090 port is reserved for web service administration of machines. We should change the default to something that does not clash with other ports used in rhel 8, at least by default. The port 9092 seems like a good choice in my testing. Signed-off-by:
Boris Ranto <branto@redhat.com> (cherry picked from commit b96c6da8)
-
Boris Ranto authored
For some reason, the floating tags were changed from v4.1 to just 4.1 for these images when switching ti registry.redhat.io. We should fix the locations. We are also changing the downstream grafana image to the one we used for rhcs 3. The ose grafana image lacks the support for a lot of features that we need (e.g. vonage and piechart grafana plugins, grafana-cli binary and others). Signed-off-by:
Boris Ranto <branto@redhat.com> (cherry picked from commit f067e53c)
-
Guillaume Abrioux authored
This was added for debugging purpose. It's generating very large log output, let's remove this now. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 01f6dd52)
-
- 29 Sep, 2019 1 commit
-
-
Guillaume Abrioux authored
This reverts commit 58b27ef0 . This is breaking debian based OS deployments. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit e4444d29)
-
- 28 Sep, 2019 1 commit
-
-
Guillaume Abrioux authored
after all mon are upgraded, let's reset mon_host which is used in the rest of the playbook for setting `container_exec_cmd` so we are sure to use the right value. Typical error: ``` failed: [mds0 -> mon0] (item={u'path': u'/var/lib/ceph/bootstrap-mds/ceph.keyring', u'name': u'client.bootstrap-mds', u'copy_key': True}) => changed=true ansible_loop_var: item cmd: - docker - exec - ceph-mon-mon2 - ceph - --cluster - ceph - auth - get - client.bootstrap-mds delta: '0:00:00.016294' end: '2019-09-27 13:54:58.828835' item: copy_key: true name: client.bootstrap-mds path: /var/lib/ceph/bootstrap-mds/ceph.keyring msg: non-zero return code rc: 1 start: '2019-09-27 13:54:58.812541' stderr: 'Error response from daemon: No such container: ceph-mon-mon2' stderr_lines: <omitted> stdout: '' stdout_lines: <omitted> ``` Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit d84160a1)
-
- 27 Sep, 2019 7 commits
-
-
Johannes Kastl authored
raw_install_python.yml: on SUSE/openSUSE, install python-xml package only if python2 is installed already Background: On SLES 15.x / openSUSE Leap 15.x, the python2 package `python-base` provides /usr/bin/python, while python3 only provides /usr/bin/python3. Signed-off-by:
Johannes Kastl <kastl@b1-systems.de> (cherry picked from commit a1811ca0)
-
Johannes Kastl authored
The package python-xml is needed for ansible's zypper module to interact with the zypper package management tool. roles/ceph-defaults/defaults/main.yml: Remove python-xml from variable suse_package_dependencies to only install python-xml on SUSE/openSUSE if python is not found. raw_install_python.yml already contains all the logic needed to check if there is a valid python installation, so this is better suited there. openSUSE Leap 15.x / SLES 15.x do no longer have /usr/bin/python, only /usr/bin/python3, which already contains the xml module, so nothing needs to be installed in that case. Signed-off-by:
Johannes Kastl <kastl@b1-systems.de> (cherry picked from commit 5cf22e9b)
-
Harald Jensås authored
This change implements a filter_plugin that is used in the ceph-facts, ceph-validate roles and infrastucture-playbooks. The new filter plugin will return a list of all IP address that reside in any one of the given IP ranges. The new filter replaces the use of the ipaddr filter. ceph.conf already support a comma separated list of CIDRs for the public_network and cluster_network options. Changes: [1] and [2] introduced a regression in ceph-ansible where public_network can no longer be a comma separated list of cidrs. With this change a comma separated list of subnet CIDRs can also be used for monitor_address_block and radosgw_address_block. [1] commit: d67230b2 [2] commit: 20e48528 Related-To: https://bugs.launchpad.net/tripleo/+bug/1840030 Related-To: https://bugzilla.redhat.com/show_bug.cgi?id=1740283 Closes: #4333 Please backport to stable-4.0 Signed-off-by:
Harald Jensås <hjensas@redhat.com> (cherry picked from commit e695efca)
-
Dimitri Savineau authored
Depending on the infrastruture (w/o kerberos auth) then the SecType value could be different. Currently this value is hardcoded in the NFS Ganesha template. Instead we can use a variable. The default value is still the same to avoid breaking the backward compatibility. Closes: #4459 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit ca77d7bd)
-
Dimitri Savineau authored
The set-prometheus-api-host ceph dashboard subcommand was missing in ceph-dashboard role. Only grafana and alermanager were present. This commit also remove the trailing slash at the end of the host/url values. Closes: #4453 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 74ab59c4)
-
Anthony Rusdi authored
Currently, ceph package only an meta-package that do not contain actual software, but simply depend on other packages. It's been few release since debian stretch (official), ubuntu bionic (official), ubuntu uca repository and upstream debian-jewel. As we only support nautilus and higher release for master branch, I propose to drop ceph package and use ceph-base instead for repository model other than rhcs so debian ceph install will be more minimalis. Signed-off-by:
Anthony Rusdi <33247310+antrusd@users.noreply.github.com> (cherry picked from commit 58b27ef0)
-
liuxu authored
download grafana dashboard files from github when running on Debian based OS Signed-off-by:
liuxu <liuxu623@gmail.com> (cherry picked from commit 195f7089)
-
- 26 Sep, 2019 11 commits
-
-
Sam Choraria authored
The rolling_update.yml playbook fails when scanning ceph-disk osds while deploying nautilus. The --force flag is required to scan existing osds and rewrite their json metadata. Signed-off-by:
Sam Choraria <sam.choraria@bbc.co.uk> (cherry picked from commit 7cc9f936)
-
fmount authored
This change just adds the task to inject from the ceph dashboard mgr module the required layouts to show all the cluster metrics on the grafana instance. Since we're now able to push grafana layouts through the ceph mgr module command, the dashboards configuration template is no longer needed on containerized environments. This commit also fixes the Vagrantfile IP static assigment in the grafana section because it generates an issue (it's the same of the mgr instance). Finally, considering some deployments that use an external grafana server instance, we reworked the 'grafana_server_addr' assignment to address these requirements. Signed-off-by:
fmount <fpantano@redhat.com> (cherry picked from commit 9bb11c7b)
-
Guillaume Abrioux authored
Typical error at rbd-target-api startup: ``` Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: Traceback (most recent call last): Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: File "/usr/bin/rbd-target-api", line 39, in <module> Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: from gwcli.utils import (APIRequest, valid_gateway, valid_client, Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: File "/usr/lib/python2.7/site-packages/gwcli/utils.py", line 1, in <module> Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: import requests Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: ImportError: No module named requests ``` Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 167737dd)
-
Guillaume Abrioux authored
ensure we get the latest jinja2 version. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 006df148)
-
Guillaume Abrioux authored
setting it at extra vars level prevent from setting it per node. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 5bb6a4da)
-
Guillaume Abrioux authored
This commit drops the fetch_directory dependency. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1622688 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit ab370b6a)
-
Guillaume Abrioux authored
This playbook helps to migrate all osds on a node from filestore to bluestore backend. Note that *ALL* osd on the specified osd nodes will be shrinked and redeployed. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1729267 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 3f9ccdaa)
-
Guillaume Abrioux authored
This commit adds the `wal_devices` option support to the ceph_volume module. passing a devices list in `bluestore_wal_devices` will make ceph-volume creating 1 vg using these devices to create block.wal partitions. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 09e04a91)
-
Guillaume Abrioux authored
This commit removes ceph-disk references. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 70f1b370)
-
Guillaume Abrioux authored
This commit adds the `block_db_devices` option support to the ceph_volume module. passing a devices list in `dedicated_devices` will make ceph-volume creating 1 vg using these devices to create block.db partitions for data devices. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 7b836eaa)
-
Guillaume Abrioux authored
This commit fixes a typo. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit c785ad36)
-
- 25 Sep, 2019 1 commit
-
-
Mehdy authored
the confirmation play's name should confirm removing rgw instead of monitor Signed-off-by:
Mehdy Khoshnoody <mehdy.khoshnoody@gmail.com> (cherry picked from commit 9fa98d79)
-
- 18 Sep, 2019 5 commits
-
-
Dimitri Savineau authored
The only useful ansible group for the grafana/prometheus stack is grafana-server so no one of those files are actually needed. The default values for all dashboard roles are present in ceph-defaults role so it's also present in in group_vars/all.yml. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit ec56a950)
-
Guillaume Abrioux authored
This commit adds a condition to check whether these variables are empty. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 2b97ac92)
-
Dimitri Savineau authored
The registry.redhat.io regsitry requires authentication so before pulling the RHCS 4 container images from the registry we need to do the login step. This is done via the new ceph_docker_registry_auth variable. The default value is false but true for RHCS setup. When set to true, you need to provide the username and password for the registry via the associated variables. This patch also updates the ceph_docker_registry value for RHCS setup. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1748911 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 9f4a99fb)
-
Dimitri Savineau authored
On RHEL 8 system we should check the /usr/libexec/platform-python path instead of installing python36 package. [DEPRECATION WARNING]: Distribution redhat 8.0 on host xxxxx should use /usr/libexec/platform-python, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit f90696c3)
-
Dimitri Savineau authored
If we're looking at the mon hostname in the ceph status output then there's some scenarios where this could be true. If we collocate some services (mons, mgrs, etc..) then the hostname of the monitor to shrink will still be present in the ceph status (like in mgrs or other). Instead we should check the hostame only in the mon part of the output. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 734c0dc3)
-
- 11 Sep, 2019 1 commit
-
-
Dimitri Savineau authored
In containerized deployment, the restart OSD handler couldn't be triggered in most ansible execution. This is due to the usage of run_once + a condition on the inventory hostname and the last filter. The run_once is triggered first so ansible will pick a node in the osd group to execute the restart task. But if this node isn't the last one in the osd group then the task is ignored. There's more probability that the task will be ignored than executed. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 5b1c1565)
-