Skip to content

Commit

Permalink
stable-9.0: switch from main to squid
Browse files Browse the repository at this point in the history
Signed-off-by: Seena Fallah <[email protected]>
  • Loading branch information
clwluvw committed Jan 16, 2025
1 parent a1f65bb commit 8460e73
Show file tree
Hide file tree
Showing 37 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion docs/source/installation/containerized.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ You can configure your own container register, image and tag by using the ``ceph
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon
ceph_docker_image_tag: latest
ceph_docker_image_tag: latest-squid
.. note::

Expand Down
2 changes: 1 addition & 1 deletion group_vars/all.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ dummy:
# DOCKER #
##########
#ceph_docker_image: "ceph/daemon-base"
#ceph_docker_image_tag: latest-main
#ceph_docker_image_tag: latest-squid
#ceph_docker_registry: quay.io
#ceph_docker_registry_auth: false
# ceph_docker_registry_username:
Expand Down
4 changes: 2 additions & 2 deletions library/cephadm_adopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
cephadm_adopt:
name: mon.foo
style: legacy
image: quay.io/ceph/daemon-base:latest-main-devel
image: quay.io/ceph/daemon-base:latest-squid-devel
pull: false
firewalld: false
Expand All @@ -93,7 +93,7 @@
name: mon.foo
style: legacy
environment:
CEPHADM_IMAGE: quay.io/ceph/daemon-base:latest-main-devel
CEPHADM_IMAGE: quay.io/ceph/daemon-base:latest-squid-devel
'''

RETURN = '''# '''
Expand Down
4 changes: 2 additions & 2 deletions library/cephadm_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
cephadm_bootstrap:
mon_ip: 192.168.42.1
fsid: 3c9ba63a-c7df-4476-a1e7-317dfc711f82
image: quay.io/ceph/daemon-base:latest-main-devel
image: quay.io/ceph/daemon-base:latest-squid-devel
dashboard: false
monitoring: false
firewalld: false
Expand All @@ -133,7 +133,7 @@
cephadm_bootstrap:
mon_ip: 192.168.42.1
environment:
CEPHADM_IMAGE: quay.io/ceph/daemon-base:latest-main-devel
CEPHADM_IMAGE: quay.io/ceph/daemon-base:latest-squid-devel
'''

RETURN = '''# '''
Expand Down
2 changes: 1 addition & 1 deletion roles/ceph-defaults/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ ceph_tcmalloc_max_total_thread_cache: 134217728
# DOCKER #
##########
ceph_docker_image: "ceph/daemon-base"
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
ceph_docker_registry: quay.io
ceph_docker_registry_auth: false
# ceph_docker_registry_username:
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/add-mdss/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ ceph_conf_overrides:
dashboard_enabled: False
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/add-mgrs/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ ceph_conf_overrides:
dashboard_enabled: False
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/add-mons/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ ceph_conf_overrides:
dashboard_enabled: False
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/add-osds/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ ceph_conf_overrides:
dashboard_enabled: False
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/add-rbdmirrors/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ ceph_conf_overrides:
dashboard_enabled: False
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/add-rgws/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ rgw_bucket_default_quota_max_objects: 1638400
dashboard_enabled: False
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/all-in-one/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ lvm_volumes:
db_vg: journals
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/all_daemons/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dashboard_admin_password: $sX!cD$rYU6qR^B!
grafana_admin_password: +xFRe+RES@7vg24n
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
node_exporter_container_image: "quay.io/prometheus/node-exporter:v0.17.0"
prometheus_container_image: "quay.io/prometheus/prometheus:v2.7.2"
alertmanager_container_image: "quay.io/prometheus/alertmanager:v0.16.2"
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/all_daemons_ipv6/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dashboard_admin_password: $sX!cD$rYU6qR^B!
grafana_admin_password: +xFRe+RES@7vg24n
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
node_exporter_container_image: "quay.io/prometheus/node-exporter:v0.17.0"
prometheus_container_image: "quay.io/prometheus/prometheus:v2.7.2"
alertmanager_container_image: "quay.io/prometheus/alertmanager:v0.16.2"
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/cephadm/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ cluster_network: "192.168.31.0/24"
dashboard_admin_password: $sX!cD$rYU6qR^B!
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main-devel
ceph_docker_image_tag: latest-squid-devel
containerized_deployment: true
2 changes: 1 addition & 1 deletion tests/functional/collocation/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dashboard_admin_user_ro: true
grafana_admin_password: +xFRe+RES@7vg24n
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
node_exporter_container_image: "quay.io/prometheus/node-exporter:v0.17.0"
prometheus_container_image: "quay.io/prometheus/prometheus:v2.7.2"
alertmanager_container_image: "quay.io/prometheus/alertmanager:v0.16.2"
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/docker2podman/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dashboard_admin_password: $sX!cD$rYU6qR^B!
grafana_admin_password: +xFRe+RES@7vg24n
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
node_exporter_container_image: "quay.io/prometheus/node-exporter:v0.17.0"
prometheus_container_image: "quay.io/prometheus/prometheus:v2.7.2"
alertmanager_container_image: "quay.io/prometheus/alertmanager:v0.16.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ fsid: 40358a87-ab6e-4bdc-83db-1d909147861c
generate_fsid: false
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ handler_health_mon_check_delay: 10
handler_health_osd_check_delay: 10
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/lvm-batch/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ handler_health_mon_check_delay: 10
handler_health_osd_check_delay: 10
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/lvm-osds/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ handler_health_mon_check_delay: 10
handler_health_osd_check_delay: 10
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/podman/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dashboard_admin_password: $sX!cD$rYU6qR^B!
grafana_admin_password: +xFRe+RES@7vg24n
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
node_exporter_container_image: "quay.io/prometheus/node-exporter:v0.17.0"
prometheus_container_image: "quay.io/prometheus/prometheus:v2.7.2"
alertmanager_container_image: "quay.io/prometheus/alertmanager:v0.16.2"
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/rbdmirror/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ ceph_conf_overrides:
dashboard_enabled: False
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ ceph_conf_overrides:
dashboard_enabled: False
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/shrink_mds/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ dashboard_enabled: False
copy_admin_key: True
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/shrink_mgr/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ ceph_conf_overrides:
dashboard_enabled: False
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/shrink_mon/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ ceph_conf_overrides:
dashboard_enabled: False
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/shrink_osd/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ dashboard_enabled: False
copy_admin_key: True
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/shrink_rbdmirror/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dashboard_enabled: False
copy_admin_key: True
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/shrink_rgw/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ dashboard_enabled: False
copy_admin_key: True
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
2 changes: 1 addition & 1 deletion tests/functional/subset_update/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dashboard_admin_password: $sX!cD$rYU6qR^B!
grafana_admin_password: +xFRe+RES@7vg24n
ceph_docker_registry: quay.io
ceph_docker_image: ceph/daemon-base
ceph_docker_image_tag: latest-main
ceph_docker_image_tag: latest-squid
node_exporter_container_image: "quay.io/prometheus/node-exporter:v0.17.0"
prometheus_container_image: "quay.io/prometheus/prometheus:v2.7.2"
alertmanager_container_image: "quay.io/prometheus/alertmanager:v0.16.2"
Expand Down
2 changes: 1 addition & 1 deletion tests/library/test_cephadm_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import cephadm_bootstrap

fake_fsid = '0f1e0605-db0b-485c-b366-bd8abaa83f3b'
fake_image = 'quay.io/ceph/daemon-base:latest-main-devel'
fake_image = 'quay.io/ceph/daemon-base:latest-squid-devel'
fake_ip = '192.168.42.1'
fake_registry = 'quay.io'
fake_registry_user = 'foo'
Expand Down
2 changes: 1 addition & 1 deletion tox-rbdmirror.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ setenv=
container: CEPH_RBD_MIRROR_REMOTE_MON_HOSTS = 192.168.144.10
non_container: CEPH_RBD_MIRROR_REMOTE_MON_HOSTS = 192.168.140.10

UPDATE_CEPH_DOCKER_IMAGE_TAG = latest-main
UPDATE_CEPH_DOCKER_IMAGE_TAG = latest-squid
UPDATE_CEPH_DEV_BRANCH = main
UPDATE_CEPH_DEV_SHA1 = latest
ROLLING_UPDATE = True
Expand Down
4 changes: 2 additions & 2 deletions tox-shrink_osd.ini
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ setenv=
container: PURGE_PLAYBOOK = purge-container-cluster.yml
non_container: PLAYBOOK = site.yml.sample

CEPH_DOCKER_IMAGE_TAG = latest-main
CEPH_DOCKER_IMAGE_TAG = latest-squid
CEPH_DOCKER_IMAGE_TAG_BIS = latest-bis-main
UPDATE_CEPH_DOCKER_IMAGE_TAG = latest-main
UPDATE_CEPH_DOCKER_IMAGE_TAG = latest-squid

deps= -r{toxinidir}/tests/requirements.txt
changedir=
Expand Down
2 changes: 1 addition & 1 deletion tox-subset_update.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ setenv=
container: PLAYBOOK = site-container.yml.sample
non_container: PLAYBOOK = site.yml.sample

UPDATE_CEPH_DOCKER_IMAGE_TAG = latest-main
UPDATE_CEPH_DOCKER_IMAGE_TAG = latest-squid
UPDATE_CEPH_DEV_BRANCH = main
UPDATE_CEPH_DEV_SHA1 = latest
ROLLING_UPDATE = True
Expand Down
2 changes: 1 addition & 1 deletion tox-update.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ setenv=
container: PLAYBOOK = site-container.yml.sample
non_container: PLAYBOOK = site.yml.sample

UPDATE_CEPH_DOCKER_IMAGE_TAG = latest-main
UPDATE_CEPH_DOCKER_IMAGE_TAG = latest-squid
UPDATE_CEPH_DEV_BRANCH = main
UPDATE_CEPH_DEV_SHA1 = latest
ROLLING_UPDATE = True
Expand Down
16 changes: 8 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ commands=
ansible-playbook -vv --diff -i {changedir}/{env:INVENTORY} {toxinidir}/tests/functional/rbd_map_devices.yml --extra-vars "\
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:quay.io} \
ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon-base} \
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest-main} \
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest-squid} \
"

ansible-playbook -vv --diff -i {changedir}/{env:INVENTORY} {toxinidir}/infrastructure-playbooks/{env:PURGE_PLAYBOOK:purge-cluster.yml} --extra-vars "\
ireallymeanit=yes \
remove_packages=yes \
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:quay.io} \
ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon-base} \
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest-main} \
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest-squid} \
"

# re-setup lvm, we exclude osd2 given this node uses lvm batch scenario (see corresponding inventory host file)
Expand All @@ -79,7 +79,7 @@ commands=
ireallymeanit=yes \
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:quay.io} \
ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon-base} \
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest-main} \
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest-squid} \
"

# set up the cluster again
Expand Down Expand Up @@ -161,7 +161,7 @@ commands=
commands=
ansible-playbook -vv --diff -i {changedir}/{env:INVENTORY} {toxinidir}/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml --extra-vars "\
ireallymeanit=yes \
ceph_docker_image_tag=latest-main-devel \
ceph_docker_image_tag=latest-squid-devel \
ceph_docker_registry=quay.io \
ceph_docker_image=ceph/daemon-base \
ceph_docker_registry_auth=True \
Expand Down Expand Up @@ -248,7 +248,7 @@ commands=
[storage-inventory]
commands=
ansible-playbook -vv --diff -i {changedir}/hosts {toxinidir}/infrastructure-playbooks/storage-inventory.yml --extra-vars "\
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest-main} \
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest-squid} \
"

[cephadm-adopt]
Expand Down Expand Up @@ -299,11 +299,11 @@ setenv=
shrink_rbdmirror: RBDMIRROR_TO_KILL = rbd-mirror0
shrink_rgw: RGW_TO_KILL = rgw0.rgw0

CEPH_DOCKER_IMAGE_TAG = latest-main
CEPH_DOCKER_IMAGE_TAG = latest-squid
CEPH_DOCKER_IMAGE_TAG_BIS = latest-bis-main
UPDATE_CEPH_DOCKER_IMAGE_TAG = latest-main
UPDATE_CEPH_DOCKER_IMAGE_TAG = latest-squid

switch_to_containers: CEPH_DOCKER_IMAGE_TAG = latest-main-devel
switch_to_containers: CEPH_DOCKER_IMAGE_TAG = latest-squid-devel

deps= -r{toxinidir}/tests/requirements.txt
changedir=
Expand Down

0 comments on commit 8460e73

Please sign in to comment.