]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
16 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
18 months agogithub: update stale github workflow
Guillaume Abrioux [Thu, 21 Mar 2024 08:40:40 +0000 (09:40 +0100)]
github: update stale github workflow

`ubuntu-18.04` environment is deprecated, let's switch to ubuntu-22.04.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 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>
18 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>
18 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>
18 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>
18 months agotests: update vagrant_variables.yml
Guillaume Abrioux [Wed, 20 Mar 2024 15:00:03 +0000 (16:00 +0100)]
tests: update vagrant_variables.yml

This updates all vagrant_variables.yml to bump the default
image from centos/stream8 to centos/stream9

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agotests: set ceph_repository: community
Guillaume Abrioux [Wed, 20 Mar 2024 14:51:48 +0000 (15:51 +0100)]
tests: set ceph_repository: community

dev_setup.yml playbook takes care of changing prior to running
tests.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
18 months agomergify: add stable-8.0
Guillaume Abrioux [Sat, 16 Mar 2024 15:58:31 +0000 (16:58 +0100)]
mergify: add stable-8.0

This adds the mergify support for stable-8.0

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>
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>
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>
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>
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>
18 months agoUpdate docs to for supported Ansible versions
Jonathan Rosser [Thu, 14 Mar 2024 15:58:47 +0000 (15:58 +0000)]
Update docs to for supported Ansible versions

Signed-off-by: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk>
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>
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>
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 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 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>
19 months agokickoff squid
Guillaume Abrioux [Fri, 16 Feb 2024 10:13:30 +0000 (11:13 +0100)]
kickoff squid

This adds the few required changes in order to fully support
Ceph Squid.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 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>
19 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>
19 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>
19 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 agoupdate: update ceph release pre-check
Guillaume Abrioux [Wed, 14 Feb 2024 07:37:27 +0000 (08:37 +0100)]
update: update ceph release pre-check

update this check in order to check for Ceph Squid

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agoupdate: update the osd require-osd-release to squid
Guillaume Abrioux [Tue, 13 Feb 2024 16:55:37 +0000 (17:55 +0100)]
update: update the osd require-osd-release to squid

This updates the `osd require-osd-release` call with `squid`
instead of `reef`.

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>
19 months agocommon: enable crb repository on mgr hosts
Guillaume Abrioux [Tue, 13 Feb 2024 07:27:35 +0000 (08:27 +0100)]
common: enable crb repository on mgr hosts

This is needed in order to install `ceph-mgr-dashboard`
as it has a dependency on `python3-grpcio-tools` which comes from
crb repo.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agodrop variables from 'hosts' key
Guillaume Abrioux [Mon, 12 Feb 2024 23:48:13 +0000 (00:48 +0100)]
drop variables from 'hosts' key

The linter complains about that.
It doesn't work anyway so it doesn't make sense to leave these variables
here.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agotests: add flake8 to tox.ini
Guillaume Abrioux [Mon, 12 Feb 2024 20:04:12 +0000 (21:04 +0100)]
tests: add flake8 to tox.ini

this:
- adds flake8 to tox.ini
- addresses all flake8 errors

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agocontainer-common: drop image fetching logic
Guillaume Abrioux [Fri, 4 Aug 2023 07:57:32 +0000 (09:57 +0200)]
container-common: drop image fetching logic

wip

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agolibrary: add ceph_config module
Guillaume Abrioux [Fri, 4 Aug 2023 07:56:46 +0000 (09:56 +0200)]
library: add ceph_config module

This adds the module `ceph_config`

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agolibrary: add ceph_authtool module
Guillaume Abrioux [Fri, 4 Aug 2023 07:56:27 +0000 (09:56 +0200)]
library: add ceph_authtool module

This adds the module `ceph_authtool`.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agomain playbook: final play refactor
Guillaume Abrioux [Fri, 4 Aug 2023 07:55:23 +0000 (09:55 +0200)]
main playbook: final play refactor

we can simply run this play on the first monitor rather than delegating
to it.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agocephadm-adopt: fix an issue in mgr adoption play
Guillaume Abrioux [Fri, 4 Aug 2023 07:54:22 +0000 (09:54 +0200)]
cephadm-adopt: fix an issue in mgr adoption play

this drops variables in 'hosts' field of mgr adoption play.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agomonitor bootstrap refactor
Guillaume Abrioux [Fri, 4 Aug 2023 07:53:40 +0000 (09:53 +0200)]
monitor bootstrap refactor

major mon bootstrap refactor so we don't need to rely on
the ceph.conf for this operation.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agomigrate from ceph.conf to ceph config
Guillaume Abrioux [Fri, 4 Aug 2023 07:45:28 +0000 (09:45 +0200)]
migrate from ceph.conf to ceph config

keep the ceph.conf very simple.
manage the common options such as `public_network` with `ceph_config`
module.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agotests: use python 3.9
Guillaume Abrioux [Fri, 2 Jun 2023 21:49:56 +0000 (23:49 +0200)]
tests: use python 3.9

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agolibrary/ceph_crush_rule: module refactor
Guillaume Abrioux [Fri, 2 Jun 2023 19:00:35 +0000 (21:00 +0200)]
library/ceph_crush_rule: module refactor

This refactor makes the 'name' argument not mandatory because when
'state' is 'info' we shouldn't need to pass it.

The second change is just a duplicate code removal.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
19 months agoadd CentOS stream 9 support
Guillaume Abrioux [Fri, 2 Jun 2023 09:34:15 +0000 (11:34 +0200)]
add CentOS stream 9 support

This adds the resquired changes in order to support
CentOS stream 9.

Also, this bumps the Ansible version support to 2.15

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
20 months agodoc: project deprecation
Guillaume Abrioux [Tue, 16 Jan 2024 13:54:13 +0000 (14:54 +0100)]
doc: project deprecation

Mark the project as deprecated.

See https://docs.ceph.com/en/latest/cephadm/ for ``cephadm``
documentation.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
21 months agoDo not pass NoneType as argument to ceph_crush_rule
Dmitriy Rabotyagov [Wed, 25 Oct 2023 11:47:19 +0000 (13:47 +0200)]
Do not pass NoneType as argument to ceph_crush_rule

With ansible-core 2.15 it is not possible to pass argument of unexpected
type, as otherwise module will fail with:
`'None' is not a string and conversion is not allowed`

With that we want to only get all existing crush rules, so we can simply
supply an empty string as a name argument, which would satisfy
requirements and have same behaviour for previous ansible versions.

Alternative approach would be to stop making `name` as a required
argument to the module and use empty string as default value
when info state is used.

Signed-off-by: Dmitriy Rabotyagov <noonedeadpunk@gmail.com>
23 months agodashboad: rgw frontends entries in ceph.conf are incorrect
Teoman ONAY [Tue, 5 Sep 2023 10:39:15 +0000 (12:39 +0200)]
dashboad: rgw frontends entries in ceph.conf are incorrect

There was multiple rgw frontends entries while there was just one
rgw instance on each host. The other entries were the details from
the other rgw hosts in the cluster

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2232282
Signed-off-by: Teoman ONAY <tonay@ibm.com>
23 months agoSpeed up the some facts settings by running them once
Teoman ONAY [Tue, 5 Sep 2023 10:32:53 +0000 (12:32 +0200)]
Speed up the some facts settings by running them once

Signed-off-by: Teoman ONAY <tonay@ibm.com>
2 years agodo not use update debian cache or try to install packages when package-install is...
insatomcat [Wed, 16 Aug 2023 13:51:03 +0000 (15:51 +0200)]
do not use update debian cache or try to install packages when package-install is disabled

When deploying with --skip-tags=package-install (when there is no access to a repository), the playbook is still trying to update the package cache, or to install ceph-mgr packages, which makes the playbook fail.
This change prevents the playbook to try to update the cache or install ceph-mgr packages when the package-install tag is skipped.

Signed-off-by: Florent CARLI <florent.carli@rte-france.com>
2 years agocephadm-adopt: Fixes hosts addition to be managed by cephadm
Teoman ONAY [Wed, 16 Aug 2023 14:02:29 +0000 (16:02 +0200)]
cephadm-adopt: Fixes hosts addition to be managed by cephadm

The tasks "manage nodes with cephadm - ipv4/6" are skipped when
cephadm_mgmt_network contains more than one ip network which prevent
cephadm from managing the host.

Signed-off-by: Teoman ONAY <tonay@ibm.com>
2 years agoUpdate zonegroup test.
Nathan Hoad [Wed, 28 Jun 2023 20:28:45 +0000 (16:28 -0400)]
Update zonegroup test.

Signed-off-by: Nathan Hoad <nhoad@bloomberg.net>
2 years agoSpecify the zone when requesting zonegroup information.
Nathan Hoad [Thu, 8 Jun 2023 17:41:53 +0000 (13:41 -0400)]
Specify the zone when requesting zonegroup information.

Signed-off-by: Nathan Hoad <nhoad@bloomberg.net>
2 years agolibrary: ceph_crush: set containerized param to false to respect docstrings
Konstantin Shalygin [Fri, 19 Feb 2021 14:49:25 +0000 (17:49 +0300)]
library: ceph_crush: set containerized param to false to respect docstrings

Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
2 years agocephadm-adopt: Fixes rbd-mirror regression
Teoman ONAY [Fri, 4 Aug 2023 12:37:39 +0000 (14:37 +0200)]
cephadm-adopt: Fixes rbd-mirror regression

779523f86f4659283441ece8af2d4a4dbe8140b4 introduced a regression
related to rbdmirrors tasks. They were executed while
ceph_rbd_mirror_remot_* variables were not set.

Signed-off-by: Teoman ONAY <tonay@ibm.com>
2 years agocephadm-adopt: Add --networks parameter support to ceph orch apply rgw
Teoman ONAY [Fri, 4 Aug 2023 09:17:44 +0000 (11:17 +0200)]
cephadm-adopt: Add --networks parameter support to ceph orch apply rgw

When radosgw_address_block was defined, it was not taken into account
during rgw adoption process

depends on: https://tracker.ceph.com/issues/62185
fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2224351

Signed-off-by: Teoman ONAY <tonay@ibm.com>
2 years agoAdd ipv6 libvirt support scenario in vagrant
Teoman ONAY [Wed, 7 Jun 2023 15:10:52 +0000 (17:10 +0200)]
Add ipv6 libvirt support scenario in vagrant

Addition of ipv6 support in vagrant/libvirt and an all_daemons_ipv6 scenario.
Some typo fixes

Signed-off-by: Teoman ONAY <tonay@ibm.com>
2 years agotests: updates functional tests with new image
Guillaume Abrioux [Fri, 2 Jun 2023 08:09:30 +0000 (10:09 +0200)]
tests: updates functional tests with new image

let's use quay.io/ceph/daemon-base in every tests instead of
`ceph/daemon` since it's not supposed to be built anymore soon.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>