Commit Graph
13292 Commits
Author SHA1 Message Date
Travis Nielsen 83655c83da Merge pull request #14129 from iPraveenParihar/upgrade-sidecar-versions
csi: update csi sidecars image version
2024-04-25 08:28:20 -06:00
Praveen M faf7837621 csi: update csi sidecars' image version
Below sidecars are updated with latest available versions

csi-node-driver-registrar: v2.10.1
csi-resizer: v1.10.1
csi-provisioner: v4.0.1
csi-attacher: v4.5.1
csi-snapshotter: v7.0.2

Signed-off-by: Praveen M <m.praveen@ibm.com>
2024-04-25 18:58:00 +05:30
momantech 496afdbad3 docs: delete duplicate words and revise the names of some methods
delete duplicate words and revise the names of some methods

Signed-off-by: momantech <cuimoman@qq.com>
2024-04-25 15:43:40 +08:00
Travis Nielsen 1bde2ed8b1 Merge pull request #14124 from findmyhappy/master
core: fix function names in comment
2024-04-24 11:19:34 -06:00
Travis Nielsen e161cdae5a Merge pull request #14125 from parth-gr/csi-fix-controller
csi: create csi configmap if csi controller is disabled
2024-04-24 08:50:26 -06:00
findmyhappy c43c7aaf98 core: fix function names in comment
Some function names in the comments do not match. This PR will fix such problems.

Signed-off-by: findmyhappy <findhappy@sohu.com>
2024-04-24 21:04:58 +08:00
parth-gr 47ed6a8632 csi: create csi configmap if csi controller is disabled
Creating a cluster never succeeds if CSI driver is disabled
So to fix that we need to always create the csi configmap

closes: https://github.com/rook/rook/issues/14123

Signed-off-by: parth-gr <partharora1010@gmail.com>
2024-04-24 18:06:09 +05:30
subham rai f84e932eca Merge pull request #14083 from iPraveenParihar/csi/update-doc
csi: remove out-dated prerequisites
2024-04-24 12:15:01 +05:30
Travis Nielsen cc5e37471c Merge pull request #14115 from sfackler/dashboard-metadata
operator: support custom dashboard service labels and annotations
2024-04-23 14:22:32 -06:00
Steven Fackler 0c38dd81c2 operator: support custom dashboard service labels and annotations
Unlike other components, the Ceph dashboard Service object could not be
configured with custom labels and annotations. This can be useful when
integrating Rook into a cluster with custom controllers similarly to how
the RGW service is customized.

Signed-off-by: Steven Fackler <sfackler@gmail.com>
2024-04-23 15:28:19 -04:00
Travis Nielsen 71a531005d Merge pull request #14119 from adippl/master
fixing typo in ceph-object-store-crd.md
2024-04-23 10:45:39 -06:00
ev c1e727384a docs: fixing typo in ceph-object-store-crd.md
Example cephobjectstore uses wrong field name for "dnsNames".

Signed-off-by: Adam Prycki <adam.prycki@gmail.com>
2024-04-23 18:36:13 +02:00
Praveen M da8518095d doc: update snapshot version
Signed-off-by: Praveen M <m.praveen@ibm.com>
2024-04-23 08:29:34 +05:30
Praveen M 0467eb8a4c csi: remove the out-dated prerequisites
Signed-off-by: Praveen M <m.praveen@ibm.com>
2024-04-23 08:29:31 +05:30
Travis Nielsen 4b9ada6ade Merge pull request #13769 from parth-gr/rados-ec
external: add support for rados namespace for rbd ec pools
2024-04-22 11:11:15 -06:00
Blaine Gardner ec10eb930c Merge pull request #14107 from parth-gr/external-doc-fix
doc: fix external cluster document
2024-04-22 09:37:43 -06:00
parth-gr fe30ac83ad doc: fix external cluster document
fixing the list numbers in external document

closes: https://github.com/rook/rook/issues/13968

Signed-off-by: parth-gr <partharora1010@gmail.com>
2024-04-22 16:48:16 +05:30
Satoru Takeuchi 44b84992f4 Merge pull request #14100 from travisn/obsolete-pvc-osd-resize
osd: Legacy LVM-based OSDs on PVCs crash on resize init container
2024-04-22 12:33:48 +09:00
Travis Nielsen acd7b4faa0 osd: legacy osds on lvm pvcs crash on resize init container
OSDs on LVM-mode PVCs are failing to come up and crashing
in the expand-bluefs init container. To avoid the crash
and allow the OSDs to start, a workaround was found to
simply remove that init container. Now we disable the
OSD resize for this case to avoid others hitting this
during upgrade as well.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-04-19 16:26:45 -06:00
Travis Nielsen be95c7052f Merge pull request #14096 from travisn/mergify-1.30
ci: Update mergify rules for K8s 1.30
2024-04-19 10:50:04 -06:00
Travis Nielsen 380c2257bc ci: add full canary test name for mergify auto merge
Mergify is not auto-merging 1.14 backport PRs. All tests
appear to match the mergify definition perfectly, but
the canary-tests prefix is also needed on the tests
for proper merge.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-04-19 10:46:58 -06:00
Travis Nielsen 2fcad50e47 ci: update mergify rules for k8s 1.30
With the update to run CI on K8s 1.30, we update the
mergify auto merge rules for the 1.14 branch.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-04-19 09:07:24 -06:00
subham rai 3823b1d8ca Merge pull request #14093 from subhamkrai/update-k8s
ci: add k8s 1.30 support in ci
2024-04-19 11:35:19 +05:30
subhamkrai 128ec16ee6 ci: add k8s 1.30 support in ci
adding support for kubernetes 1.30 in ci which released yesterday.

Signed-off-by: subhamkrai <srai@redhat.com>
2024-04-19 07:41:05 +05:30
Travis Nielsen f9b2097890 Merge pull request #14088 from travisn/helm-ec-pools
helm: Use correct metadata and data ec block pool
2024-04-18 14:30:25 -06:00
Blaine Gardner 54f219deb9 Merge pull request #14089 from BlaineEXE/csi-config-map-limit-creators
csi: only create CSI config configmap in CSI reconciler
2024-04-18 14:17:14 -06:00
Blaine Gardner 605b9633ea csi: ensure correct csi config map owner during creation
In the primary CSI reconcile, ensure the CSI config map
(`rook-ceph-csi-config`) has the correct owner info.

This corrects any pre-existing config maps that might have incorrect
owner info, which has observed to include references to CephClusters.
The config map should only have a single reference, and it should refer
to the operator deployment.

If any existing Rook clusters have a CSI config map which has a
CephCluster as an owner, this change will ensure that the config map is
not deleted when the CephCluster is deleted. This is especially
important for any environments with multiple CephClusters installed.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2024-04-18 12:53:48 -06:00
Blaine Gardner eb3278d575 csi: only create CSI config configmap in CSI reconciler
There have been some issues with non-CSI Rook controllers that are
creating the CSI config configmap (`rook-ceph-csi-config`). This causes
problems with the K8s OwnerReference. The primary CSI reconciler
(controller) creates the configmap with the correct owner reference,
which is supposed to be the operator deployment.

Other instances were creating the configmap with owner references set to
the CephCluster. This is a minor bug, but it can result in this
configmap being deleted along with the first CephCluster that initially
created it.

To fix this issue, remove all instances of `CreateCsiConfigMap()` except
the single usage which the CSI reconcile uses to initially create the
configmap. Other controllers that might have attempted to create this
configmap previously will return an error indicating that it is waiting
for the configmap to be created.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2024-04-18 12:22:00 -06:00
Travis Nielsen bbfa4f21ad helm: use correct metadata and data ec block pool
The metadata and data block pools for an EC block pool
were switched, causing issues with the EC configuration.
Now the metadata and data pool settings are correct
in the helm chart.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-04-18 10:26:13 -06:00
Travis Nielsen a9fded2345 Merge pull request #14079 from BlaineEXE/load-cluster-owner-info-in-LoadClusterInfo
operator: load cluster owner info in LoadClusterInfo
2024-04-16 16:00:11 -06:00
Blaine Gardner bd9447ea4c operator: load cluster owner info in LoadClusterInfo
The CreateOrLoadClusterInfo (and therefore LoadClusterInfo) methods were
not loading the ClusterInfo.OwnerInfo. This should help future CRD
controllers get the full ClusterInfo struct without having missing
information. Current controllers that need ClusterInfo fill the field
themselves.

During testing, I observed one corner case where an upgraded cluster was
missing the `rook-ceph-csi-config` configmap. The cluster had a
CephFilesystemSubVolumeGroup resource created, and the reconcile for
that resource was attempting to create the missing CSI configmap and
failing with a nil pointer exception due to the missing OwnerInfo field
in ClusterInfo. This cluster condition hasn't been reproduced in healthy
environments, and it is unknown how the CSI configmap came to be
missing. However, the case did expose the missing loaded info as a
potential for causing nil pointer exceptions during corner cases when
code is otherwise correct.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2024-04-16 13:09:39 -06:00
Travis Nielsen 61332caa4b Merge pull request #14049 from NymanRobin/crd-output-enhancements
operator: make CephBlockPoolRadosNamespace and CephFilesystemSubVolumeGroup get outputs more verbose
2024-04-16 12:00:15 -06:00
NymanRobin 70a7e61da5 operator: make crds outputs more verbose
The following printcolumns were added

CephBlockPoolRadosNamespace: Phase,
BlockPoolName, Age
CephFilesystemSubVolumeGroup: Phase,
FilesystemName, PinningConfig, Age

Also improved the error messages in
SubVolumeGroupClient

Signed-off-by: NymanRobin <nyman.robin@gmail.com>
2024-04-16 08:40:16 +03:00
Travis Nielsen 319a12fd18 Merge pull request #14042 from clonefetch/master
core: fix function names in comment
2024-04-15 11:35:33 -06:00
clonefetch 29ff8d9823 core: fix function names in comment
Signed-off-by: clonefetch <c0217@outlook.com>
2024-04-16 00:54:42 +08:00
dependabot[bot] 2334494ddf build(deps): bump wagoid/commitlint-github-action from 6.0.0 to 6.0.1
Bumps [wagoid/commitlint-github-action](https://github.com/wagoid/commitlint-github-action) from 6.0.0 to 6.0.1.
- [Changelog](https://github.com/wagoid/commitlint-github-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wagoid/commitlint-github-action/compare/v6.0.0...v6.0.1)

---
updated-dependencies:
- dependency-name: wagoid/commitlint-github-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 12:29:49 +00:00
Travis Nielsen 499a09ed72 Merge pull request #14052 from sp98/cleanup-radosnamespace
Cleanup RADOS namespace with forced deletion annotation
2024-04-12 11:11:47 -06:00
sp98 f6b1449faa core: cephblockpoolRadosNamespace cleanup
Clean up pool images and snapshots in the
radosnamespace

Signed-off-by: sp98 <sapillai@redhat.com>
2024-04-12 21:49:49 +05:30
Travis Nielsen a38b0b0f98 Merge pull request #14063 from microyahoo/nit
core: fix typos in reconcile cluster disruption
2024-04-12 07:34:25 -06:00
Travis Nielsen fed574b0a3 Merge pull request #14002 from travisn/device-set-dup
osd: Prevent osd reconcile when device set names duplicated
2024-04-12 07:26:40 -06:00
Liang Zheng 30bdd43e27 core: fix typos in reconcile cluster disruption
Signed-off-by: Liang Zheng <zhengliang0901@gmail.com>
2024-04-12 17:11:41 +08:00
Travis Nielsen 867a2906bd Merge pull request #14060 from travisn/mds-test-timeout
test: Reduce wait time for mds standby test
2024-04-11 16:37:14 -06:00
Travis Nielsen 309b164c49 test: reduce wait time for mds standby test
The mds standby test was timing out after six seconds on
three different attempts, causing a single unit test to
take almost 20 seconds. Now we reduce the wait time to
a total of three seconds.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-04-11 16:19:39 -06:00
Blaine Gardner 8998b32a91 Merge pull request #14040 from mmaoyu/upgrade
osd: add option upgradeOSDRequiresHealthyPGs
2024-04-11 13:01:50 -06:00
mmaoyu 6d4afe23e5 osd: add option upgradeOSDRequiresHealthyPGs
For check if cluster PGs are healthy before osd updates
Which helps gainning more confidence in the osd upgrades

Signed-off-by: mmaoyu <wupiaoyu61@gmail.com>
2024-04-11 10:30:27 +08:00
Travis Nielsen f0a793cd66 Merge pull request #14036 from Madhu-1/fix-14004
subvolumegroup: add support for size and datapool
2024-04-10 10:22:24 -06:00
Madhu Rajanna f57a8b6bbe subvolumegroup: add support for size and datapool
cephfs subvolumegroup supports creating svg
with quota and the datapool, This PR adds the
support for the same.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2024-04-10 16:40:56 +02:00
Travis Nielsen 60efded303 Merge pull request #14026 from sp98/resource-cleanup
core: subvolumegroup clean up
2024-04-10 07:27:58 -06:00
sp98 ef00fdac53 core: subvolumegroup clean up
Cleanup the resources created by subvolumegroup
when its deleted. Following resources will be cleaned up:
- OMAP value
- OMAP keys
- Clones
- Snapshots
- Subvolumes

Signed-off-by: sp98 <sapillai@redhat.com>
2024-04-10 17:34:45 +05:30
Travis Nielsen 923d49b9be Merge pull request #14046 from BlaineEXE/doc-fix-network-provider-numbers-bullets
doc: fix network provider bullets and numbering
2024-04-08 11:23:07 -06:00