Merge pull request #17629 from subhamkrai/udpate-ceph-version-to19.2.4
build: update ceph to 19.2.4 in rook 1.19.x
This commit is contained in:
18 files changed
+39
-48
No files matched your search
@@ -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/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:v19.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:v19.2.4`. 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 `v19` will be updated each time a new Squid build is released.
|
||||
@@ -122,8 +122,8 @@ These are general purpose Ceph container with all necessary daemons and dependen
|
||||
| -------------------- | --------------------------------------------------------- |
|
||||
| vRELNUM | Latest release in this series (e.g., **v19** = Squid) |
|
||||
| vRELNUM.Y | Latest stable release in this stable series (e.g., v19.2) |
|
||||
| vRELNUM.Y.Z | A specific release (e.g., v19.2.3) |
|
||||
| vRELNUM.Y.Z-YYYYMMDD | A specific build (e.g., v19.2.3-20250717) |
|
||||
| vRELNUM.Y.Z | A specific release (e.g., v19.2.4) |
|
||||
| vRELNUM.Y.Z-YYYYMMDD | A specific build (e.g., v19.2.4-20260528) |
|
||||
|
||||
A specific will contain a specific release of Ceph as well as security fixes from the Operating System.
|
||||
|
||||
@@ -454,7 +454,7 @@ metadata:
|
||||
namespace: rook-ceph
|
||||
spec:
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
dataDirHostPath: /var/lib/rook
|
||||
mon:
|
||||
count: 3
|
||||
@@ -561,7 +561,7 @@ metadata:
|
||||
namespace: rook-ceph
|
||||
spec:
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
dataDirHostPath: /var/lib/rook
|
||||
mon:
|
||||
count: 3
|
||||
@@ -691,7 +691,7 @@ kubectl -n rook-ceph get CephCluster -o yaml
|
||||
deviceClasses:
|
||||
- name: hdd
|
||||
version:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
version: 16.2.6-0
|
||||
conditions:
|
||||
- lastHeartbeatTime: "2021-03-02T21:22:11Z"
|
||||
|
||||
@@ -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:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
dataDirHostPath: /var/lib/rook
|
||||
mon:
|
||||
count: 3
|
||||
@@ -49,7 +49,7 @@ metadata:
|
||||
namespace: rook-ceph
|
||||
spec:
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
dataDirHostPath: /var/lib/rook
|
||||
mon:
|
||||
count: 3
|
||||
@@ -101,7 +101,7 @@ metadata:
|
||||
namespace: rook-ceph
|
||||
spec:
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
dataDirHostPath: /var/lib/rook
|
||||
mon:
|
||||
count: 3
|
||||
|
||||
@@ -18,7 +18,7 @@ metadata:
|
||||
namespace: rook-ceph
|
||||
spec:
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
dataDirHostPath: /var/lib/rook
|
||||
mon:
|
||||
count: 3
|
||||
@@ -72,7 +72,7 @@ spec:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
allowUnsupported: false
|
||||
dashboard:
|
||||
enabled: true
|
||||
@@ -128,7 +128,7 @@ metadata:
|
||||
namespace: rook-ceph
|
||||
spec:
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
dataDirHostPath: /var/lib/rook
|
||||
mon:
|
||||
count: 3
|
||||
|
||||
@@ -34,7 +34,7 @@ spec:
|
||||
- name: b
|
||||
- name: c
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
allowUnsupported: true
|
||||
# Either storageClassDeviceSets or the storage section can be specified for creating OSDs.
|
||||
# This example uses all devices for simplicity.
|
||||
|
||||
@@ -70,7 +70,7 @@ The following table lists the configurable parameters of the rook-operator chart
|
||||
| `cephFileSystems` | A list of CephFileSystem configurations to deploy | See [below](#ceph-file-systems) |
|
||||
| `cephImage.allowUnsupported` | | `false` |
|
||||
| `cephImage.repository` | | `"quay.io/ceph/ceph"` |
|
||||
| `cephImage.tag` | | `"v19.2.3"` |
|
||||
| `cephImage.tag` | | `"v19.2.4"` |
|
||||
| `cephObjectStores` | A list of CephObjectStore configurations to deploy | See [below](#ceph-object-stores) |
|
||||
| `clusterName` | The metadata.name of the CephCluster CR | The same as the namespace |
|
||||
| `configOverride` | Cluster ceph.conf override | `nil` |
|
||||
|
||||
@@ -10,7 +10,7 @@ by Ceph daemons and clients.
|
||||
|
||||
For this experimental feature, some caveats should be noted:
|
||||
|
||||
- Only Ceph versions v19.2.3 and higher have the capabilities Rook requires for key rotation.
|
||||
- Only Ceph versions v19.2.4 and higher have the capabilities Rook requires for key rotation.
|
||||
- Ceph Monitor (mon) keys cannot be rotated in Ceph v19 due to Ceph architecture limitations.
|
||||
|
||||
## Overview
|
||||
@@ -70,7 +70,7 @@ metadata:
|
||||
namespace: rook-ceph # namespace:cluster
|
||||
spec:
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
security:
|
||||
cephx:
|
||||
daemon:
|
||||
|
||||
@@ -46,7 +46,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., `v19.2.3-20250717`).
|
||||
* The most explicit form of tags are full-ceph-version-and-build tags (e.g., `v19.2.4-20260528`).
|
||||
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., `v19`) are useful for development and test clusters so that the
|
||||
@@ -63,7 +63,7 @@ CephCluster CRD (`spec.cephVersion.image`).
|
||||
|
||||
```console
|
||||
ROOK_CLUSTER_NAMESPACE=rook-ceph
|
||||
NEW_CEPH_IMAGE='quay.io/ceph/ceph:v19.2.3-20250717'
|
||||
NEW_CEPH_IMAGE='quay.io/ceph/ceph:v19.2.4-20260528'
|
||||
kubectl -n $ROOK_CLUSTER_NAMESPACE patch CephCluster $ROOK_CLUSTER_NAMESPACE --type=merge -p "{\"spec\": {\"cephVersion\": {\"image\": \"$NEW_CEPH_IMAGE\"}}}"
|
||||
```
|
||||
|
||||
@@ -75,7 +75,7 @@ employed by the new Rook operator release. Employing an outdated Ceph version wi
|
||||
in unexpected behaviour.
|
||||
|
||||
```console
|
||||
kubectl -n rook-ceph set image deploy/rook-ceph-tools rook-ceph-tools=quay.io/ceph/ceph:v19.2.3-20250717
|
||||
kubectl -n rook-ceph set image deploy/rook-ceph-tools rook-ceph-tools=quay.io/ceph/ceph:v19.2.4-20260528
|
||||
```
|
||||
|
||||
#### **3. Wait for the pod updates**
|
||||
@@ -93,9 +93,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=v18.2.4-0
|
||||
ceph-version=v19.2.3-0
|
||||
ceph-version=v19.2.4-0
|
||||
This cluster is finished:
|
||||
ceph-version=v19.2.3-0
|
||||
ceph-version=v19.2.4-0
|
||||
```
|
||||
|
||||
#### **4. Verify cluster health**
|
||||
|
||||
@@ -25,7 +25,7 @@ toolbox:
|
||||
# -- Enable Ceph debugging pod deployment. See [toolbox](../Troubleshooting/ceph-toolbox.md)
|
||||
enabled: false
|
||||
# -- Toolbox image, defaults to the image used by the Ceph cluster
|
||||
image: #quay.io/ceph/ceph:v19.2.3
|
||||
image: #quay.io/ceph/ceph:v19.2.4
|
||||
# -- Toolbox tolerations
|
||||
tolerations: []
|
||||
# -- Toolbox affinity
|
||||
@@ -97,8 +97,8 @@ cephImage:
|
||||
repository: quay.io/ceph/ceph
|
||||
# In production, use a specific version tag instead of the general v19 flag, which pulls the latest release and could result in different
|
||||
# versions running within the cluster. See tags available at https://hub.docker.com/r/ceph/ceph/tags/.
|
||||
# To be more precise, you can always use a timestamp tag such as quay.io/ceph/ceph:v19.2.3-20250717
|
||||
tag: v19.2.3
|
||||
# To be more precise, you can always use a timestamp tag such as quay.io/ceph/ceph:v19.2.4-20260528
|
||||
tag: v19.2.4
|
||||
# Whether to allow unsupported versions of Ceph. Currently Squid and Tentacle are supported.
|
||||
# Future versions such as Tentacle (v20) would require this to be set to `true`.
|
||||
# Do not set to true in production.
|
||||
|
||||
@@ -20,4 +20,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:v19.2.3 # Should match external cluster version
|
||||
image: quay.io/ceph/ceph:v19.2.4 # Should match external cluster version
|
||||
@@ -174,7 +174,7 @@ spec:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
allowUnsupported: false
|
||||
skipUpgradeChecks: false
|
||||
continueUpgradeAfterChecksEvenIfNotHealthy: false
|
||||
|
||||
@@ -34,7 +34,7 @@ spec:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
allowUnsupported: false
|
||||
skipUpgradeChecks: false
|
||||
continueUpgradeAfterChecksEvenIfNotHealthy: false
|
||||
|
||||
@@ -45,7 +45,7 @@ spec:
|
||||
mgr:
|
||||
count: 2
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
allowUnsupported: true
|
||||
skipUpgradeChecks: false
|
||||
continueUpgradeAfterChecksEvenIfNotHealthy: false
|
||||
|
||||
@@ -39,7 +39,7 @@ spec:
|
||||
mgr:
|
||||
count: 2
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
allowUnsupported: true
|
||||
skipUpgradeChecks: false
|
||||
continueUpgradeAfterChecksEvenIfNotHealthy: false
|
||||
|
||||
@@ -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 as quay.io/ceph/ceph:v20.2.1-20260402
|
||||
# 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:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
# Whether to allow unsupported versions of Ceph. Currently Squid and Tentacle are supported.
|
||||
# Future versions such as Umbrella (v21) would require this to be set to `true`.
|
||||
# Do not set to true in production.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
docker.io/rook/ceph:v1.19.6
|
||||
gcr.io/k8s-staging-sig-storage/objectstorage-sidecar:v0.2.2
|
||||
quay.io/ceph/ceph:v19.2.3
|
||||
quay.io/ceph/ceph:v19.2.4
|
||||
quay.io/ceph/cosi:v0.1.4
|
||||
quay.io/cephcsi/ceph-csi-operator:v0.6.0
|
||||
quay.io/cephcsi/cephcsi:v3.16.2
|
||||
|
||||
@@ -34,7 +34,7 @@ metadata:
|
||||
namespace: rook-ceph
|
||||
spec:
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
dataDirHostPath: /var/lib/rook
|
||||
mon:
|
||||
count: 3
|
||||
|
||||
@@ -109,7 +109,7 @@ func (s *ObjectSuite) TestWithTLS() {
|
||||
tls := true
|
||||
swiftAndKeystone := false
|
||||
objectStoreServicePrefix = objectStoreServicePrefixUniq
|
||||
runObjectE2ETest(s.helper, s.k8sh, s.installer, &s.Suite, s.settings, tls, swiftAndKeystone)
|
||||
runObjectE2ETest(s.helper, s.k8sh, s.installer, &s.Suite, s.settings.Namespace, tls, swiftAndKeystone)
|
||||
cleanUpTLS(s)
|
||||
}
|
||||
|
||||
@@ -131,15 +131,14 @@ func (s *ObjectSuite) TestWithoutTLS() {
|
||||
tls := false
|
||||
swiftAndKeystone := false
|
||||
objectStoreServicePrefix = objectStoreServicePrefixUniq
|
||||
runObjectE2ETest(s.helper, s.k8sh, s.installer, &s.Suite, s.settings, tls, swiftAndKeystone)
|
||||
runObjectE2ETest(s.helper, s.k8sh, s.installer, &s.Suite, s.settings.Namespace, tls, swiftAndKeystone)
|
||||
}
|
||||
|
||||
// Smoke Test for ObjectStore - Test check the following operations on ObjectStore in order
|
||||
// Create object store, Create User, Connect to Object Store, Create Bucket, Read/Write/Delete to bucket,
|
||||
// Check issues in MGRs, Delete Bucket and Delete user
|
||||
// Test for ObjectStore with and without TLS enabled
|
||||
func runObjectE2ETest(helper *clients.TestClient, k8sh *utils.K8sHelper, installer *installer.CephInstaller, s *suite.Suite, settings *installer.TestCephSettings, tlsEnable bool, swiftAndKeystone bool) {
|
||||
namespace := settings.Namespace
|
||||
func runObjectE2ETest(helper *clients.TestClient, k8sh *utils.K8sHelper, installer *installer.CephInstaller, s *suite.Suite, namespace string, tlsEnable bool, swiftAndKeystone bool) {
|
||||
storeName := "test-store"
|
||||
if tlsEnable {
|
||||
storeName = objectStoreTLSName
|
||||
@@ -185,7 +184,7 @@ func runObjectE2ETest(helper *clients.TestClient, k8sh *utils.K8sHelper, install
|
||||
})
|
||||
|
||||
// now test operation of the first object store
|
||||
testObjectStoreOperations(s, helper, k8sh, settings, storeName, swiftAndKeystone)
|
||||
testObjectStoreOperations(s, helper, k8sh, namespace, storeName, swiftAndKeystone)
|
||||
|
||||
// The namespaced test packages below all skip when TLS is enabled, so only set up the
|
||||
// shared store when it will actually be used.
|
||||
@@ -214,9 +213,8 @@ func runObjectE2ETest(helper *clients.TestClient, k8sh *utils.K8sHelper, install
|
||||
}
|
||||
}
|
||||
|
||||
func testObjectStoreOperations(s *suite.Suite, helper *clients.TestClient, k8sh *utils.K8sHelper, settings *installer.TestCephSettings, storeName string, swiftAndKeystone bool) {
|
||||
func testObjectStoreOperations(s *suite.Suite, helper *clients.TestClient, k8sh *utils.K8sHelper, namespace, storeName string, swiftAndKeystone bool) {
|
||||
ctx := context.TODO()
|
||||
namespace := settings.Namespace
|
||||
clusterInfo := client.AdminTestClusterInfo(namespace)
|
||||
t := s.T()
|
||||
|
||||
@@ -930,14 +928,7 @@ func testObjectStoreOperations(s *suite.Suite, helper *clients.TestClient, k8sh
|
||||
})
|
||||
|
||||
t.Run("lifecycle was removed from bucket", func(t *testing.T) {
|
||||
cephcluster, err := k8sh.RookClientset.CephV1().CephClusters(namespace).Get(ctx, settings.ClusterName, metav1.GetOptions{})
|
||||
if err != nil {
|
||||
t.Fatalf("failed to get CephCluster: %v", err)
|
||||
}
|
||||
logger.Infof("CephCluster version: %s", cephcluster.Status.CephVersion.Version)
|
||||
if strings.HasPrefix(cephcluster.Status.CephVersion.Version, "19.2.3") {
|
||||
t.Skip("Waiting for rgw fix from regression in v19.2.3")
|
||||
}
|
||||
var err error
|
||||
utils.Retry(20, time.Second, "lifecycle is gone", func() bool {
|
||||
_, err = s3client.Client.GetBucketLifecycleConfiguration(&s3.GetBucketLifecycleConfigurationInput{
|
||||
Bucket: &bucketName,
|
||||
|
||||
@@ -14,7 +14,7 @@ spec:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
cephVersion:
|
||||
image: quay.io/ceph/ceph:v19.2.3
|
||||
image: quay.io/ceph/ceph:v19.2.4
|
||||
allowUnsupported: true
|
||||
dashboard:
|
||||
enabled: false
|
||||
|
||||
Reference in new issue
Block a user