Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring up to date for Ceph Reef v18.2.X #1

Merged
merged 908 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
908 commits
Select commit Hold shift + click to select a range
b02cc69
ceph-defaults: remove radosgw_civetweb_ variables
dsavineau Jul 29, 2021
9b5d97a
podman pids.max default value is 2048, docker's one is 4096 which are
asm0deuz Aug 3, 2021
3866616
infra: use dedicated variables for balancer status
dsavineau Aug 3, 2021
7c38e64
cephadm-adopt: remove nfs pool and namespace
dsavineau Aug 4, 2021
930fc4c
adopt: import rgw ssl certificate into kv store
guits Jul 28, 2021
6f1a063
dashboard: subj_alt_names fact refactor
guits Aug 5, 2021
478d9fd
Fixes typo in rgw-add-users-buckets playbook
VasishtaShastry Aug 6, 2021
5e0ace7
ceph-dashboard: fix TLS cert openssl generation
dsavineau Aug 9, 2021
7511195
common: do not log keyring secret
guits Aug 9, 2021
e44075a
ceph-mon: do not log monitor keyring
dsavineau Aug 11, 2021
47a4514
tests: use old build of ceph@master
guits Aug 12, 2021
687b20f
ceph-volume: hide OSD keyring during creation
dsavineau Aug 12, 2021
2ee2194
ceph-dashboard: fix oject gateway integration
dsavineau Aug 17, 2021
c14e911
update: gather facts only one time
guits Aug 17, 2021
1db8fa8
roles: remove leftover from pr #4319
guits Aug 10, 2021
67389d0
cephadm-adopt: use cephadm_ssh_user for ssh user
clwluvw Jul 27, 2021
95bce32
ceph-container-engine: allow override container_package_name and cont…
clwluvw Aug 5, 2021
3d27f9e
Vagrantfile: fallback on 'varant_variables.yml.sample'
guits Aug 10, 2021
09ef465
containers: introduce target systemd unit
guits Aug 10, 2021
8ba6101
cephadm-adopt: remove ceph-nfs.target
dsavineau Aug 18, 2021
6802b8d
iscsi: don't set default value for trusted_ip_list
guits Aug 18, 2021
3905fd2
Revert "tests: use old build of ceph@master"
dsavineau Aug 19, 2021
5bb7240
container: explicitly pull monitoring images
dsavineau Aug 19, 2021
2630f8d
cephadm-adopt: fix orch host add with FQDN
dsavineau Aug 26, 2021
f01ae82
tests/rgw: add timeout 5s to radosgw-admin command
dsavineau Aug 10, 2021
f2bd8ae
tests/rgw: use json format output for user info
dsavineau Aug 26, 2021
cddc23f
purge-dashboard: remove cid files
dsavineau Sep 7, 2021
e7b43c1
ceph-defaults: set quay.io as the default registry
dsavineau Aug 27, 2021
a51ce76
purge: add container_binary needed for zap osds
clwluvw Aug 16, 2021
ff39c8d
purge: add remove_docker tag
clwluvw Aug 16, 2021
a36586a
tests: rename grafana to monitoring
dsavineau Aug 9, 2021
c42ad1f
Revert "tests: rename grafana to monitoring"
guits Sep 9, 2021
1c50dc2
cephadm-adopt: set cephadm registry login info
Sep 9, 2021
c49d680
common: install ceph-volume package
guits Sep 16, 2021
66f3eb3
tests: fix container-cephadm job
guits Sep 16, 2021
9125bba
tests: auth_allow_insecure_global_id_reclaim false
dsavineau Aug 10, 2021
d12efa1
adopt: stop iscsi services in the first place
guits Sep 24, 2021
0a3b916
cephadm-adopt: add no_log: true
guits Sep 21, 2021
b6c470c
tests: add osd node in collocation
guits Sep 28, 2021
f8d4982
dashboard: retry setting rgw-credentials
guits Sep 29, 2021
a9680ab
dashboard: allow disabling of unused features
adl-ms Sep 21, 2021
7025645
tests: move collect-logs.yml to ceph-ansible repo
guits Sep 29, 2021
b2ccc72
tests: update collect-logs.yml playbook
guits Sep 30, 2021
c2e46fe
tests: set rgw_instances in collect-logs.yml
guits Sep 30, 2021
fb99626
ceph-defaults: set ceph_stable_release default to the stable branch r…
clwluvw Sep 21, 2021
f277a39
tests: remove all references to ceph_stable_release
guits Sep 29, 2021
b555f1d
cephadm: add admin label on mon nodes
guits Oct 1, 2021
b7299f2
Add ceph_nfs_adopt tag to the cephadm-adopt playbook
fmount Sep 30, 2021
0b78faa
cephadm: use cephadm_ssh_user for ssh user
clwluvw Sep 15, 2021
e79bda9
ceph-common: export repository configuration to a single task
clwluvw Aug 5, 2021
4f6da9d
ceph-validate: export validate repository vars as a task
clwluvw Aug 5, 2021
339212a
cephadm-adopt: configure repository for cephadm installation
clwluvw Aug 5, 2021
5822936
cephadm: install cephadm from repository
clwluvw Sep 15, 2021
968891f
shrink-osd: check osd id format
guits Oct 12, 2021
ae6be71
cephadm: set ssh configs at bootstrap step
clwluvw Oct 9, 2021
84118a3
shrink-osd: fix regression because of a wrong regex
pertoft Oct 20, 2021
fb8a661
tests: add new scenario subset_update
guits Oct 20, 2021
e5cf9db
update: support upgrading a subset of nodes
guits Oct 20, 2021
923af40
tests: followup on pr6951
guits Oct 22, 2021
fc9f87c
rolling_update: fix pre and post osd upgrade play
guits Oct 25, 2021
50a21d6
rolling_update: modify default health_osd_check_*
guits Oct 25, 2021
4257410
adopt: use mgr/nfs volume
guits Oct 14, 2021
9c794aa
adopt: fix rbd mirror adoption
guits Oct 12, 2021
7a12b85
cephadm: use public_network when adding host
guits Oct 26, 2021
9aa9b4d
Revert "cephadm: use public_network when adding host"
guits Oct 28, 2021
2f34531
cephadm: use public_network when adding hosts
guits Oct 28, 2021
4f2c2af
cephadm: support adding hosts with ipv6
guits Oct 28, 2021
82eee43
update: support --limit on monitor nodes
guits Oct 28, 2021
e5edcc4
update: move a set_fact
guits Oct 28, 2021
c412412
cephadm-adopt: remove logrotate configuration
dsavineau Oct 28, 2021
6ad7e52
validate: fix bug when using vault
guits Nov 10, 2021
e5ea2ec
adopt: fix ceph_origin and ceph_repository defaults
guits Nov 29, 2021
b02d71c
ceph_volume: support overriding bind-mounts
guits Nov 30, 2021
c4fdf95
cephadm-adopt: bindmount /var/lib/ceph with 'ro'
guits Nov 30, 2021
09b56a8
library/ceph_ec_profile.py: Support CRUSH device class
BenoitKnecht Oct 26, 2021
b29a6b1
roles/ceph-rgw: Support CRUSH device class
BenoitKnecht Oct 26, 2021
64196ce
validate: support obs repository
guits Dec 1, 2021
2003585
purge: remove ceph directories on client nodes
guits Nov 22, 2021
189ff93
make grafana network a configurable option
dswebbthg Nov 23, 2021
7ece59b
cephadm-adopt: ensure /etc/ceph is present on monitoring node
guits Dec 7, 2021
f01536e
container: align systemd units with rpm
guits Dec 8, 2021
817c03b
update: speed up client play
guits Nov 9, 2021
dc8940f
common: remove legacy repositories
guits Dec 15, 2021
3f923d6
tests: temporarily disable nfs-ganesha
guits Jan 5, 2022
bffca06
ceph-handler: Fix check mode
BenoitKnecht Dec 30, 2021
aee1f06
cephadm-adopt: use named args in rgw export creation
guits Jan 6, 2022
2a28758
cephadm: set allow_overwrite at bootstrap step
yasinlachiny Dec 17, 2021
583e60a
Fix rich version for ansible-lint
Jan 13, 2022
2eb0a88
Use upstream config_template collection
Jan 13, 2022
c491e67
nfs-ganesha: fix debian based OS deployments
guits Jan 19, 2022
7f517cd
adopt: create nfs exports at the user level
guits Jan 28, 2022
bc36f60
tests: use centos stream-8 instead of centos 8
guits Jan 31, 2022
12dd8b5
Add with_pkg tag on package related tasks
fmount Jan 31, 2022
1dfd195
Remove the remaining packages
jowsiewski Jan 20, 2022
79ca442
ceph-grafana: Add proxy env vars to grafana service template
karasjoh000 Apr 27, 2021
0b3a608
ceph-osd: Fix start_osds.yml in check mode
BenoitKnecht Dec 13, 2021
ef05e9a
ceph-osd: Fix crush_rules.yml in check mode
BenoitKnecht Dec 13, 2021
7684d89
ceph-facts: Fix get_def_crush_rule_name.yml in check mode
BenoitKnecht Dec 13, 2021
ddae06e
adopt: check for POOL_APP_NOT_ENABLED warning
guits Feb 7, 2022
f307674
adopt: fix bug in mon_ip_list set_fact
guits Feb 8, 2022
94e51d5
adopt: fix rbd-mirror adoption
guits Feb 9, 2022
f0f1dd9
library/ceph_pool: Fix potential null value when creating pools
Papawy Feb 11, 2022
78c56f1
Update EPEL mock config
jcapiitao Feb 2, 2022
3e5bc30
rpm: fix packaging
guits Feb 15, 2022
055326b
module_utils/ca_common: Add optional diff argument to exit_module
Papawy Feb 4, 2022
65003f4
library: Add radosgw_caps to manage capabilities
Papawy Jan 18, 2022
6c0c53f
tests/library: Add radosgw_caps tests
Papawy Jan 25, 2022
9d87fd8
ceph-facts: ignore mounted disks on osd auto discovery
clwluvw Jan 15, 2022
f08129e
switch2containers: fail if less than 3 monitors
guits Feb 21, 2022
2f11982
purge: ceph-crash purge fixes
guits Feb 28, 2022
da42f3d
Enable user to change the account used for ssh connection
asm0deuz Feb 7, 2022
f8c6bba
Add cluster custom name support
asm0deuz Feb 24, 2022
266b6e7
adopt: fix node labelling
guits Mar 3, 2022
7e8ce25
Turn off SELinux separation for containers MON and RGW
asm0deuz Mar 7, 2022
51bc8cb
upgrade: block upgrade when rgw multisite is active
guits Mar 18, 2022
3e87df5
tests: update the system before deploying
guits Mar 18, 2022
f851d32
Using another user than root for cephadm ssh connections fails
asm0deuz Mar 17, 2022
72e4654
dashboard: always set `dashboard_server_addr`
guits Mar 25, 2022
58fdc03
do not update Debian cache when package-install is disabled
insatomcat Mar 30, 2022
1cd1fa0
validate: drop a check
guits Mar 28, 2022
f288364
ceph-facts: fix ansible templating error for auto osd discovery
pinotelio Apr 4, 2022
0f34cd1
dashboard: allow collecting stats from the host
guits Dec 7, 2021
c5bb450
added AlmaLinux and Rocky for iscsi deploy
ltsavar Mar 31, 2022
1c740c4
tests/setup: Use local mirror of centos 8 stream repo
Apr 13, 2022
ef0455a
tests: update vagrant_box default value
guits Apr 26, 2022
8939441
Warn about ceph-ansible deprecation
guits Apr 27, 2022
ed0bba4
contrib: add a playbook
guits Apr 12, 2022
6e2ebe8
cephadm-adopt: remove legacy directory after adoption
guits May 11, 2022
1e11f87
common: config rhcs tools repo on all nodes
guits Apr 28, 2022
c164986
common: move to `ansible.utils.ipwrap`
guits May 12, 2022
ff424b1
collections: install ansible.utils
guits May 12, 2022
ef1d76f
tests: install ansible.utils collection
guits May 12, 2022
dee4977
tests: use latest version for pytest
guits May 12, 2022
5ab46f8
purge: reset-failed ceph-crash
guits May 23, 2022
0e9b390
Add ceph_infra tag to rolling_update
fmount May 25, 2022
41d6259
cephadm_adopt: set autotune_memory_target_ratio
guits May 13, 2022
bcedff9
master->main
May 24, 2022
a698c07
master->root
May 24, 2022
245133f
whitelist->allowlist
May 24, 2022
bb849a5
ceph_pool: set target size ratio on both 'on' and 'warn' mode
clwluvw Apr 25, 2022
5d9001b
doc: update ansible version requirement
guits Jun 13, 2022
8a5fb70
mergify: add restriction on backport command
guits Jun 14, 2022
4edaab5
fix(ceph-grafana): make dashboard download work again
mitch000001 Jun 10, 2022
aa68b06
ansible: bump to ansible 2.12
guits Jun 14, 2022
a568314
tests: use build main/6f765e2
guits Jun 14, 2022
e28c486
backup-and-restore: fix a typo
guits Jun 15, 2022
a571a91
mergify: add backport configuration for stable-7.0
guits Jun 15, 2022
11c0e93
mergify: reindent file properly
guits Jun 15, 2022
77fc0e1
add better clarification on ceph-ansible current status
guits Jun 15, 2022
3962cf6
Revert "tests: temporarily disable nfs-ganesha"
guits Jun 15, 2022
19fedfb
nfs: use repo from SIG
guits Jun 15, 2022
564684b
Revert "tests: use build main/6f765e2"
guits Jun 22, 2022
7d848fa
Revert "upgrade: block upgrade when rgw multisite is active"
guits Jun 28, 2022
848dd03
backup-and-restore: fix check on 'mode' variable
guits Jun 29, 2022
b18a1aa
backup-and-restore: fix check on 'target_node' variable
guits Jun 29, 2022
2e823b1
common: fix a typo
guits Jul 3, 2022
6623f34
tests: drop shrink_osd from tox.ini
guits Jul 4, 2022
e223630
tests: add yes_i_know=true in tox-shrink_osd.ini
guits Jul 4, 2022
f6b49f7
facts: fix deployments with different net interface names
guits Jun 16, 2022
047af3a
backup-and-restore: various fixes
guits Jul 5, 2022
434793e
facts: fix set_radosgw_address.yml
guits Jul 5, 2022
45ddbed
handler: update ganesha.pid path
guits Jul 5, 2022
a99812a
facts: follow up on f6b49f78
guits Jul 6, 2022
404ab08
pytest: drop test against py <3.8
guits Jul 6, 2022
dffe7b4
backup-and-restore: use archive/unarchive approach
guits Jul 7, 2022
64e08f2
Refresh /etc/ceph/osd json files content before zapping the disks
asm0deuz Jul 4, 2022
5283fa6
config: fix indentation in main.yml
guits Jul 11, 2022
8a5628b
config/osd: various fixes
guits Jul 11, 2022
cf4a430
config: followup on 8a5628b51
guits Jul 11, 2022
3a8daaf
doc: update readthedoc settings
guits Jul 29, 2022
b74ff6e
rbd-mirror: major refactor
guits May 12, 2022
a9cb444
purge-dashboard: check for legacy group name 'grafana-server'
guits Jul 29, 2022
cef1636
Playbook fails when using --limit to install new MDS
asm0deuz Aug 1, 2022
0c50bfa
Set ceph_rbd_mirror_pool default value
asm0deuz Aug 1, 2022
041435e
rbd-mirror: follow up on recent rbd-mirror refactor
guits Aug 1, 2022
89ddc19
tests: set no_log_on_ceph_key_tasks=false
guits Aug 1, 2022
a12f67e
tests: skip rbdmirror tests on non-secondary daemon
guits Aug 1, 2022
7ce972e
flake8: fix 'error E275 missing whitespace after keyword'
guits Aug 1, 2022
30c7e88
adopt: fix placement update calls for rgw
guits Aug 2, 2022
50b7a12
tests: isolate ansible collections
guits Jul 29, 2022
82e0ae7
rolling_update: fix rbd-mirror play
guits Aug 3, 2022
e2076e4
config: do not always set _osd_memory_target
guits Aug 8, 2022
f19dcb2
config: use osd_memory_target value from ceph_conf_overrides if defined
guits Aug 9, 2022
b40e4bf
ceph-config: allow overriding osd_memory_target
guits Aug 16, 2022
d374e63
ceph-crash: add support cluster name
clwluvw Aug 27, 2022
68d9973
ceph-crash: add missing \ in service file
clwluvw Sep 7, 2022
665601b
rbd-mirror: fix multiple rbd-mirror daemon support
guits Sep 12, 2022
aa64747
rbd-mirror: add rx peer only once
guits Sep 13, 2022
e0ed093
Update ceph_ec_profile.py
quangln94 Sep 23, 2022
d60c486
doc: update README-MULTISITE.md
quangln94 Oct 7, 2022
371592a
common: v18/reef kickoff
guits Oct 7, 2022
ac4dfa7
ceph-config: always set _osd_memory_target
clwluvw Sep 24, 2022
57b0890
ceph-config: don't check for devices on existing osds
clwluvw Sep 24, 2022
613773b
ceph-config: fix overriding osd_memory_target
clwluvw Sep 24, 2022
8b983cf
ceph-osd: remove unused ceph config set for osd_memory_target
clwluvw Sep 24, 2022
72ff93f
library/radosgw_user.py: fix user update
karasjoh000 Sep 28, 2022
7664da5
switch-to-containers: fix rbd-mirror migration
guits Oct 14, 2022
a158d0d
switch-to-containers: ignore errors when stopping service
guits Oct 17, 2022
93df3e5
facts: follow up on aa0cc93
guits Apr 21, 2022
45c2f0a
dashboard: support --limit execution with rgw
guits Apr 13, 2022
590e57c
Setting fact _radosgw_address fail when RGW is on a different network
asm0deuz Oct 18, 2022
c3fae04
cephadm-adopt: fix rbd-mirror adoption
guits Nov 14, 2022
e55ca01
tests: use quay.io instead of quay.ceph.io
guits Dec 6, 2022
e5ad195
Check first the OSD storage file rather than after created
mcodenie Dec 6, 2022
c39bbc3
Initialize rbd pool at pool creation
asm0deuz Nov 29, 2022
e47288e
ceph-config: make sure rgw_instances is set
guits Feb 7, 2023
637ca81
Collocated mgr with mon fails to start on RHEL 8.7
asm0deuz Feb 7, 2023
32b5678
devices: exclude db disks on osd_auto_discovery enabled
clwluvw Feb 13, 2023
1f7b3ac
devices: remove duplicated disks after the readlink resolve
clwluvw Feb 13, 2023
15b91ce
osd: drop filestore support
guits Feb 15, 2023
0622cde
Uses a more recent version of the CentOS stream 8 box
asm0deuz Feb 7, 2023
c1b541f
Fixes selinux relabeling issue for nfs container
asm0deuz Mar 2, 2023
d25fa67
Fix selinux label issues
asm0deuz Mar 14, 2023
49da07d
shrink-osd fails when the OSD container is stopped
asm0deuz Mar 1, 2023
2f5e21b
mgr: fix a typo
lbausch Mar 9, 2023
09590c0
ceph-mgr: Fix reference to copy_admin_key variable
rhl-jfm Mar 3, 2023
e8de8e2
Remove all vagrant boxes
asm0deuz Mar 16, 2023
80b1ed9
devices: allow using lvm_volumes with devices
clwluvw Feb 26, 2023
225ae38
ceph-config: exclude already counted osds by lvm_volumes
clwluvw Feb 26, 2023
99573c4
tests: disable internal repos
guits Mar 16, 2023
5622a03
Replace ip_version check with ansible test
xbezdick Apr 19, 2023
aaa9f1d
ceph_key: drop unused result parameter
guits May 31, 2023
86ab93e
Vagrantfile: address deprecation warning
guits Sep 24, 2022
855f742
library: fix a bug in ceph_key module
guits Sep 24, 2022
0cdca9c
mon: do not use ceph/daemon entrypoint
guits Jun 30, 2022
b03de38
mgr: do not use ceph/daemon entrypoint
guits Sep 17, 2022
8df9791
osd: do not use ceph/daemon entrypoint
guits Sep 19, 2022
3b36a4e
mds: do not use ceph/daemon entrypoint
guits Sep 19, 2022
c33cfc0
rgw: do not use daemon
guits Sep 19, 2022
4402ac1
nfs: do not use ceph/daemon entrypoint
guits Sep 23, 2022
73395c1
rbdmirror: do not use ceph/daemon entrypoint
guits Sep 27, 2022
027a3d7
iscsi: do not use ceph/daemon entrypoint
guits Oct 5, 2022
0e086c4
tests: introduce `ceph_status` fixture
guits Jan 20, 2023
896d828
osd: drop filestore support
guits Jan 20, 2023
15b9196
tests: test nfs-ganesha with stable repos
guits Jan 21, 2023
5cd692d
update: fix mgr upgrade issue
guits Jan 22, 2023
23a8bbc
purge: remove /var/lib/ceph
guits May 31, 2023
f90d5d8
ceph-config: drop osd_memory_target from ceph_conf_overrides
clwluvw May 22, 2023
42f6bdb
tests: updates functional tests with new image
guits Jun 2, 2023
8f3bdd8
Add ipv6 libvirt support scenario in vagrant
asm0deuz Jun 7, 2023
bc54290
cephadm-adopt: Add --networks parameter support to ceph orch apply rgw
asm0deuz Aug 4, 2023
18cd35b
cephadm-adopt: Fixes rbd-mirror regression
asm0deuz Aug 4, 2023
d1f85f5
library: ceph_crush: set containerized param to false to respect docs…
k0ste Feb 19, 2021
8923931
Specify the zone when requesting zonegroup information.
nhoad Jun 8, 2023
dad116b
Update zonegroup test.
nhoad Jun 28, 2023
db2f3e4
cephadm-adopt: Fixes hosts addition to be managed by cephadm
asm0deuz Aug 16, 2023
271fd82
do not use update debian cache or try to install packages when packag…
insatomcat Aug 16, 2023
72d4d20
Speed up the some facts settings by running them once
asm0deuz Sep 5, 2023
490ca79
dashboad: rgw frontends entries in ceph.conf are incorrect
asm0deuz Sep 5, 2023
b610297
Do not pass NoneType as argument to ceph_crush_rule
Oct 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version = 1

test_patterns = ["tests/**"]

exclude_patterns = [
"roles/**",
"profiles/**",
"infrastructure-playbooks/**",
"group_vars/**",
"contrib/**"
]

[[analyzers]]
name = "python"
enabled = true

[analyzers.meta]
runtime_version = "3.x.x"
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ What you expected to happen:
How to reproduce it (minimal and precise):
<!-- Please let us know any circumstances for reproduction of your bug. -->

Share your group_vars files, inventory
Share your group_vars files, inventory and **full** ceph-ansibe log

**Environment**:
* OS (e.g. from /etc/os-release):
Expand Down
16 changes: 0 additions & 16 deletions .github/stale.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: ansible-lint
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: x64
- run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint==4.3.7 'rich>=9.5.1,<11.0.0' netaddr
- run: ansible-galaxy install -r requirements.yml
- run: ansible-lint -x 106,204,205,208 -v --force-color ./roles/*/ ./infrastructure-playbooks/*.yml site-container.yml.sample site-container.yml.sample dashboard.yml
- run: ansible-playbook -i ./tests/functional/all_daemons/hosts site.yml.sample --syntax-check --list-tasks -vv
- run: ansible-playbook -i ./tests/functional/all_daemons/hosts site-container.yml.sample --syntax-check --list-tasks -vv
- run: ansible-playbook -i ./tests/functional/all_daemons/hosts dashboard.yml --syntax-check --list-tasks -vv
- run: ansible-playbook -i ./tests/functional/all_daemons/hosts infrastructure-playbooks/*.yml --syntax-check --list-tasks -vv
8 changes: 8 additions & 0 deletions .github/workflows/check-nbsp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: check-nbsp
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: if [[ -n $(grep --exclude-dir=.git -P "\xa0" -r .) ]]; then echo 'NBSP characters found'; exit 1; fi
10 changes: 10 additions & 0 deletions .github/workflows/defaults.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: defaults
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: "${GITHUB_WORKSPACE}/tests/scripts/workflows/defaults.sh"
24 changes: 24 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: flake8
on:
pull_request:
paths:
- 'library/**.py'
- 'module_utils/**.py'
- 'plugins/filter/**.py'
- 'tests/conftest.py'
- 'tests/library/**.py'
- 'tests/module_utils/**.py'
- 'tests/plugins/filter/**.py'
- 'tests/functional/tests/**.py'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
architecture: x64
- run: pip install flake8
- run: flake8 --max-line-length 160 ./library/ ./module_utils/ ./plugins/filter/ ./tests/library/ ./tests/module_utils/ ./tests/plugins/filter/ ./tests/conftest.py ./tests/functional/tests/
28 changes: 28 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: pytest
on:
pull_request:
paths:
- 'library/**.py'
- 'module_utils/**.py'
- 'plugins/filter/**.py'
- 'tests/library/**.py'
- 'tests/module_utils/**.py'
- 'tests/plugins/filter/**.py'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: pip install -r tests/requirements.txt
- run: pytest --cov=library/ --cov=module_utils/ --cov=plugins/filter/ -vvvv tests/library/ tests/module_utils/ tests/plugins/filter/
env:
PYTHONPATH: "$PYTHONPATH:/home/runner/work/ceph-ansible/ceph-ansible/library:/home/runner/work/ceph-ansible/ceph-ansible/module_utils:/home/runner/work/ceph-ansible/ceph-ansible/plugins/filter:/home/runner/work/ceph-ansible/ceph-ansible"
10 changes: 10 additions & 0 deletions .github/workflows/signed-off.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: signed-off
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: "${GITHUB_WORKSPACE}/tests/scripts/workflows/signed-off.sh"
35 changes: 35 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

name: "Mark or close stale issues and PRs"
on:
schedule:
# Run the stalebot every day at 8pm UTC
- cron: "00 20 * * *"

jobs:
stale:
runs-on: ubuntu-18.04
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 15
days-before-close: 7
days-before-pr-close: 14
stale-issue-message: >
This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in a week if no further activity occurs.
Thank you for your contributions.
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed in two weeks if no further activity occurs.
Thank you for your contributions.
close-issue-message: >
This issue has been automatically closed due to inactivity.
Please re-open if this still requires investigation.
close-pr-message: >
This pull request has been automatically closed due to inactivity.
Please re-open if these changes are still required.
stale-pr-label: "stale"
stale-issue-label: "wontfix"
exempt-issue-labels: "do-not-close"
exempt-pr-labels: "do-not-close"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ ceph-ansible.spec
!.travis.yml
!.mergify.yml
!raw_install_python.yml
!requirements.yml
46 changes: 30 additions & 16 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,56 @@
pull_request_rules:
- name: automatic merge on skip ci
conditions:
- label!=DNM
- title~=\[skip ci\]
- '#approved-reviews-by>=2'
actions:
merge:
method: rebase
rebase_fallback: merge
strict: smart
dismiss_reviews: {}
delete_head_branch: {}
# Backports
- actions:
backport:
branches:
- stable-3.0
- stable-3.0
conditions:
- label=backport-stable-3.0
name: backport stable-3.0
- actions:
backport:
branches:
- stable-3.1
- stable-3.1
conditions:
- label=backport-stable-3.1
name: backport stable-3.1
- actions:
backport:
branches:
- stable-3.2
- stable-3.2
conditions:
- label=backport-stable-3.2
name: backport stable-3.2
- actions:
backport:
branches:
- stable-4.0
- stable-4.0
conditions:
- label=backport-stable-4.0
name: backport stable-4.0
- actions:
backport:
branches:
- stable-5.0
conditions:
- label=backport-stable-5.0
name: backport stable-5.0
- actions:
backport:
branches:
- stable-6.0
conditions:
- label=backport-stable-6.0
name: backport stable-6.0
- actions:
backport:
branches:
- stable-7.0
conditions:
- label=backport-stable-7.0
name: backport stable-7.0
commands_restrictions:
backport:
conditions:
- base=main
- number<0
6 changes: 6 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "3.9"
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ This will prevent the engine merging your pull request.

### Backports (maintainers only)

If you wish to see your work from 'master' being backported to a stable branch you can ping a maintainer
so he will set the backport label on your PR. Once the PR from master is merged, a backport PR will be created by mergify,
If you wish to see your work from 'main' being backported to a stable branch you can ping a maintainer
so he will set the backport label on your PR. Once the PR from main is merged, a backport PR will be created by mergify,
if there is a cherry-pick conflict you must resolv it by pulling the branch.

**NEVER** push directly into a stable branch, **unless** the code from master has diverged so much that the files don't exist in the stable branch.
**NEVER** push directly into a stable branch, **unless** the code from main has diverged so much that the files don't exist in the stable branch.
If that happens, inform the maintainers of the reasons why you pushed directly into a stable branch, if the reason is invalid, maintainers will immediatly close your pull request.

## Good to know
Expand Down Expand Up @@ -77,8 +77,8 @@ You must run `./generate_group_vars_sample.sh` before you commit your changes so

### Keep your branch up-to-date

Sometimes, a pull request can be subject to long discussion, reviews and comments, meantime, `master`
moves forward so let's try to keep your branch rebased on master regularly to avoid huge conflict merge.
Sometimes, a pull request can be subject to long discussion, reviews and comments, meantime, `main`
moves forward so let's try to keep your branch rebased on main regularly to avoid huge conflict merge.
A rebased branch is more likely to be merged easily & shorter.

### Organize your commits
Expand All @@ -100,4 +100,4 @@ If you've got commits fixing typos or other problems introduced by previous comm
If you are new to Git, these links might help:

- [https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History)
- [http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html)
- [http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html)
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ NAME = ceph-ansible
# "ceph-ansible-2.2.0-1.el8"

DIST ?= "el8"
MOCK_CONFIG ?= "epel-8-x86_64"
MOCK_CONFIG ?= "centos-stream+epel-8-x86_64"
TAG := $(shell git describe --tags --abbrev=0 --match 'v*')
VERSION := $(shell echo $(TAG) | sed 's/^v//')
COMMIT := $(shell git rev-parse HEAD)
Expand Down Expand Up @@ -101,7 +101,7 @@ tag:
echo "$(SHORTCOMMIT) on $(BRANCH) is already tagged as $(TAG)"; \
exit 1; \
fi
if [[ "$(BRANCH)" != "master" ]] && \
if [[ "$(BRANCH)" != "master" || "$(BRANCH)" != "main" ]] && \
! [[ "$(BRANCH)" =~ ^stable- ]]; then \
echo Cannot tag $(BRANCH); \
exit 1; \
Expand Down
Loading
Loading