- 30 Aug, 2019 3 commits
-
-
Johannes Kastl authored
Instead of hardcoding `luminous`, use the `ceph_stable_release` variable to point to the correct repository. This is now uncommented in roles/ceph-defaults/defaults/main.yml to be available, as it is only used if ceph_repository is set to 'obs'. group_vars/*.sample files have been regenerated using the ./generate_group_vars_sample.sh script. Signed-off-by:
Johannes Kastl <kastl@b1-systems.de> (cherry picked from commit 0cedc4d3)
-
fmount authored
We have no reason to make grafana container listen on *:<port>, so this change adds the http_addr option to the grafana config file and adds the related option on the wait_for tasks. Since grafana_server_addr should exists, we shouldn't rely on the _current_monitor_addr default on prometheus/grafana templates. This change also remove this default value that is not necessary anymore. Signed-off-by:
fmount <fpantano@redhat.com> (cherry picked from commit 8a666bfd)
-
Dimitri Savineau authored
[201] Trailing whitespace [206] Variables should have spaces before and after: {{ var_name }} Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 42082c0a)
-
- 29 Aug, 2019 2 commits
-
-
Johannes Kastl authored
roles/ceph-common/tasks/installs/suse_obs_repository.yml: ansible's zypper_repository module does not know a parameter 'uri', this is called 'repo' instead Signed-off-by:
Johannes Kastl <kastl@b1-systems.de> (cherry picked from commit 4711a7d6)
-
Nick Erdmann authored
Signed-off-by:
Nick Erdmann <n@nirf.de> (cherry picked from commit 7953ee1b)
-
- 28 Aug, 2019 6 commits
-
-
Dimitri Savineau authored
We don't use multiple grafana nodes for the moment on the others scenarios and I don't think this is supposed to be working. We can often see failure on grafana on that scenario. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 825045f6)
-
Guillaume Abrioux authored
This commit fixes the error [301]: `[301] Commands should not change things if nothing needs doing` Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 327d5641)
-
Guillaume Abrioux authored
This commit fixes the error [306]: `[306] Shells that use pipes should set the pipefail option` using `/bin/bash` as executable because Debian/Ubuntu systems use `dash` by default which doesn't have the `-o pipefail`. (See: https://github.com/ansible/ansible-lint/issues/497#issue-424623501 ) Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 102edaeb)
-
Dimitri Savineau authored
On containerized deployment, the mon container sometimes needs to access to the radosgw endpoint (via the radosgw-admin command). When using TLS on the radosgw with self-signed certificates then we need to access to the CA certification from the mon container. The CA certificate needs to be added on the host and then the directory will be bind mount on the container. Resolves: #4358 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 2b0616ec)
-
Dimitri Savineau authored
Like the OpenStack keyrings, we can use the profile rbd for the clients keyring (both mon and osd). Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 49aa05b9)
-
Dimitri Savineau authored
This reverts commit 2d955757 . The "osd blacklist" isn't an osd caps but should be used with mon caps. Also the correct caps for this is: 'allow command "osd blacklist"'. The current change is breaking the openstack and clients keyrings. By using the profile rbd (which is already used) we already rely on the ability to blacklist dead client. Resolves: #4385 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 717af834)
-
- 27 Aug, 2019 1 commit
-
-
Johannes Kastl authored
If the user has set the `ansible_python_interpreter`, ansible will not try to discover python, so `discovered_python_interpreter` will not be set. Solution: Set `discovered_python_interpreter` to `ansible_python_interpreter` if `ansible_python_interpreter` is defined Signed-off-by:
Johannes Kastl <kastl@b1-systems.de> (cherry picked from commit bd507fa1)
-
- 23 Aug, 2019 2 commits
-
-
guihecheng authored
since the following commit: commit 1ac94c04 rgw: add support for multiple rgw instances on a single host we have multi-instance rgw support on a single host and the config section name of the rgw changed from [client.rgw.$(hostname)] -> [client.rgw.$(hostname).rgwX] when X is the sequence number: 0,1,2,... So we should assign 'rgw_zone' item to the exact rgw instance config section in ceph.conf Signed-off-by:
guihecheng <guihecheng@cmiot.chinamobile.com> (cherry picked from commit a0590cae)
-
Artur Fijalkowski authored
This commit makes it possible to parametrize the ceph directories modes. So it changes hardocded mode for ceph related directories from 0755 to customizable with `ceph_directories_mode` variable. Closes: #2920 Signed-off-by:
Artur Fijalkowski <artur.fijalkowski@ing.com> Co-authored-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 011270ca)
-
- 22 Aug, 2019 4 commits
-
-
Dimitri Savineau authored
On containerized deployment, the OSD entrypoint runs some ceph-volume commands (lvm/simple scan and/or activate) which perform badly without the ulimit option. This option was added for all previous ceph-volume commands but not on the ceph-osd container startup. Also updating hard limit value to 4096 to reflect default baremetal value. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 9a4ac46d)
-
Kevin Coakley authored
The "run 'ceph-volume lvm batch --report' to see how many osds are to be created" and "run 'ceph-volume lvm list' to see how many osds have already been created" statements only register the lvm_batch_report and lvm_list variables. Running those ceph-volume commands should never produce a change on the system. Adding changed_when: false prevents irrelevant change messages from Ansible. Signed-off-by:
Kevin Coakley <kcoakley@sdsc.edu> (cherry picked from commit e11cbbbc)
-
Johannes Kastl authored
This commit fixes a typo in roles/ceph-facts/tasks/facts.yml Signed-off-by:
Johannes Kastl <kastl@b1-systems.de> (cherry picked from commit e1b93120)
-
Kevin Jones authored
By changing the set ownership command from using the file module in combination with a with_items loop to a raw chown command, we can achieve a 98% performance increase here. On a ceph cluster with a significant amount of directories and files in /var/lib/ceph, the file module has to run checks on ownership of all those directories and files to determine whether a change is needed. In this case, we just want to explicitly set the ownership of all these directories and files to the ceph_uid Added context note to all set proper ownership tasks Signed-off-by:
Kevin Jones <kevinjones@redhat.com> (cherry picked from commit 47bf47c9)
-
- 21 Aug, 2019 3 commits
-
-
Johannes Kastl authored
roles/ceph-validate/tasks/check_nfs.yml: fail on openSUSE Leap using `ceph_origin = distro`, as the ganesha packages are not available from the distribution repositories Fixes: #4342 Signed-off-by:
Johannes Kastl <kastl@b1-systems.de> (cherry picked from commit 11aa5dbb)
-
Guillaume Abrioux authored
Otherwise rgw handler ends up with an error when using https. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 9329bbb3)
-
Johannes Kastl authored
install packages on SUSE/openSUSE distributions, using the same logic as on RedHat-based distributions Fixes #4340 Signed-off-by:
Johannes Kastl <kastl@b1-systems.de> (cherry picked from commit c721cb99)
-
- 20 Aug, 2019 5 commits
-
-
Johannes Kastl authored
roles/ceph-common/tasks/installs/install_on_suse.yml: remove the task that installs the dependencies, as this is done later in install_suse_packages.yml Signed-off-by:
Johannes Kastl <kastl@b1-systems.de> (cherry picked from commit 504017d5)
-
Guillaume Abrioux authored
This commits adds the `osd blacklist` cap on all OSP clients keyrings. Fixes: #2296 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 2d955757)
-
Guillaume Abrioux authored
we shouldn't validate these two variables when `osd_auto_discovery` is set. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1644623 Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 243edfbc)
-
Johannes Kastl authored
openSUSE switched from 'openSUSE 13.x' to 'openSUSE Leap 42.x' and then to 'openSUSE Leap 15.x' to align with SLES15 development. The previous logic did not correctly allow the current release, as 15.x matched the 'less than 42.3' condition. For now only support openSUSE Leap 15.x, and extend support once 16.x is released (or whatever the exact version will be) Signed-off-by:
Johannes Kastl <kastl@b1-systems.de> (cherry picked from commit 5ee3d96f)
-
Guillaume Abrioux authored
just like `ceph_osd_pool_default_size`, a pool size might change after an initial deployment. Having this condition prevents from customizing the pool in that case. This is not needed so let's remove it. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 70cf2a58)
-
- 19 Aug, 2019 6 commits
-
-
Guillaume Abrioux authored
there is no need to use `shell` in these tasks. Let's use `command`. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 4df92152)
-
Guillaume Abrioux authored
use `from_json` filter instead of a `| python` so we can get rid of the `shell` module usage here. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 5573f17e)
-
Rishabh Dave authored
This commit should've been part of commit 2fb12ae5 . Signed-off-by:
Rishabh Dave <ridave@redhat.com> (cherry picked from commit 2034387f)
-
Guillaume Abrioux authored
let's use `until` instead of doing test in bash using python oneliner also, use `command` instead of `shell`. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 687087fd)
-
Guillaume Abrioux authored
in order to use the right binary name when using python cli in command or shell module. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 13815ad3)
-
Guillaume Abrioux authored
This commit refacts the python installation when no available. In order to avoid generating errors, we check for each package manager to detect which system we are running on. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit d3fa3c2d)
-
- 08 Aug, 2019 4 commits
-
-
Guillaume Abrioux authored
There's no need to use `shell` module here. Instead of using `| python -c`, let's use `from_json` filter. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 5b9b8411)
-
Dimitri Savineau authored
When configuring grafana/prometheus embed in the mgr/dashboard, we need to use the address of the grafana-server node and not the current hostname because mgr/dashboard and grafana/prometheus could be present on different hosts. We should instead rely on the grafana_server_addr variable and remove the dashboard_url. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 4c6ec1dc)
-
Dimitri Savineau authored
We don't need to execute the ceph-dashboard role on the nodes present in the grafana-server group. This one is dedicated to the grafana and prometheus stack. The ceph-dashboard needs to executed where the ceph-mgr is running. It is either on the dedicated mgr nodes or if mgr and mon are collocated implicitly on the mon nodes. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 16939eff)
-
Dimitri Savineau authored
Because we need to execute commands from a monitor node (the first one in the mons list) we are using delegate_to option. If there's multiple nodes running the ceph-dashboard role then the delegated task will be executed multiple times. Also remove a mgr config-key option not present for nautilus+ releases. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit f545b5be)
-
- 07 Aug, 2019 3 commits
-
-
Dimitri Savineau authored
We don't have a reason to not apply firewall rules on the host when using a containerized deployment. The TripleO environments already manage the ceph firewall rules outside ceph-ansible and set the configure_firewall variable to false. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1733251 Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 771f25b1)
-
Guillaume Abrioux authored
in non-containerized deployment, we can't deploy dashboard on Debian based distribution since the package `ceph-grafana-dashboards` isn't available. Signed-off-by:
Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit dc7eb535)
-
Dimitri Savineau authored
We don't need to create a grafana system user (in fact we even don't set the righ uid to this user) because we're using a container setup. Instead we just need to be sure to set the owner/group to 472 (grafana user/group from the container) like we do for ceph/167. We don't need to set the user/group recursively on /etc/grafana directory in a dedicated task. Also on Ubuntu system, the ceph-grafana-dashboards isn't present so on non containerized deployment we won't have the /etc/grafana/dashboards/ceph-dashboard directory present (coming with the package) so we need to be sure it exists. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 34036c66)
-
- 31 Jul, 2019 1 commit
-
-
Dimitri Savineau authored
The shrink_rgw scenario has been merge just after the PR about enable ceph dashboard by default. So right now the shrink_rgw scenrio doesn't have nodes in the grafana group and fails. We just need to set dashboard_enabled to false. Signed-off-by:
Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit 867583d5)
-