Commit Graph
11075 Commits
Author SHA1 Message Date
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
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
Blaine Gardner ad9e0976e2 doc: fix network provider bullets and numbering
Most bullets and numbering in the network providers doc (sub-doc of
CephCluster CR) wasn't rendering properly on the web. Fix by making sure
there is a blank line before each numbered/bulleted section. And make
sure nested numberings are indented 4 spaces.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2024-04-08 10:45:16 -06:00
subham rai 7cc5bdf6c8 Merge pull request #14045 from rook/dependabot/go_modules/golang.org/x/sync-0.7.0
build(deps): bump golang.org/x/sync from 0.6.0 to 0.7.0
2024-04-08 21:04:51 +05:30
dependabot[bot] abc3334120 build(deps): bump golang.org/x/sync from 0.6.0 to 0.7.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.6.0 to 0.7.0.
- [Commits](https://github.com/golang/sync/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-08 12:20:51 +00:00
subham rai 08232d0e01 Merge pull request #14038 from microyahoo/nit
ci: add misspell linter
2024-04-08 17:32:23 +05:30
Liang Zheng e76dd03f54 ci: add misspell linter
add misspell linter to check all source codes

Signed-off-by: Liang Zheng <zhengliang0901@gmail.com>
2024-04-08 18:51:04 +08:00
Travis Nielsen 8c8844e70d Merge pull request #14033 from travisn/reset-release-notes
doc: Reset pending release notes
2024-04-05 07:35:36 -06:00
Travis Nielsen 3abe851589 doc: reset pending release notes
Since v1.14 is released, we reset the pending release notes
for the v1.15 release.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-04-04 14:33:58 -06:00
Blaine Gardner e11f81e5f2 Merge pull request #14023 from BlaineEXE/doc-network-csi-host-net-not-supported
doc: make CSI host netowrking required
2024-04-04 13:57:13 -06:00
Travis Nielsen 9a05a66ce6 Merge pull request #14027 from subhamkrai/fix-govul-ci
ci: update go version in govulncheck
2024-04-04 07:24:32 -06:00
subhamkrai f063e8fe39 ci: update go mod and go version in govulncheck
this commits updates the go version to 1.22.2 in govulncheck ci and
also updates golang.org/x/net to v0.23.0 to fix the ci

Signed-off-by: subhamkrai <srai@redhat.com>
2024-04-04 12:08:35 +05:30
Blaine Gardner 519c7e8911 doc: make CSI host netowrking required
The network providers doc, including the holder pod migration sections,
were developed with the understanding that CSI could be placed into pod
networking mode if desired by users. In reality, this hasn't been
supported due to bugs.

This allows streamlining the holder pod migration sections to no longer
need to document for users what to do if they use CSI in pod network
mode.

Rook will continue to have the `CSI_ENABLE_HOST_NETWORK` config
available as an undocumented value. This can allow users who desperately
cannot use host networking to still use pod networking, though this will
mean any CSI node plugin updates could stall mounts for running apps.
Thus we do not support it.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2024-04-03 12:19:15 -06:00
Travis Nielsen 3574aab2d5 Merge pull request #14014 from travisn/helm-csi-separate-tag
helm: Separate repository and tags for csi images in the operator chart
2024-04-03 12:16:31 -06:00
Travis Nielsen 64f71d9258 helm: separate repository and tags for csi images
The csi images in the operator helm chart previously were a single
image name including the repository and tag in a single string.
Now the repository and tag values are separated to allow for
greater customization of the repository from the version tags.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-04-03 11:43:11 -06:00
Travis Nielsen 9964a52080 Merge pull request #14019 from microyahoo/nit
rgw: fix typo on crd endpoint address
2024-04-03 08:54:33 -06:00
Liang Zheng 76d3d85628 rgw: fix typo on crd endpoint address
The rgw endpoint address had a typo

Signed-off-by: Liang Zheng <zhengliang0901@gmail.com>
2024-04-03 19:13:16 +08:00
subham rai 71b3728a99 Merge pull request #13958 from NymanRobin/improve-kubectl-get-output
operator: improve the output of kubectl get
2024-04-03 10:42:17 +05:30