]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
7 months agoHandle radosgw hosts placement with non-default cluster name mergify/bp/stable-8.0/pr-7633 7650/head
John Fulton [Thu, 16 Jan 2025 21:30:20 +0000 (16:30 -0500)]
Handle radosgw hosts placement with non-default cluster name

In cephadm-adopt.yml TASK "Update the placement of radosgw hosts"
does not handle when Ansible var cluster is something other than
"ceph", unless this patch is used.

Update module ceph_orch_apply to support optional cluster
parameter using the same style as in module ceph_config.
The command is only extended to inclue the new keyring
and config options if cluster name is not ceph.

This patch is necessary to migrate older clusters which were
deployed when custom names were supported.

Closes: https://issues.redhat.com/browse/RHCEPH-10442
Signed-off-by: John Fulton <fulton@redhat.com>
(cherry picked from commit 8b2f2133fab63950c92daa06851ef2d8680a3007)

7 months agoHandle adoption when radosgw_address_block is comma delimited list
John Fulton [Thu, 16 Jan 2025 20:50:50 +0000 (15:50 -0500)]
Handle adoption when radosgw_address_block is comma delimited list

In cephadm-adopt.yml TASK "Update the placement of radosgw hosts"
passes module ceph_orch_apply embedded YAML via a block scalar.
This YAML creates a Ceph spec of service_type RGW. The networks
key of this spec supports either a list or a string. Without this
patch, the networks key of the spec will only contain a string.
With this patch a string is still set for the networks key, but
if Ansible var radosgw_address_block contains commas, then var
radosgw_address_block is split by those commas into a list and
the networks key of the spec will be set to a list.

Closes: https://issues.redhat.com/browse/RHCEPH-10418
Signed-off-by: John Fulton <fulton@redhat.com>
(cherry picked from commit b0707ae5d884666a7eedcbbdb29c7d57d514456a)

7 months agocephadm-adopt: fix ssl condition in rgw placement task
Teoman ONAY [Fri, 24 Jan 2025 12:56:41 +0000 (13:56 +0100)]
cephadm-adopt: fix ssl condition in rgw placement task

rgw daemons fail to start as they were looking for
ssl certificates while none were available.

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit bf76bded4c3760a6610284cc477f642c8635f06d)

7 months agodoc: CI readthedocs job fails
Teoman ONAY [Fri, 24 Jan 2025 13:05:51 +0000 (14:05 +0100)]
doc: CI readthedocs job fails

Deprecation of projects using Sphinx without an explicit configuration file

[1] https://about.readthedocs.com/blog/2024/12/deprecate-config-files-without-sphinx-or-mkdocs-config/

Signed-off-by: Teoman ONAY <tonay@ibm.com>
10 months agoDon't try to set devices fact when osd_auto_discovery was skipped
Dmitriy Rabotyagov [Mon, 28 Oct 2024 16:54:12 +0000 (17:54 +0100)]
Don't try to set devices fact when osd_auto_discovery was skipped

Right now, under certain OS and Ansible versions, ie Rocky Linux and
ansible-core 2.17, `devices_check` variable is getting defined even if
task was skipped.

That results in set_fact to fail, as resulting variable has no `results`
key in it.

Structure of such variable looks like that:
```
"devices_check": {
    "changed": false,
    "false_condition": "osd_auto_discovery | default(False) | bool",
    "skip_reason": "Conditional result was False",
    "skipped": true
}
```

Checking for task not being skipped solves such issues.

Signed-off-by: Dmitriy Rabotyagov <noonedeadpunk@gmail.com>
(cherry picked from commit 9405558d03b633f8677d0f5f559028ca61ea4403)

11 months agopytest: python-version typo
Teoman ONAY [Wed, 16 Oct 2024 13:07:46 +0000 (15:07 +0200)]
pytest: python-version typo

Fixes python-version

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit c9ffb2e70cc0cffe82344865c3aca4011c7ade77)

11 months agocephadm-adopt: Alertmanager placement count missing
Teoman ONAY [Wed, 2 Oct 2024 14:43:39 +0000 (16:43 +0200)]
cephadm-adopt: Alertmanager placement count missing

Regression from #7576. Alertmanager placement count was missing
after migration to ceph_orch_apply module

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit 31be49506118ece75371d0c86af794caee8bc051)

11 months agocephadm-adopt: custom prometheus port lost after adoption
Teoman ONAY [Wed, 2 Oct 2024 14:36:31 +0000 (16:36 +0200)]
cephadm-adopt: custom prometheus port lost after adoption

If a custom Prometheus port was used before adoption, it was not
taken into account and default 9095 was set instead. Now custom
port is re-applied.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2242346
Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit b41b7bf869982a82d9ddddcef714a672c530b6f7)

12 months agocephadm-adopt: add cephadm ssh config option
Amir Nikpour [Wed, 17 Jul 2024 04:42:44 +0000 (08:12 +0330)]
cephadm-adopt: add cephadm ssh config option

Add task to set customized ssh config for cephadm

Signed-off-by: Amir Nikpour <amnik.free@gmail.com>
(cherry picked from commit e4ab45d756d3271af1429103a942c534e46fd4b9)

12 months agoceph_orch_apply: fix yaml error when multiple rgw deployed
Teoman ONAY [Wed, 21 Aug 2024 15:33:19 +0000 (17:33 +0200)]
ceph_orch_apply: fix yaml error when multiple rgw deployed

ceph orch ls rgw --format=yaml returns multiple documents
when multiple rgw are installed, this was not handled
correctly.

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit 823700bc1bc1f477cd58c61cded977a706a5c308)

13 months agoradosgw_user: support caps on user
Seena Fallah [Wed, 31 Jul 2024 13:02:42 +0000 (15:02 +0200)]
radosgw_user: support caps on user

Supporting adding/removing caps on the user.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit c1f1c1e900ea2558d6090bd5d40dc7e7d49f075e)

13 months agoceph-pool: add support updating crush rule of the pool
Seena Fallah [Tue, 30 Jul 2024 20:44:19 +0000 (22:44 +0200)]
ceph-pool: add support updating crush rule of the pool

Support updating crush rule of the pool via crush rule name.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit d6ac0cc120c5552dba8ceb04a9ef77fe027e6cb4)

13 months agodevices: test devices before collecting on auto discovery
Seena Fallah [Tue, 30 Jul 2024 20:11:55 +0000 (22:11 +0200)]
devices: test devices before collecting on auto discovery

In some scenarios with NVMe, a device might be identified by
Ansible but could actually be a multipath device rather than an
actual device. We need to exclude these as Ceph cannot create
OSDs on them.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit be9b45852459434184b576d85ad80f505ee7ea3f)

13 months agocephadm-adopt: fix "Update the placement of radosgw hosts" task
Teoman ONAY [Mon, 12 Aug 2024 13:24:06 +0000 (15:24 +0200)]
cephadm-adopt: fix "Update the placement of radosgw hosts" task

networks was at the wrong level in the spec file. Failed with
"got an unexpected keyword argument 'networks'"

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit 2c88ecc7847d3c746fb7c324414d098470c54289)

13 months agocephadm-adopt: Fixes binding network for alertmanager
Teoman ONAY [Thu, 11 Jul 2024 09:35:22 +0000 (11:35 +0200)]
cephadm-adopt: Fixes binding network for alertmanager

Alertmanager was bind to default * network instead of grafana_server_addr
as it was before. Now on if grafana_server_addr is defined, it will be
bind to that network.

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit 0bf3398774dda6683f74a48f0ff3b26be6acec5a)

14 months agovagrant-box atomic-host -> stream9
Teoman ONAY [Tue, 16 Jul 2024 12:54:37 +0000 (14:54 +0200)]
vagrant-box atomic-host -> stream9

Signed-off-by: Teoman ONAY <tonay@ibm.com>
14 months agocephadm-adopt: fix "Update the placement of radosgw hosts" task
Teoman ONAY [Fri, 5 Jul 2024 09:40:17 +0000 (11:40 +0200)]
cephadm-adopt: fix "Update the placement of radosgw hosts" task

spec file template conditions were incorrect

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit e85060cb6713b05757f87f5bda3368416aa6e64e)

14 months agoReplace Centos stream 8 by stream 9
Teoman ONAY [Tue, 16 Jul 2024 07:48:09 +0000 (09:48 +0200)]
Replace Centos stream 8 by stream 9

In test scenarios

Signed-off-by: Teoman ONAY <tonay@ibm.com>
14 months agoceph-handler: use haproxy maintenance for rgw restarts
Seena Fallah [Mon, 10 Jun 2024 10:11:55 +0000 (12:11 +0200)]
ceph-handler: use haproxy maintenance for rgw restarts

RGW currently restarts without waiting for existing connections to
close. By adjusting the HAProxy weight before the restart, we can
ensure that no active connections are disrupted during the restart
process.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 4fa9057a3ebb4c8929df23c1a2b12554eb3957e4)

15 months agoRevert "nfs-ganesha support removal"
Guillaume Abrioux [Mon, 17 Jun 2024 14:35:10 +0000 (16:35 +0200)]
Revert "nfs-ganesha support removal"

This reverts commit 675667e1d60b7080dad7293f2954de23718c5042.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 59198f5bcdf2eca5cc99c25951d93513c508c01e)

15 months agoceph_orch_apply: fix idempotency
Teoman ONAY [Tue, 28 May 2024 12:06:03 +0000 (14:06 +0200)]
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 5a44fbeaa69273260f42257524df2e211b65c3ce)

15 months agoceph_orch_spec: Add ceph orch apply spec feature
Teoman ONAY [Wed, 24 Apr 2024 19:32:39 +0000 (21:32 +0200)]
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 f6fd034e7ee167ea31a382c30432972aeb7adba5)

15 months agoceph-key: check for key existance on absent state
Seena Fallah [Mon, 20 May 2024 12:52:30 +0000 (14:52 +0200)]
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 52365166a4b3757d174b602891fb54bc751defe0)

16 months agoceph-container: use ceph user and group
Seena Fallah [Thu, 16 May 2024 22:11:58 +0000 (00:11 +0200)]
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 7016c6df3cf5fc28f8b931ef9083de9dcf5e6e9c)

16 months agotests: collect mons and mgrs logs
Seena Fallah [Thu, 16 May 2024 22:11:48 +0000 (00:11 +0200)]
tests: collect mons and mgrs logs

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 779a13eb31db10cff0ca315b9907ed68a6f480a1)

16 months agoceph-container: keep run dir permission consistent
Seena Fallah [Thu, 16 May 2024 22:09:37 +0000 (00:09 +0200)]
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 65c84a3583ea4cceb3b4baf70757e62c70a5ccea)

16 months agoceph-rgw: introduce rgw zone to the name schema
Seena Fallah [Tue, 7 May 2024 18:41:53 +0000 (20:41 +0200)]
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 1121e6d98a41a913886240bcb873380008afcafc)

16 months agoFix cephadm-adopt test scenario
Teoman ONAY [Wed, 15 May 2024 14:04:04 +0000 (16:04 +0200)]
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 ca191fad2ab45d4c4217251078efcfe965898d6a)

16 months agoradosgw_user: handle non-existence user on check mode
Seena Fallah [Wed, 24 Apr 2024 16:59:48 +0000 (18:59 +0200)]
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 878cce5b4847a9a112f9d07c0fd651aa15f1e58b)

17 months agoceph-mon: move the ceph_config call to ceph-mon role
Guillaume Abrioux [Thu, 11 Apr 2024 16:11:08 +0000 (18:11 +0200)]
ceph-mon: move the ceph_config call to ceph-mon role

ba7eb62a1bcbd925b053cbd737012f034568a6f7 broke deployments where
mgrs are not collocated with mons.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 4f6641fe5ca31346ef6c2710b699f7b9e5319982)

17 months agoceph-config: move `ceph_config` module call to ceph-config role
Guillaume Abrioux [Thu, 11 Apr 2024 12:39:18 +0000 (14:39 +0200)]
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 ba7eb62a1bcbd925b053cbd737012f034568a6f7)

17 months agoceph_volume: set changed to false to readonly actions
Seena Fallah [Fri, 29 Mar 2024 21:05:42 +0000 (22:05 +0100)]
ceph_volume: set changed to false to readonly actions

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit fb13ee35bf2cf096db3f66b516eaa7ffa0d24770)

17 months agoceph_crush: add support check mode
Seena Fallah [Fri, 29 Mar 2024 20:29:35 +0000 (21:29 +0100)]
ceph_crush: add support check mode

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 326e2e4d6b66d5a27dfa64cd6d0ea892c0f3b119)

17 months agoceph-mon: fix admin keyring creation task
Guillaume Abrioux [Thu, 4 Apr 2024 08:53:12 +0000 (10:53 +0200)]
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 c4b3520730612da10e6d7f3c61ce0a5446725e47)

17 months agocommon: install python3-packaging on centos el8
Guillaume Abrioux [Thu, 4 Apr 2024 08:21:56 +0000 (10:21 +0200)]
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 8ebff2124db1e670099b7e6d141d6c3178c3c181)

17 months agoceph-handler: allow 405 as a success restart for rgw
Seena Fallah [Fri, 29 Mar 2024 18:57:36 +0000 (19:57 +0100)]
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 9f9b32e9e6610e62aabeda4c09339ac3e84e7c4d)

17 months agoceph_pool: add support check mode
Seena Fallah [Fri, 29 Mar 2024 19:31:56 +0000 (20:31 +0100)]
ceph_pool: add support check mode

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit a45defd3869e95b06730abc0fe741c290d632b8c)

17 months agohandlers: move tmpdir removal
Guillaume Abrioux [Thu, 14 Mar 2024 20:39:45 +0000 (21:39 +0100)]
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 bab034024c7dfdbce25531963c162dd94e4f394d)

17 months agonfs-ganesha support removal
Guillaume Abrioux [Thu, 14 Mar 2024 09:19:04 +0000 (10:19 +0100)]
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 675667e1d60b7080dad7293f2954de23718c5042)

17 months agovagrantfile: drop grafana group
Guillaume Abrioux [Thu, 14 Mar 2024 12:56:36 +0000 (13:56 +0100)]
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 1ebddeccb38a34d66f96f0c34db2b6958685e5e1)

17 months agoremove legacy task
Guillaume Abrioux [Thu, 14 Mar 2024 12:44:19 +0000 (13:44 +0100)]
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 d9e2de1d1d84fee877707460328a232512680025)

18 months agocommon: configure epel repository (rockylinux)
Guillaume Abrioux [Tue, 19 Mar 2024 17:36:21 +0000 (18:36 +0100)]
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 867be7c35c1f10080f842c3c6bdd51062cfd788a)

18 months agotests: various changes
Guillaume Abrioux [Tue, 19 Mar 2024 17:31:47 +0000 (18:31 +0100)]
tests: various changes

some minor changes

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit c42c0c355884cec984e21d49119c5b84fc489340)

18 months agorgw_profiles: update rgw-keystone profiles
Guillaume Abrioux [Wed, 20 Mar 2024 09:50:12 +0000 (10:50 +0100)]
rgw_profiles: update rgw-keystone profiles

See issue #7458

Fixes: #7458
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 0f341cc68bdce7547ff06c477d926c82e3ff2880)

18 months agocontainer-engine: enforce docker for Ubuntu os family
Guillaume Abrioux [Wed, 20 Mar 2024 08:26:29 +0000 (09:26 +0100)]
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 ef5a09d0e041806369a6caa7f7d062a47811a08f)

18 months agoceph_config: compare current vals in low
Seena Fallah [Sat, 16 Mar 2024 15:41:10 +0000 (16:41 +0100)]
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 ed4b6e71b3b832848e326ccafd9ba4fb036a5f8c)

18 months agoceph_config: add support config remove
Seena Fallah [Fri, 15 Mar 2024 20:51:29 +0000 (21:51 +0100)]
ceph_config: add support config remove

Add support rm action.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit fa2eb2532e1f4b8d4a9ea9280ffa9ad3d1cf2a0e)

18 months agoradosgw_user: add support check mode
Seena Fallah [Sat, 16 Mar 2024 15:22:08 +0000 (16:22 +0100)]
radosgw_user: add support check mode

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit a7e881439ec9aa70fb6e8964d414ff77e092ebb3)

18 months agoradosgw_user: parse system and admin as boolean
Seena Fallah [Sat, 16 Mar 2024 15:15:13 +0000 (16:15 +0100)]
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 a95726c40900d30bb3728fc99e7487c65ea2d0a1)

18 months agoceph_ec_profile: make int params str
Seena Fallah [Sat, 16 Mar 2024 15:43:28 +0000 (16:43 +0100)]
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 f0b4cc3f0d6c82ec6433935bfd443367422c76a5)

18 months agoceph-osd: introduce ec profile creation
Seena Fallah [Thu, 14 Mar 2024 14:49:31 +0000 (15:49 +0100)]
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 bbc1ba5c05d9a4444617e1777b10e127b345afb3)

18 months agoceph_ec_profile: add support more plugins
Seena Fallah [Thu, 14 Mar 2024 12:36:07 +0000 (13:36 +0100)]
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 80666a20dad82c6c0f8ad6a99c26bf52781bcfe3)

18 months agoradosgw_zonegroup: add support check mode
Seena Fallah [Sat, 16 Mar 2024 15:08:17 +0000 (16:08 +0100)]
radosgw_zonegroup: add support check mode

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit beb046cba9498bc3febb282efef43a32c09c200b)

18 months agoradosgw_zonegroup: parse master as boolean
Seena Fallah [Sat, 16 Mar 2024 15:07:02 +0000 (16:07 +0100)]
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 e8d34b6ee6c51a68be1ee6ed63485699a4d07b9a)

18 months agoceph-config: check for set_radosgw_address before importing task
Seena Fallah [Mon, 11 Mar 2024 12:13:07 +0000 (13:13 +0100)]
ceph-config: check for set_radosgw_address before importing task

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 49ec2479ea347d29616feec52386562dfa406676)

18 months agoceph-handler: accept 404 as a success status for rgw restart
Seena Fallah [Tue, 12 Mar 2024 22:42:05 +0000 (23:42 +0100)]
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 f96c0441e3cd33c3f5ff66dfac80d69b5d609dd8)

18 months agoradosgw_zone: add support zone set
Seena Fallah [Sun, 10 Mar 2024 15:55:04 +0000 (16:55 +0100)]
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 e219892aebf07e3aa941a69461c228e91f7066a2)

18 months agoceph-volume: add support check mode
Seena Fallah [Thu, 14 Mar 2024 17:31:05 +0000 (18:31 +0100)]
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 b60e0134a5d461fcbcfa5471992487ad88876d2e)

18 months agoRevert "add a warning regarding current status of stable-8.0"
Guillaume Abrioux [Fri, 15 Mar 2024 21:38:58 +0000 (22:38 +0100)]
Revert "add a warning regarding current status of stable-8.0"

This reverts commit 4e1e61da15375b2343df6b66e0916f319f1c52dc.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agotests/upgrade: various changes
Guillaume Abrioux [Fri, 15 Mar 2024 21:36:07 +0000 (22:36 +0100)]
tests/upgrade: various changes

- use el8 image,
- disable nfs-ganesha testing

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agotests: run vagrant_up.sh from dirname
Guillaume Abrioux [Fri, 16 Feb 2024 21:59:09 +0000 (22:59 +0100)]
tests: run vagrant_up.sh from dirname

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 3c0e06ea0cdf3098497274dd8ff5a63b117d20c5)

18 months agotests: enable nfs-ganesha testing
Guillaume Abrioux [Thu, 14 Mar 2024 08:12:32 +0000 (09:12 +0100)]
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>
18 months agotests: skip ceph_crash and ceph_exporter tests post upgrade
Guillaume Abrioux [Thu, 14 Mar 2024 00:12:24 +0000 (01:12 +0100)]
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>
18 months agoupdate: set cluster config prior to upgrading
Guillaume Abrioux [Wed, 13 Mar 2024 20:44:41 +0000 (21:44 +0100)]
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>
18 months agotests: update --ssh-config parameter (tox-update.ini)
Guillaume Abrioux [Tue, 12 Mar 2024 08:57:50 +0000 (09:57 +0100)]
tests: update --ssh-config parameter (tox-update.ini)

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agoupdate: ignore linter errors on ceph-exporter systemd tasks
Guillaume Abrioux [Mon, 11 Mar 2024 23:38:19 +0000 (00:38 +0100)]
update: ignore linter errors on ceph-exporter systemd tasks

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agoreplace main references with reef
Guillaume Abrioux [Mon, 11 Mar 2024 22:34:53 +0000 (23:34 +0100)]
replace main references with reef

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agovalidate: check for reef repository
Guillaume Abrioux [Mon, 11 Mar 2024 18:48:36 +0000 (19:48 +0100)]
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>
18 months agoosd: drop openstack related tasks
Guillaume Abrioux [Sat, 9 Mar 2024 09:24:23 +0000 (10:24 +0100)]
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 9c467e41b39af63dec9a0b237b550edb9c57da85)

18 months agotests: drop ooo-collocation legacy files
Guillaume Abrioux [Sat, 9 Mar 2024 09:26:32 +0000 (10:26 +0100)]
tests: drop ooo-collocation legacy files

this job was removed, these files are no longer needed, let's remove
them.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 05a1465416593d922e600192e4be80823ff0f0d7)

18 months agoceph-mon: add missing no_log for admin keyring tasks
Seena Fallah [Thu, 7 Mar 2024 21:41:58 +0000 (22:41 +0100)]
ceph-mon: add missing no_log for admin keyring tasks

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agogroup_vars: resync samples with default values
Guillaume Abrioux [Fri, 8 Mar 2024 10:34:53 +0000 (11:34 +0100)]
group_vars: resync samples with default values

2b72ea991d40fc12f277edd58825ce98f068e8c4 and
c8eeae243efac9ad894f3240a8a256b05336f75b have missed the resync.

This addresses that.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agosimplify monitor address setting
Guillaume Abrioux [Fri, 16 Feb 2024 13:20:22 +0000 (14:20 +0100)]
simplify monitor address setting

this drops the following parameters:

- monitor_address_block
- monitor_interface
- monitor_address

The monitor address will be automatically set from `public_network` parameter.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agofix upgrade
Guillaume Abrioux [Mon, 19 Feb 2024 21:39:47 +0000 (22:39 +0100)]
fix upgrade

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agorolling_update: address linter errors
Guillaume Abrioux [Fri, 8 Mar 2024 08:03:06 +0000 (09:03 +0100)]
rolling_update: address linter errors

this addresses 3 linter errors in rolling update playbook

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agoadd a warning regarding current status of stable-8.0
Guillaume Abrioux [Fri, 15 Mar 2024 12:51:18 +0000 (13:51 +0100)]
add a warning regarding current status of stable-8.0

stable-8.0 is not ready and shouldn't be used for now.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agotests: add ceph exporter to collect logs
Seena Fallah [Mon, 4 Mar 2024 13:09:44 +0000 (14:09 +0100)]
tests: add ceph exporter to collect logs

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agoceph-exporter: add installation role
Seena Fallah [Mon, 4 Mar 2024 01:03:19 +0000 (02:03 +0100)]
ceph-exporter: add installation role

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agomons: use hostname for initial members
Seena Fallah [Wed, 6 Mar 2024 12:32:57 +0000 (13:32 +0100)]
mons: use hostname for initial members

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agosystemd: export params as a varaible
Seena Fallah [Sat, 2 Mar 2024 21:06:14 +0000 (22:06 +0100)]
systemd: export params as a varaible

This can help to have extra params or modify the existing ones via group vars.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agosite: install mgrs with mons if sharing the same host
Seena Fallah [Wed, 6 Mar 2024 12:37:06 +0000 (13:37 +0100)]
site: install mgrs with mons if sharing the same host

If mgr is meant to be installed on the mon host it needs to be installed in the same playbook as restart handlers might failed because of non-existance mgr

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agoceph-volume: disable dmcrypt by default
Seena Fallah [Wed, 6 Mar 2024 12:33:59 +0000 (13:33 +0100)]
ceph-volume: disable dmcrypt by default

regression by dcdb1710cbaf7946cf8161b4395697d4898680d3

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agoceph-facts: make set_radosgw_address optional
Seena Fallah [Fri, 23 Feb 2024 23:58:53 +0000 (00:58 +0100)]
ceph-facts: make set_radosgw_address optional

This can help to define custom rgw_instances with custom names and ports and addresses.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agoWelcome Back :tada:
Seena Fallah [Mon, 19 Feb 2024 22:38:02 +0000 (23:38 +0100)]
Welcome Back :tada:

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agotox: enable diff for ansible runs
Seena Fallah [Sun, 18 Feb 2024 10:50:29 +0000 (11:50 +0100)]
tox: enable diff for ansible runs

Diff option can help in CI when a task fail because of a corrupted render in previous tasks.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agocontainer: cleanup container systemd units
Seena Fallah [Sun, 18 Feb 2024 02:41:41 +0000 (03:41 +0100)]
container: cleanup container systemd units

* Make common params of container args in a var to avoid duplication
* The /var/lib/ceph/crash mount was missing after 637ca81c9cf801e4d1d125dc8a2492b90fd78eea
* Add CEPH_USE_RANDOM_NONCE as it's needed when running inside container (can be removed for squid later)
* Add NODE_NAME as some part of ceph code relies on this var
* add default logging opts for

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agorefactor: remove multisite leftovers
Seena Fallah [Sat, 17 Feb 2024 14:21:24 +0000 (15:21 +0100)]
refactor: remove multisite leftovers

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agoceph-handler: restart existed rgw daemons
Seena Fallah [Fri, 16 Feb 2024 13:58:10 +0000 (14:58 +0100)]
ceph-handler: restart existed rgw daemons

This is needed for new instances are the restart might trigger before the deployment

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agoceph-handler: remove tempdir when all handlers are done
Seena Fallah [Fri, 16 Feb 2024 10:30:07 +0000 (11:30 +0100)]
ceph-handler: remove tempdir when all handlers are done

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agoceph-config: make rgw config to be in file
Seena Fallah [Wed, 14 Feb 2024 20:47:35 +0000 (21:47 +0100)]
ceph-config: make rgw config to be in file

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agoceph-config: introduce dedicated cluster config flow
Seena Fallah [Wed, 14 Feb 2024 14:29:03 +0000 (15:29 +0100)]
ceph-config: introduce dedicated cluster config flow

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
18 months agodrop rhcs references
Guillaume Abrioux [Fri, 16 Feb 2024 09:07:50 +0000 (10:07 +0100)]
drop rhcs references

RHCS moved away from ceph-ansible. All RHCS references should be
removed.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agodrop iscsigw support
Guillaume Abrioux [Fri, 16 Feb 2024 00:16:55 +0000 (01:16 +0100)]
drop iscsigw support

This service is no longer maintained.
Let's drop its support within ceph-ansible.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agoaddress Ansible linter errors
Guillaume Abrioux [Wed, 14 Feb 2024 10:14:02 +0000 (11:14 +0100)]
address Ansible linter errors

This addresses all errors reported by the Ansible linter.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agodrop rgw multisite deployment support
Guillaume Abrioux [Wed, 14 Feb 2024 09:36:19 +0000 (10:36 +0100)]
drop rgw multisite deployment support

The current approach is extremely complex and introduced a lot
of spaghetti code. This doesn't offer a good user experience at all.

It's time to think to another approach (dedicated playbook) and drop
the current implementation in order to clean up the code.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agotests: set ANSIBLE_COLLECTIONS_PATH for rbdmirror scenario
Guillaume Abrioux [Tue, 13 Feb 2024 16:49:20 +0000 (17:49 +0100)]
tests: set ANSIBLE_COLLECTIONS_PATH for rbdmirror scenario

This is missing so the job fails.
Typical error:
```
ERROR! couldn't resolve module/action 'community.general.dnf_config_manager'.
```

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agofacts: remove legacy tasks
Guillaume Abrioux [Tue, 13 Feb 2024 15:01:38 +0000 (16:01 +0100)]
facts: remove legacy tasks

these tasks were there only for backward compatibility concerns.
It's time to drop them.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agobump ansible-core to 2.16
Teoman ONAY [Tue, 16 Jan 2024 10:40:07 +0000 (11:40 +0100)]
bump ansible-core to 2.16

- Remove python3 shebangs
- command module warn parameter is deprecated since 2.11 and removed
  from 2.14

Signed-off-by: Teoman ONAY <tonay@ibm.com>
19 months agotests: bump to py3.10
Guillaume Abrioux [Tue, 13 Feb 2024 09:53:16 +0000 (10:53 +0100)]
tests: bump to py3.10

let's bump the python version to 3.10 in python-based
github actions.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agopytest-infra: fix failures
Teoman ONAY [Mon, 15 Jan 2024 21:27:17 +0000 (22:27 +0100)]
pytest-infra: fix failures

pytest-infra 10.0.0 release changed the get_variables() behavior which led to CI failures
(https://github.com/pytest-dev/pytest-testinfra/pull/724)
Starting of now all groups the host is part of and not only the direct parent groups are
returned by get_variables()

Signed-off-by: Teoman ONAY <tonay@ibm.com>