From 98600a440f2e29563a5ffa17be591dd9a6ba54b3 Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Fri, 21 Oct 2022 19:31:25 +0530 Subject: [PATCH] core: upgrade ceph to latest release v17.2.5 Signed-off-by: subhamkrai (cherry picked from commit 270b565f1806436cb19fbf9979ee07f10f19320c) --- Documentation/CRDs/Cluster/ceph-cluster-crd.md | 12 ++++++------ Documentation/CRDs/Cluster/external-cluster.md | 2 +- Documentation/CRDs/Cluster/host-cluster.md | 6 +++--- Documentation/CRDs/Cluster/pvc-cluster.md | 6 +++--- Documentation/CRDs/Cluster/stretch-cluster.md | 2 +- Documentation/Upgrade/ceph-upgrade.md | 8 ++++---- deploy/charts/rook-ceph-cluster/values.yaml | 2 +- deploy/examples/cluster-external-management.yaml | 2 +- deploy/examples/cluster-on-local-pvc.yaml | 2 +- deploy/examples/cluster-on-pvc.yaml | 2 +- deploy/examples/cluster-stretched-aws.yaml | 2 +- deploy/examples/cluster-stretched.yaml | 2 +- deploy/examples/cluster.yaml | 2 +- deploy/examples/images.txt | 2 +- deploy/examples/toolbox.yaml | 2 +- deploy/olm/assemble/metadata-common.yaml | 2 +- design/ceph/ceph-cluster-cleanup.md | 2 +- design/ceph/ceph-nfs-ganesha.md | 2 +- images/ceph/Makefile | 4 ++-- pkg/operator/ceph/nfs/security_test.go | 6 +++--- pkg/operator/ceph/object/spec_test.go | 4 ++-- 21 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Documentation/CRDs/Cluster/ceph-cluster-crd.md b/Documentation/CRDs/Cluster/ceph-cluster-crd.md index 9fd776756..83bf0ec95 100755 --- a/Documentation/CRDs/Cluster/ceph-cluster-crd.md +++ b/Documentation/CRDs/Cluster/ceph-cluster-crd.md @@ -26,7 +26,7 @@ Settings can be specified at the global level to apply to the cluster as a whole * `external`: * `enable`: if `true`, the cluster will not be managed by Rook but via an external entity. This mode is intended to connect to an existing cluster. In this case, Rook will only consume the external cluster. However, Rook will be able to deploy various daemons in Kubernetes such as object gateways, mds and nfs if an image is provided and will refuse otherwise. If this setting is enabled **all** the other options will be ignored except `cephVersion.image` and `dataDirHostPath`. See [external cluster configuration](external-cluster.md). If `cephVersion.image` is left blank, Rook will refuse the creation of extra CRs like object, file and nfs. * `cephVersion`: The version information for launching the ceph daemons. - * `image`: The image used for running the ceph daemons. For example, `quay.io/ceph/ceph:v16.2.9` or `v17.2.3`. For more details read the [container images section](#ceph-container-images). + * `image`: The image used for running the ceph daemons. For example, `quay.io/ceph/ceph:v16.2.9` or `v17.2.5`. For more details read the [container images section](#ceph-container-images). For the latest ceph images, see the [Ceph DockerHub](https://hub.docker.com/r/ceph/ceph/tags/). To ensure a consistent version of the image is running across all nodes in the cluster, it is recommended to use a very specific image version. Tags also exist that would give the latest version, but they are only recommended for test environments. For example, the tag `v17` will be updated each time a new Quincy build is released. @@ -104,8 +104,8 @@ These are general purpose Ceph container with all necessary daemons and dependen | -------------------- | --------------------------------------------------------- | | vRELNUM | Latest release in this series (e.g., *v17* = Quincy) | | vRELNUM.Y | Latest stable release in this stable series (e.g., v17.2) | -| vRELNUM.Y.Z | A specific release (e.g., v17.2.3) | -| vRELNUM.Y.Z-YYYYMMDD | A specific build (e.g., v17.2.3-20220805) | +| vRELNUM.Y.Z | A specific release (e.g., v17.2.5) | +| vRELNUM.Y.Z-YYYYMMDD | A specific build (e.g., v17.2.5-20221017) | A specific will contain a specific release of Ceph as well as security fixes from the Operating System. @@ -451,7 +451,7 @@ metadata: namespace: rook-ceph spec: cephVersion: - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 dataDirHostPath: /var/lib/rook mon: count: 3 @@ -552,7 +552,7 @@ metadata: namespace: rook-ceph spec: cephVersion: - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 dataDirHostPath: /var/lib/rook mon: count: 3 @@ -681,7 +681,7 @@ kubectl -n rook-ceph get CephCluster -o yaml deviceClasses: - name: hdd version: - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 version: 16.2.6-0 conditions: - lastHeartbeatTime: "2021-03-02T21:22:11Z" diff --git a/Documentation/CRDs/Cluster/external-cluster.md b/Documentation/CRDs/Cluster/external-cluster.md index a413114a2..5cee1ef63 100644 --- a/Documentation/CRDs/Cluster/external-cluster.md +++ b/Documentation/CRDs/Cluster/external-cluster.md @@ -159,5 +159,5 @@ spec: enable: true dataDirHostPath: /var/lib/rook cephVersion: - image: quay.io/ceph/ceph:v17.2.3 # Should match external cluster version + image: quay.io/ceph/ceph:v17.2.5 # Should match external cluster version ``` diff --git a/Documentation/CRDs/Cluster/host-cluster.md b/Documentation/CRDs/Cluster/host-cluster.md index f246897c5..0ce31303b 100644 --- a/Documentation/CRDs/Cluster/host-cluster.md +++ b/Documentation/CRDs/Cluster/host-cluster.md @@ -22,7 +22,7 @@ metadata: spec: cephVersion: # see the "Cluster Settings" section below for more details on which image of ceph to run - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 dataDirHostPath: /var/lib/rook mon: count: 3 @@ -49,7 +49,7 @@ metadata: namespace: rook-ceph spec: cephVersion: - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 dataDirHostPath: /var/lib/rook mon: count: 3 @@ -101,7 +101,7 @@ metadata: namespace: rook-ceph spec: cephVersion: - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 dataDirHostPath: /var/lib/rook mon: count: 3 diff --git a/Documentation/CRDs/Cluster/pvc-cluster.md b/Documentation/CRDs/Cluster/pvc-cluster.md index 74d06d3af..27a3e9ced 100644 --- a/Documentation/CRDs/Cluster/pvc-cluster.md +++ b/Documentation/CRDs/Cluster/pvc-cluster.md @@ -18,7 +18,7 @@ metadata: namespace: rook-ceph spec: cephVersion: - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 dataDirHostPath: /var/lib/rook mon: count: 3 @@ -72,7 +72,7 @@ spec: requests: storage: 10Gi cephVersion: - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 allowUnsupported: false dashboard: enabled: true @@ -129,7 +129,7 @@ metadata: namespace: rook-ceph spec: cephVersion: - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 dataDirHostPath: /var/lib/rook mon: count: 3 diff --git a/Documentation/CRDs/Cluster/stretch-cluster.md b/Documentation/CRDs/Cluster/stretch-cluster.md index 7b168068b..4024462d3 100644 --- a/Documentation/CRDs/Cluster/stretch-cluster.md +++ b/Documentation/CRDs/Cluster/stretch-cluster.md @@ -35,7 +35,7 @@ spec: - name: c cephVersion: # Stretch cluster is supported in Ceph Pacific or newer. - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 allowUnsupported: true # Either storageClassDeviceSets or the storage section can be specified for creating OSDs. # This example uses all devices for simplicity. diff --git a/Documentation/Upgrade/ceph-upgrade.md b/Documentation/Upgrade/ceph-upgrade.md index 75d165496..7460f7b8a 100644 --- a/Documentation/Upgrade/ceph-upgrade.md +++ b/Documentation/Upgrade/ceph-upgrade.md @@ -67,7 +67,7 @@ Official Ceph container images can be found on [Quay](https://quay.io/repository These images are tagged in a few ways: -* The most explicit form of tags are full-ceph-version-and-build tags (e.g., `v17.2.3-20220805`). +* The most explicit form of tags are full-ceph-version-and-build tags (e.g., `v17.2.5-20221017`). These tags are recommended for production clusters, as there is no possibility for the cluster to be heterogeneous with respect to the version of Ceph running in containers. * Ceph major version tags (e.g., `v17`) are useful for development and test clusters so that the @@ -84,7 +84,7 @@ in the cluster CRD (`spec.cephVersion.image`). ```console ROOK_CLUSTER_NAMESPACE=rook-ceph -NEW_CEPH_IMAGE='quay.io/ceph/ceph:v17.2.3-20220805' +NEW_CEPH_IMAGE='quay.io/ceph/ceph:v17.2.5-20221017' kubectl -n $ROOK_CLUSTER_NAMESPACE patch CephCluster $ROOK_CLUSTER_NAMESPACE --type=merge -p "{\"spec\": {\"cephVersion\": {\"image\": \"$NEW_CEPH_IMAGE\"}}}" ``` @@ -103,9 +103,9 @@ Confirm the upgrade is completed when the versions are all on the desired Ceph v kubectl -n $ROOK_CLUSTER_NAMESPACE get deployment -l rook_cluster=$ROOK_CLUSTER_NAMESPACE -o jsonpath='{range .items[*]}{"ceph-version="}{.metadata.labels.ceph-version}{"\n"}{end}' | sort | uniq This cluster is not yet finished: ceph-version=15.2.13-0 - ceph-version=v17.2.3-0 + ceph-version=v17.2.5-0 This cluster is finished: - ceph-version=v17.2.3-0 + ceph-version=v17.2.5-0 ``` #### **3. Verify cluster health** diff --git a/deploy/charts/rook-ceph-cluster/values.yaml b/deploy/charts/rook-ceph-cluster/values.yaml index 01559add4..edbc8f337 100644 --- a/deploy/charts/rook-ceph-cluster/values.yaml +++ b/deploy/charts/rook-ceph-cluster/values.yaml @@ -69,7 +69,7 @@ cephClusterSpec: # versions running within the cluster. See tags available at https://hub.docker.com/r/ceph/ceph/tags/. # If you want to be more precise, you can always use a timestamp tag such quay.io/ceph/ceph:v15.2.11-20200419 # This tag might not contain a new Ceph version, just security fixes from the underlying operating system, which will reduce vulnerabilities - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 # Whether to allow unsupported versions of Ceph. Currently `pacific` and `quincy` are supported. # Future versions such as `reef` (v18) would require this to be set to `true`. # Do not set to true in production. diff --git a/deploy/examples/cluster-external-management.yaml b/deploy/examples/cluster-external-management.yaml index f219d1fe2..d2bdaf3bd 100644 --- a/deploy/examples/cluster-external-management.yaml +++ b/deploy/examples/cluster-external-management.yaml @@ -19,4 +19,4 @@ spec: dataDirHostPath: /var/lib/rook # providing an image is required, if you want to create other CRs (rgw, mds, nfs) cephVersion: - image: quay.io/ceph/ceph:v17.2.3 # Should match external cluster version + image: quay.io/ceph/ceph:v17.2.5 # Should match external cluster version diff --git a/deploy/examples/cluster-on-local-pvc.yaml b/deploy/examples/cluster-on-local-pvc.yaml index 7cc96fc6b..e7283ecae 100644 --- a/deploy/examples/cluster-on-local-pvc.yaml +++ b/deploy/examples/cluster-on-local-pvc.yaml @@ -173,7 +173,7 @@ spec: requests: storage: 10Gi cephVersion: - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 allowUnsupported: false skipUpgradeChecks: false continueUpgradeAfterChecksEvenIfNotHealthy: false diff --git a/deploy/examples/cluster-on-pvc.yaml b/deploy/examples/cluster-on-pvc.yaml index f8b195b40..0afd24161 100644 --- a/deploy/examples/cluster-on-pvc.yaml +++ b/deploy/examples/cluster-on-pvc.yaml @@ -33,7 +33,7 @@ spec: requests: storage: 10Gi cephVersion: - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 allowUnsupported: false skipUpgradeChecks: false continueUpgradeAfterChecksEvenIfNotHealthy: false diff --git a/deploy/examples/cluster-stretched-aws.yaml b/deploy/examples/cluster-stretched-aws.yaml index 7dcc0b2a6..f8c2053c3 100644 --- a/deploy/examples/cluster-stretched-aws.yaml +++ b/deploy/examples/cluster-stretched-aws.yaml @@ -45,7 +45,7 @@ spec: count: 2 cephVersion: # Stretch cluster support upstream is only available starting in Ceph Pacific - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 allowUnsupported: true skipUpgradeChecks: false continueUpgradeAfterChecksEvenIfNotHealthy: false diff --git a/deploy/examples/cluster-stretched.yaml b/deploy/examples/cluster-stretched.yaml index ef02420e5..5b342a3e8 100644 --- a/deploy/examples/cluster-stretched.yaml +++ b/deploy/examples/cluster-stretched.yaml @@ -39,7 +39,7 @@ spec: count: 2 cephVersion: # Stretch cluster support upstream is only available starting in Ceph Pacific - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 allowUnsupported: true skipUpgradeChecks: false continueUpgradeAfterChecksEvenIfNotHealthy: false diff --git a/deploy/examples/cluster.yaml b/deploy/examples/cluster.yaml index 78e842c7a..7740adc44 100644 --- a/deploy/examples/cluster.yaml +++ b/deploy/examples/cluster.yaml @@ -21,7 +21,7 @@ spec: # versions running within the cluster. See tags available at https://hub.docker.com/r/ceph/ceph/tags/. # If you want to be more precise, you can always use a timestamp tag such quay.io/ceph/ceph:v17.2.3-20220805 # This tag might not contain a new Ceph version, just security fixes from the underlying operating system, which will reduce vulnerabilities - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 # Whether to allow unsupported versions of Ceph. Currently `pacific` and `quincy` are supported. # Future versions such as `reef` (v18) would require this to be set to `true`. # Do not set to true in production. diff --git a/deploy/examples/images.txt b/deploy/examples/images.txt index 5b669e276..7cd22cc3d 100644 --- a/deploy/examples/images.txt +++ b/deploy/examples/images.txt @@ -1,4 +1,4 @@ - quay.io/ceph/ceph:v17.2.3 + quay.io/ceph/ceph:v17.2.5 quay.io/cephcsi/cephcsi:v3.7.2 quay.io/csiaddons/k8s-sidecar:v0.5.0 registry.k8s.io/sig-storage/csi-attacher:v4.0.0 diff --git a/deploy/examples/toolbox.yaml b/deploy/examples/toolbox.yaml index eb64400f5..bb1563390 100644 --- a/deploy/examples/toolbox.yaml +++ b/deploy/examples/toolbox.yaml @@ -18,7 +18,7 @@ spec: dnsPolicy: ClusterFirstWithHostNet containers: - name: rook-ceph-tools - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 command: - /bin/bash - -c diff --git a/deploy/olm/assemble/metadata-common.yaml b/deploy/olm/assemble/metadata-common.yaml index d57bea757..a8336c7af 100644 --- a/deploy/olm/assemble/metadata-common.yaml +++ b/deploy/olm/assemble/metadata-common.yaml @@ -250,7 +250,7 @@ metadata: }, "spec": { "cephVersion": { - "image": "quay.io/ceph/ceph:v17.2.3" + "image": "quay.io/ceph/ceph:v17.2.5" }, "dataDirHostPath": "/var/lib/rook", "mon": { diff --git a/design/ceph/ceph-cluster-cleanup.md b/design/ceph/ceph-cluster-cleanup.md index ceea2d224..813131001 100644 --- a/design/ceph/ceph-cluster-cleanup.md +++ b/design/ceph/ceph-cluster-cleanup.md @@ -34,7 +34,7 @@ metadata: namespace: rook-ceph spec: cephVersion: - image: quay.io/ceph/ceph:v17.2.3 + image: quay.io/ceph/ceph:v17.2.5 dataDirHostPath: /var/lib/rook mon: count: 3 diff --git a/design/ceph/ceph-nfs-ganesha.md b/design/ceph/ceph-nfs-ganesha.md index 8b2d7b21c..d5bdb404b 100644 --- a/design/ceph/ceph-nfs-ganesha.md +++ b/design/ceph/ceph-nfs-ganesha.md @@ -222,7 +222,7 @@ https://blog.rook.io/prototyping-an-nfs-connection-to-ldap-using-sssd-7c27f624f1 NFS-Ganesha (via libraries within its container) is the client to SSSD. As of Ceph v17.2.3, the Ceph container image does not have the `sssd-client` package installed which is required for supporting -SSSD. It should be available in Ceph v17.2.4. +SSSD. It is available starting from Ceph v17.2.4. The following directories must be shared between SSSD and the NFS-Ganesha container: - `/var/lib/sss/pipes`: this directory holds the sockets used to communicate between client and SSSD diff --git a/images/ceph/Makefile b/images/ceph/Makefile index 9e0166fd6..67e0221a3 100755 --- a/images/ceph/Makefile +++ b/images/ceph/Makefile @@ -18,9 +18,9 @@ include ../image.mk # Image Build Options ifeq ($(GOARCH),amd64) -CEPH_VERSION ?= v17.2.3-20220804 +CEPH_VERSION ?= v17.2.5-20221017 else -CEPH_VERSION ?= v17.2.3-20220805 +CEPH_VERSION ?= v17.2.5-20221017 endif REGISTRY_NAME = quay.io BASEIMAGE = $(REGISTRY_NAME)/ceph/ceph-$(GOARCH):$(CEPH_VERSION) diff --git a/pkg/operator/ceph/nfs/security_test.go b/pkg/operator/ceph/nfs/security_test.go index 141f3c6a0..457735269 100644 --- a/pkg/operator/ceph/nfs/security_test.go +++ b/pkg/operator/ceph/nfs/security_test.go @@ -51,7 +51,7 @@ func mockReconcile() *ReconcileCephNFS { }, cephClusterSpec: &cephv1.ClusterSpec{ CephVersion: cephv1.CephVersionSpec{ - Image: "quay.io/ceph/ceph:v17.2.4", + Image: "quay.io/ceph/ceph:v17", }, }, } @@ -191,7 +191,7 @@ func TestReconcileCephNFS_addSecurityConfigsToPod(t *testing.T) { nss := containerByName(pod.InitContainers, "generate-nsswitch-conf") assert.NotEmpty(t, nss) // container should have CLUSTER image and resources from SERVER spec - assert.Equal(t, "quay.io/ceph/ceph:v17.2.4", nss.Image) + assert.Equal(t, "quay.io/ceph/ceph:v17", nss.Image) nssTester := optest.NewContainersSpecTester(t, []v1.Container{nss}) nssTester.AssertResourceSpec(optest.ResourceLimitExpectations{ CPUResourceLimit: "3000", @@ -308,7 +308,7 @@ func TestReconcileCephNFS_addSecurityConfigsToPod(t *testing.T) { nss := containerByName(pod.InitContainers, "generate-nsswitch-conf") assert.NotEmpty(t, nss) // container should have CLUSTER image and resources from SERVER spec - assert.Equal(t, "quay.io/ceph/ceph:v17.2.4", nss.Image) + assert.Equal(t, "quay.io/ceph/ceph:v17", nss.Image) nssTester := optest.NewContainersSpecTester(t, []v1.Container{nss}) nssTester.AssertResourceSpec(optest.ResourceLimitExpectations{ CPUResourceLimit: "3000", diff --git a/pkg/operator/ceph/object/spec_test.go b/pkg/operator/ceph/object/spec_test.go index 7f925ae7f..1a8e726e5 100644 --- a/pkg/operator/ceph/object/spec_test.go +++ b/pkg/operator/ceph/object/spec_test.go @@ -161,7 +161,7 @@ func TestSSLPodSpec(t *testing.T) { context: context, rookVersion: "rook/rook:myversion", clusterSpec: &cephv1.ClusterSpec{ - CephVersion: cephv1.CephVersionSpec{Image: "quay.io/ceph/ceph:v17.2.3"}, + CephVersion: cephv1.CephVersionSpec{Image: "quay.io/ceph/ceph:v17.2.5"}, Network: cephv1.NetworkSpec{ HostNetwork: true, }, @@ -590,7 +590,7 @@ func TestCheckRGWSSES3Enabled(t *testing.T) { store: store, clusterInfo: &client.ClusterInfo{Context: ctx, CephVersion: cephver.CephVersion{Major: 17, Minor: 2, Extra: 3}}, clusterSpec: &cephv1.ClusterSpec{ - CephVersion: cephv1.CephVersionSpec{Image: "quay.io/ceph/ceph:v17.2.3"}, + CephVersion: cephv1.CephVersionSpec{Image: "quay.io/ceph/ceph:v17.2.5"}, }, } }