Commit Graph
10800 Commits
Author SHA1 Message Date
Redouane Kachach bbc482d82f exporter: applying labels from monitoring section to ceph-exporter
the labels listed under the 'monitoring' section are currently only
being applied to the rook-ceph-mgr ServiceMonitor. This change extends
those labels to also include the rook-ceph-exporter ServiceMonitor.

Fixes: https://github.com/rook/rook/issues/13774

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 10e26709c4)
2024-03-13 14:11:01 +00:00
Travis Nielsen b9284ac6ba Merge pull request #13897 from travisn/release-1.13.6
build: Update the release version to v1.13.6
v1.13.6
2024-03-07 14:08:14 -07:00
Travis Nielsen 37162fd7c0 build: update the release version to v1.13.6
For the patch release update the docs and example manifests
to v1.13.6.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-03-07 13:27:50 -07:00
mergify[bot] a7fc1f3005 Merge pull request #13797 from rook/mergify/bp/release-1.13/pr-13793
manifest: reduce CRD size by removing some descriptions (backport #13793)
2024-03-07 20:03:52 +00:00
Redouane Kachach 52eea1a966 manifest: adding a null check to PersistentVolumeClaim conversion
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 7a7b983628)
2024-03-07 12:34:51 -07:00
Travis Nielsen b3c888699d Merge pull request #13841 from rook/mergify/bp/release-1.13/pr-13840
Revert "doc: fix broken links" (backport #13840)
2024-03-07 11:43:09 -07:00
Travis Nielsen 3d4ecec373 Merge pull request #13862 from rook/mergify/bp/release-1.13/pr-13836
csi: update CSIDriverOption params during saving cluster config (backport #13836)
2024-03-07 11:22:49 -07:00
Travis Nielsen 458c1026bb Merge pull request #13895 from rook/mergify/bp/release-1.13/pr-13824
docs: note that changing encryption option settings for existing clusters is not dangerous (backport #13824)
2024-03-07 08:00:17 -07:00
ESASHIKA Kaoru 3004ca4a4f docs: note that changing encryption option settings for existing clusters is not dangerous
We have prohibited changing all network-related configurations after cluster creation.
However, as a result of https://github.com/rook/rook/discussions/13584, we found that
the connections.encryption flag can be regarded as an exception.

Signed-off-by: ESASHIKA Kaoru <kaoru-esashika@cybozu.co.jp>
(cherry picked from commit 9ceb8aa7e0)
2024-03-07 14:57:23 +00:00
mergify[bot] f97a3e268d Merge pull request #13894 from rook/mergify/bp/release-1.13/pr-13893
ci: Remove minor version from setup-go in govulncheck (backport #13893)
2024-03-07 13:48:12 +00:00
NymanRobin 38503b9b44 ci: remove minor version from setup-go in govulncheck
The patch version was pinned which caused problems
with security patches. Unpin it and always check
for new patch version

Signed-off-by: NymanRobin <nyman.robin@gmail.com>
(cherry picked from commit fdacd1e587)
2024-03-07 13:17:45 +00:00
Rakshith R d50b65b042 csi: update CSIDriverOption params during saving cluster config
During cluster creation, csi config map was first filled with
mon ips and without CSIDriverOptions.
This commit makes sure CSIDriverOptions are added at the begining
when the entry is first created.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 330f604cca)

# Conflicts:
#	pkg/operator/ceph/csi/cluster_config.go
#	pkg/operator/ceph/csi/cluster_config_test.go
2024-03-07 16:57:02 +05:30
Blaine Gardner c330618c70 Merge pull request #13887 from rook/mergify/bp/release-1.13/pr-13885
doc: remove legacy rgw service documentation (backport #13885)
2024-03-06 11:59:10 -07:00
parth-gr 7bbb9f05c7 doc: remove legacy rgw service documentation
the rgw service was removed, because users reported certificate
issues when Rook created Services for RGWs that had TLS (HTTPS) enabled.
It is now up to the user to create a Service if they want to use one.

part-of: https://github.com/rook/rook/discussions/13863

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 2c922c2879)
2024-03-06 18:58:31 +00:00
subham rai 849929c3f1 Merge pull request #13879 from rook/mergify/bp/release-1.13/pr-13877
build: fix master version helm values replacement (backport #13877)
2024-03-06 11:36:30 +05:30
Alexander Trost 39f3c683da build: fix master version helm values replacement
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
(cherry picked from commit 6f61f4600e)
2024-03-05 13:01:24 -07:00
Travis Nielsen 3b96697641 Merge pull request #13866 from rook/mergify/bp/release-1.13/pr-13856
external: enable the use of only v2 mon port (backport #13856)
2024-03-04 12:12:19 -07:00
Travis Nielsen 6302f39d4c Merge pull request #13868 from rook/mergify/bp/release-1.13/pr-13865
build: use 'baseos' as repo for iproute install (backport #13865)
2024-03-04 12:11:45 -07:00
Blaine Gardner 2f03c6e170 build: use 'baseos' as repo for iproute install
The rook/ceph Dockerfile uses dnf to ensure iproute (containing the 'ip'
CLI tool) is installed in the Rook image for Multus usage. This comes
from the 'baseos' repo, but if any other repos are unavailable
temporarily, it can cause the container build to fail.

Use the '--repo baseos' flag to help prevent these kinds of failures.
Additionally, this will speed up the build slightly since it does not
attempt to load any non-necessary repos.

This change may make the container build slightly fragile in the future
if CentOS changes the name of its baseos repo, or if the Ceph image
switches to a non-CentOS base image.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 072884f451)
2024-03-04 18:42:00 +00:00
parth-gr 1efd78968b external: enable the use of only v2 mon port
currently  the script requires to have both v2 and v1 port
to enable v2 port, but that is not the necessary condition,
so removing the chek, and enabling it only v2 is present to
successfully configure with v2 only

part-of: https://github.com/rook/rook/issues/13827

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 117bc76f20)
2024-03-04 18:33:00 +00:00
mergify[bot] 9801721833 Merge pull request #13847 from rook/mergify/bp/release-1.13/pr-13846
csi: update sidecars to latest release (backport #13846)
2024-03-01 18:59:30 +00:00
Madhu Rajanna 522526ae6d csi: update sidecars to latest release
updating all the csi sidecars to the
latest release.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 43fa57fa57)
2024-03-01 11:25:08 -07:00
karthik-us 7f6a309b48 Revert "doc: fix broken links"
This reverts commit ea700bcf9a.

Signed-off-by: karthik-us <ksubrahm@redhat.com>
(cherry picked from commit 532e865ba2)
2024-02-29 19:07:21 +00:00
subham rai b5c4400583 Merge pull request #13834 from rook/mergify/bp/release-1.13/pr-13833
doc: fix broken links (backport #13833)
2024-02-29 14:12:53 +05:30
karthik-us 11d1a2d015 doc: fix broken links
Fixing the broken links in the docs.

Signed-off-by: karthik-us <ksubrahm@redhat.com>
(cherry picked from commit ea700bcf9a)
2024-02-29 08:35:22 +00:00
mergify[bot] ef57f12e71 Merge pull request #13822 from rook/mergify/bp/release-1.13/pr-13816
operator: use Linux container CPU quota (backport #13816)
2024-02-26 17:28:12 +00:00
Thomas Way c0e84dcacf operator: use Linux container CPU quota
Go is not cgroup aware and by default will set GOMAXPROCS to the number
of available threads, regardless of whether it is within the allocated
quota. This behaviour causes high amount of CPU throttling and degraded
application performance.

Fixes: #13815

Signed-off-by: Thomas Way <thomas@6f.io>
(cherry picked from commit 97e3e69bf4)
2024-02-26 09:56:42 -07:00
Travis Nielsen b09a653e94 Merge pull request #13813 from travisn/release-1.13.5
build: Update the release version to v1.13.5
v1.13.5
2024-02-22 12:29:24 -07:00
Travis Nielsen 95f950ee1a build: update the release version to v1.13.5
For the patch release update the examples and docs
to v1.13.5.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-02-22 11:27:07 -07:00
Travis Nielsen 4f254e1ac3 Merge pull request #13791 from rook/mergify/bp/release-1.13/pr-13772
pool: Skip crush rule update when not needed (backport #13772)
2024-02-22 09:42:03 -07:00
Travis Nielsen febef52864 Merge pull request #13806 from subhamkrai/remove-cephfs-fencing-code
csi: remove cephFs networkFence code temporarily
2024-02-22 09:34:24 -07:00
subhamkrai 28182e9214 csi: remove cephFs networkFence code temporarily
cephFs fencing needs more testing and bug fixes to make
it in production. We tried multiple fixes but still it need
more work. So, removing the cephfs networkFence realted code
will rever this commit when we start working on this again.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit bd4250f56e)
2024-02-22 12:31:32 +05:30
subhamkrai 5a15f6af30 csi: check networkFence status before deleting
earlier, we were only checking the specs of networkFence to see if
unfencing is done before proceeding with deletion but we should also
check the status of networkFence before proceeding with deletion.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 0ace7cf8cf)
2024-02-22 12:29:25 +05:30
subhamkrai c3f4be4354 build: update csi-addons to v0.8.0
update go.mod to use csi-addons version v0.8.0.

Signed-off-by: subhamkrai <srai@redhat.com>
2024-02-22 12:28:48 +05:30
mergify[bot] d36f7b5e97 Merge pull request #13798 from rook/mergify/bp/release-1.13/pr-13794
mon: set mon pdb max unavailable as 2 in case of 5 or more mons. (backport #13794)
2024-02-20 20:06:26 +00:00
sp98 b0cb722638 mon: set mon pdb max unavailable as 2 in case of 5 or more mons
If the spec.mon.count is 5 or more, then create
mon pdbs with maxUnavailable count as 2. We can
afford to have more than 1 mons down while
draining the nodes in this case.

Signed-off-by: sp98 <sapillai@redhat.com>
(cherry picked from commit a4866b4b06)
2024-02-20 19:29:36 +00:00
Redouane Kachach c181e05dc4 manifest: reduce CRD size by removing some descriptions
Reduce CRD size by removing some descriptions for things that
(a) are long, (b) are repeated, and (c) are commong kubernetes types.

Remove the `Status` field from VolumeClaimTemplates (a.k.a. PVCs) in
types.go to remove all unnecessary status-related fields.

Use `yq` to go through generated `crds.yaml` to strip out descriptions
for well-known k8s types that are long and repeated where we can't
remove them from types.go. This is mostly placement descriptions and
volumeSource descriptions.

The overall `crds.yaml` file is reduced to less than 60% of its original
size.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
Co-authored-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit bd7477ec61)

# Conflicts:
#	deploy/charts/rook-ceph/templates/resources.yaml
#	deploy/examples/crds.yaml
2024-02-20 19:02:30 +00:00
travisn 8db804fe5c pool: skip crush rule update when not needed
The crush rule will be updated when the failure domain changes.
This update can be skipped when the expected crush rule is
already configured. Otherwise, the log has a confusing message
that makes it appear that the crush rule was updated
when in fact it was not.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 90bec31203)
2024-02-19 14:31:37 +00:00
Travis Nielsen f9cdbbd06a Merge pull request #13783 from rook/mergify/bp/release-1.13/pr-13780
External: fix syntax error import-external-cluster.sh (backport #13780)
2024-02-16 12:17:55 -07:00
Tim Olow 49dd36f2eb external: update import-external-cluster.sh
Removed = that was preventing the import-external-cluster.sh script from
importing external ceph cluster into k8s.

Fixes https://github.com/rook/rook/issues/13679

Signed-off-by: Tim Olow <tim@eth0.com>
(cherry picked from commit 7dcffae3f7)
2024-02-16 18:23:36 +00:00
mergify[bot] 749369e4a0 Merge pull request #13771 from rook/mergify/bp/release-1.13/pr-13768
core: Continue processing PVs for network fencing when no node IPs found (backport #13768)
2024-02-14 19:31:13 +00:00
Madhu Rajanna 1149d91a48 core: retry other pvc if active client not found
retry other cephfs/rbd pvc if there
are no active clients found on ceph cluster.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit ca21bd9715)
2024-02-14 18:57:11 +00:00
Madhu Rajanna c9b2e9f6af core: use error wraping in fenceCephFSVolume
to keep the code consistent and to propogate
more details about error rook uses error wraping.
updating current code whereever its required to
wrap the details.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit eb97390df2)
2024-02-14 18:57:11 +00:00
Madhu Rajanna 3a5eb389e2 core: fix cephfs pvc network fencing
The cephfs PVC might exist on the kubernetes
node object but due to some timing issues the
ip might not be visible on the ceph cluster or
the client might already got evicted or disconnected
from ceph cluster. In this case we will not be
able to get IP details for the subvolume and we dont
have any check for empty ip's in the code and rook
tries to create NetworkFence CR with empty Ip's
and the NetworkFence will get moved to the Failed state.
This PR adds the necessary check and logging to prevent
this one.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 0e115c44bf)
2024-02-14 18:57:11 +00:00
Travis Nielsen f6751d75ce Merge pull request #13767 from rook/mergify/bp/release-1.13/pr-13718
core: Delete networkFence CRs during cluster removal (backport #13718)
2024-02-13 21:18:00 -07:00
Travis Nielsen 3e83416fe1 Merge pull request #13764 from rook/mergify/bp/release-1.13/pr-13741
mgr: remove privileged security context from mgr sidecar container (backport #13741)
2024-02-13 15:51:36 -07:00
subhamkrai 01142d56d4 core: remove namespace/ownerRef from networkFence
since networkFence is a cluster-based resource so that we don't need
the namespace and ownerReferences as it cause garbage-collector errors.
Also, now we create the networkFence with clusteUID label so when doing
cleanup we match the cephCluster uid and networkFence label clusterUID.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 5bff860380)
2024-02-13 21:56:34 +00:00
Travis Nielsen 42e8e8b580 Merge pull request #13762 from rook/mergify/bp/release-1.13/pr-13693
Disallow legacy hostNetwork  together with  non-default provider (backport #13693)
2024-02-13 09:56:42 -07:00
Redouane Kachach f6458e91ae mgr: remove privileged security context from mgr sidecar container
Mgr sidecar was using a privileged security context because it needed
to create the /var/lib/rook directory, generate the config on it, and
then copy it to the /etc/ceph directory. This change creates empty
directories on /var/lib/rook and /etc/ceph so the mgr sidecar can use
them, removing the need for using a privileged security context.

Fixes: https://github.com/rook/rook/issues/13719

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit db4b3322fa)
2024-02-13 14:59:52 +00:00
Michael Adam 824626d3e5 network: disallow legacy hostNetwork together with non-default provider
Fixes: #13692

Since the introduction of the "host" network provider, the  legacy
"hostNetwork" setting is intended to be used only in combination with
the default network provider (""), but the code did not enforce this.

This change adds the required validation checks to throw errors
in invalid constellations.

These checks are added both in the operator's input  validation code
and as kubernetes x-validation admission policies in the Cepcluster CRD.

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 25aa15e6c1)
2024-02-13 14:15:00 +00:00