Commit Graph

6108 Commits (438da91b324a001ed0c5e52e4235ad0f3a9817e2)
 

Author SHA1 Message Date
Guillaume Abrioux 438da91b32 Revert "nfs-ganesha support removal"
This reverts commit 675667e1d6.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 59198f5bcd)
2024-06-20 14:22:40 +02:00
Teoman ONAY 16f32e981d ceph_orch_apply: fix idempotency
As is idempotency does not work as the ceph orch
output does contain more attributes than the expected
spec.

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit 5a44fbeaa6)
2024-05-29 23:25:38 +02:00
Teoman ONAY d42bb71095 ceph_orch_spec: Add ceph orch apply spec feature
Add new module ceph_orch_spec which applies ceph spec files.
This feature was needed to bind extra mount points to the RGW
container (/etc/pki/ca-trust/).

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2262133

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit f6fd034e7e)
2024-05-22 13:42:40 +02:00
Seena Fallah 189ddfd92a ceph-key: check for key existance on absent state
check if the key is exists before removal.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 52365166a4)
2024-05-21 15:06:43 +02:00
Seena Fallah 2485f9f7d5 ceph-container: use ceph user and group
Use --setuser and --setgroup to ceph to run daemons with ceph user.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 7016c6df3c)
2024-05-17 13:16:50 +02:00
Seena Fallah 65a9e0fa92 tests: collect mons and mgrs logs
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 779a13eb31)
2024-05-17 13:16:50 +02:00
Seena Fallah 5c0b69af98 ceph-container: keep run dir permission consistent
Make it the same as "Create ceph initial directories" task
and make owner and group 167 for containers so they can write
with ceph user.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 65c84a3583)
2024-05-17 13:16:50 +02:00
Seena Fallah faae48d75b ceph-rgw: introduce rgw zone to the name schema
This is needed by ceph-exporter as it is parsing the socket by the number of dots.
Although the rgw_zone variable is only using for constructing the client name
and has nothing to do with multisiting.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 1121e6d98a)
2024-05-17 00:42:49 +02:00
Teoman ONAY 89097bec22 Fix cephadm-adopt test scenario
Fixes cephadm-adopt test scenario by configuring rbd application
on test and test2 pools. Otherwise cephadm-adopt failed at task
"Check pools have an application enabled"

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit ca191fad2a)
2024-05-16 11:32:37 +02:00
Seena Fallah e6f7ef7f56 radosgw_user: handle non-existence user on check mode
Set return code to 0 on check mode when the user doesn't exists and it will fail the module.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 878cce5b48)
2024-05-06 12:11:32 +02:00
Guillaume Abrioux bbf055d015 ceph-mon: move the ceph_config call to ceph-mon role
ba7eb62a1b broke deployments where
mgrs are not collocated with mons.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 4f6641fe5c)
2024-04-11 19:03:09 +02:00
Guillaume Abrioux d1ad661102 ceph-config: move `ceph_config` module call to ceph-config role
so you don't have to implement a similar play on your own
if not using main (sample) playbooks.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit ba7eb62a1b)
2024-04-11 16:40:45 +02:00
Seena Fallah 70836dde00 ceph_volume: set changed to false to readonly actions
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit fb13ee35bf)
2024-04-08 21:27:20 +02:00
Seena Fallah 3ee8744b95 ceph_crush: add support check mode
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 326e2e4d6b)
2024-04-08 21:27:20 +02:00
Guillaume Abrioux 6e877afec6 ceph-mon: fix admin keyring creation task
Although custom cluster name support was dropped, it breaks ceph-volume
functional testing as it uses "test" as cluster name.
The plan is to make ceph-volume use "ceph" but for now it's easier to
address the issue in this task.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit c4b3520730)
2024-04-04 14:23:06 +02:00
Guillaume Abrioux ae24dbc863 common: install python3-packaging on centos el8
ceph-volume has a dependency on `python3-packaging` which is available
in PowerTools repo.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 8ebff2124d)
2024-04-04 14:23:06 +02:00
Seena Fallah 312e824f63 ceph-handler: allow 405 as a success restart for rgw
If rgw is configured to only operate admin api - this is the status code it will return for GET on no path.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 9f9b32e9e6)
2024-04-04 12:21:35 +02:00
Seena Fallah 27f8dfcb0f ceph_pool: add support check mode
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit a45defd386)
2024-04-03 17:46:37 +02:00
Guillaume Abrioux fecc615d02 handlers: move tmpdir removal
This moves the tmpdir removal tasks to main playbook.
The handlers in Ansible are too restrictive and doesn't work
quite well for our use case.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit bab034024c)
2024-03-22 17:32:50 +01:00
Guillaume Abrioux ecea562d1c nfs-ganesha support removal
nfs-ganesha support will be implemented in a separate playbook.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 675667e1d6)
2024-03-22 17:32:50 +01:00
Guillaume Abrioux b13c1b4324 vagrantfile: drop grafana group
this has never been used for real, let's drop this

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 1ebddeccb3)
2024-03-22 17:32:50 +01:00
Guillaume Abrioux d465af8d21 remove legacy task
this was for backward compatibility concerns, it's time to drop this
task.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit d9e2de1d1d)
2024-03-22 17:32:50 +01:00
Guillaume Abrioux 6d772cb969 common: configure epel repository (rockylinux)
this is needed in order to make some libraries available when
running on RockyLinux

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 867be7c35c)
2024-03-20 13:42:52 +01:00
Guillaume Abrioux 31bbd5f9b8 tests: various changes
some minor changes

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit c42c0c3558)
2024-03-20 13:42:52 +01:00
Guillaume Abrioux 9ccc4cd7a3 rgw_profiles: update rgw-keystone profiles
See issue #7458

Fixes: #7458

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 0f341cc68b)
2024-03-20 10:57:51 +01:00
Guillaume Abrioux c1c7c62379 container-engine: enforce docker for Ubuntu os family
This enforces docker.io and docker respectively for
`container_package_name` and `container_service_name` by default
for Ubuntu distribution.

Fixes: #7496

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit ef5a09d0e0)
2024-03-20 10:40:07 +01:00
Seena Fallah 127dab7487 ceph_config: compare current vals in low
Check the current value and asked both in low case as the asked one might be in capital as it should be.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit ed4b6e71b3)
2024-03-19 10:01:07 +01:00
Seena Fallah cdc9e6b341 ceph_config: add support config remove
Add support rm action.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit fa2eb2532e)
2024-03-18 20:08:33 +01:00
Seena Fallah ac3081ecbf radosgw_user: add support check mode
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit a7e881439e)
2024-03-17 01:20:52 +01:00
Seena Fallah 46fe58ec5e radosgw_user: parse system and admin as boolean
The returned payload from rgw has them as a boolean. By having them as a string it would always report a change and try to modify the user.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit a95726c409)
2024-03-17 01:20:52 +01:00
Seena Fallah ed96fa1465 ceph_ec_profile: make int params str
Ceph return them as string so in comparision it would always fail

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit f0b4cc3f0d)
2024-03-17 00:44:45 +01:00
Seena Fallah 1b58c3ebac ceph-osd: introduce ec profile creation
RGW Pools can now use the existing ec profiles and rules created by ceph-osd role.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit bbc1ba5c05)
2024-03-17 00:44:45 +01:00
Seena Fallah c6ec59752c ceph_ec_profile: add support more plugins
Add support more plugins with their respective args.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 80666a20da)
2024-03-17 00:44:45 +01:00
Seena Fallah 35233e85f0 radosgw_zonegroup: add support check mode
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit beb046cba9)
2024-03-16 23:46:18 +01:00
Seena Fallah 0f4dcae54b radosgw_zonegroup: parse master as boolean
The returned payload from rgw has is_master as a boolean. By having master as a string it would always report a change and try to modify the zonegroup.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit e8d34b6ee6)
2024-03-16 23:46:18 +01:00
Seena Fallah fb76ea3cca ceph-config: check for set_radosgw_address before importing task
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 49ec2479ea)
2024-03-16 22:52:19 +01:00
Seena Fallah 891dd55bc6 ceph-handler: accept 404 as a success status for rgw restart
404 is the status code returned by rgw when it is serving website api. This needs to be consider as a healthy status for rgw.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit f96c0441e3)
2024-03-16 22:00:46 +01:00
Seena Fallah 5049cb366f radosgw_zone: add support zone set
Support zone set from a json doc

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit e219892aeb)
2024-03-16 21:28:58 +01:00
Seena Fallah 33974f8f61 ceph-volume: add support check mode
Run read-only actions on check mode

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit b60e0134a5)
2024-03-16 20:25:49 +01:00
Guillaume Abrioux 2b7027a856 Revert "add a warning regarding current status of stable-8.0"
This reverts commit 4e1e61da15.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
2024-03-16 00:51:52 +01:00
Guillaume Abrioux a4b0f74193 tests/upgrade: various changes
- use el8 image,
- disable nfs-ganesha testing

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
2024-03-16 00:51:52 +01:00
Guillaume Abrioux 093c36e5ee tests: run vagrant_up.sh from dirname
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 3c0e06ea0c)
2024-03-16 00:51:52 +01:00
Guillaume Abrioux 7d4e75ff3b tests: enable nfs-ganesha testing
This makes the container-upgrade scenario fail as this gets deployed
during initial quincy deployment but doesn't get upgraded to reef

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
2024-03-16 00:51:52 +01:00
Guillaume Abrioux adfeb81190 tests: skip ceph_crash and ceph_exporter tests post upgrade
as stable-8.0 is dropping iscsigws support, after the upgrade to reef
from quincy these tests should be skipped.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
2024-03-16 00:51:52 +01:00
Guillaume Abrioux 7d5792fda6 update: set cluster config prior to upgrading
As 8.0 drops cluster config from ceph.conf by default, we need
to make sure this config is well applied as part of the upgrade to 8
(reef) from 7 (quincy)

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
2024-03-16 00:51:52 +01:00
Guillaume Abrioux 2854515319 tests: update --ssh-config parameter (tox-update.ini)
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
2024-03-16 00:51:52 +01:00
Guillaume Abrioux 12573bc97a update: ignore linter errors on ceph-exporter systemd tasks
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
2024-03-16 00:51:52 +01:00
Guillaume Abrioux 50216dc12b replace main references with reef
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
2024-03-16 00:51:52 +01:00
Guillaume Abrioux 67ce11f6ad validate: check for reef repository
stable-8.0 is reef so this must check the right value for ceph_stable_release

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
2024-03-16 00:51:52 +01:00
Guillaume Abrioux 6becd71bfb osd: drop openstack related tasks
All of this should be addressed in custom separate playbooks if needed.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 9c467e41b3)
2024-03-16 00:51:52 +01:00