Commit Graph
9555 Commits
Author SHA1 Message Date
Travis Nielsen c45bc19f8f Merge pull request #11731 from rook/mergify/bp/release-1.11/pr-11721
monitoring: align with ceph/ceph prometheus alerts (backport #11721)
2023-02-21 10:36:44 -07:00
Travis Nielsen 68f57e92d5 Merge pull request #11729 from rook/mergify/bp/release-1.11/pr-11724
build: fix csv generation during make build (backport #11724)
2023-02-21 09:59:36 -07:00
ahgraber 030a09dfef monitoring: remove cephadm ruleset
Remove cephadm ruleset, as they don't apply to rook

Signed-off-by: ahgraber <ahgraber@ninerealmlabs.com>
(cherry picked from commit 568623d92b)
2023-02-21 16:56:45 +00:00
ahgraber 43c28ad5bd monitoring: align with ceph/ceph prometheus alerts
Update rook prometheus localrules files to align with ceph/ceph prometheus alerts

Signed-off-by: ahgraber <ahgraber@ninerealmlabs.com>
(cherry picked from commit ad2308d655)
2023-02-21 16:56:45 +00:00
Travis Nielsen 7a5c59e77e Merge pull request #11720 from rook/mergify/bp/release-1.11/pr-11713
build: update package dependencies (backport #11713)
2023-02-21 09:51:26 -07:00
Travis Nielsen 28b8d7807d Merge pull request #11727 from rook/mergify/bp/release-1.11/pr-11723
mgr: Wait for the mgr pod to be running after an update (backport #11723)
2023-02-21 09:33:30 -07:00
subhamkrai a5b1dbcfd6 build: fix csv generation during make build
we need to export variable in different lines
to work in Makefile, exporting in single doesn't
work.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 9abe1169ca)
2023-02-21 16:31:01 +00:00
Travis Nielsen 60e0328ab2 mgr: wait for the mgr pod to be running
After an update, the mgr pod will be restarted. Since the
readiness probe will indicate the standby mgr pod is never
ready, we need to check simply for the running mgr pod
and not whether or not it is ready.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 4d1017f805)
2023-02-21 15:36:05 +00:00
fengshunli 40039fd2b6 build: update package dependencies
Signed-off-by: fengshunli <1171313930@qq.com>
(cherry picked from commit fc1bbe5158)
2023-02-20 17:01:28 +00:00
Travis Nielsen c5ffde07fa Merge pull request #11709 from rook/mergify/bp/release-1.11/pr-11697
csi: add missing node access to cephfs driver (backport #11697)
2023-02-17 13:48:25 -07:00
Travis Nielsen bab4550188 Merge pull request #11710 from rook/mergify/bp/release-1.11/pr-11013
helm: support setting storageclass volumeBindingMode in rook-ceph-cluster helm chart (backport #11013)
2023-02-17 13:48:01 -07:00
Travis Nielsen e177d48b3d Merge pull request #11703 from rook/mergify/bp/release-1.11/pr-11692
build: update golang version to v1.19 (backport #11692)
2023-02-17 13:47:34 -07:00
Brian Dunnigan 69cb65e7a8 helm: support setting storageclass volumeBindingMode in rook-ceph-cluster helm chart
Signed-off-by: Brian Dunnigan <bdun1013dev@gmail.com>
(cherry picked from commit b2f778edcc)
2023-02-17 19:22:07 +00:00
Madhu Rajanna f8cb8cf635 csi: add missing node access to cephfs driver
Node access is only needed when we are using
volumeBindingMode: WaitForFirstConsumer in
the storageclass its not required for Immediate
BindingMode.

fixes: #11694

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 1cfa7eefae)
2023-02-17 19:19:14 +00:00
Travis Nielsen bbff144c87 Merge pull request #11707 from rook/mergify/bp/release-1.11/pr-11668
build: clean rbac which are not required (backport #11668)
2023-02-17 12:13:05 -07:00
Travis Nielsen 0b667e6875 Merge pull request #11706 from rook/mergify/bp/release-1.11/pr-11704
build(deps): bump golang.org/x/net from 0.5.0 to 0.7.0 (backport #11704)
2023-02-17 11:26:01 -07:00
subhamkrai 7be92f732c build: add rbac which are required
adding necessary rbac and also updating
csv-gen script.

Closes: https://github.com/rook/rook/issues/10141
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 4699e8885a)
2023-02-17 18:12:51 +00:00
subhamkrai 541baa224b ci: install kubectl binary in mac for csv gen
installing kubectl in mac build for csv generation
as without that it is failing with
```
./../build/csv/csv-gen.sh: line 26: kubectl: command not found
```

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 972202db0d)
2023-02-17 18:12:51 +00:00
dependabot[bot] 5174dc4f48 build(deps): bump golang.org/x/net from 0.5.0 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 4011ec696f)
2023-02-17 17:45:39 +00:00
parth-gr 63c66da813 core: change io/ioutil package to use io and os package
few functions got change as they were deprecated
for ex: ioutil.Readfile change to os.Readfile
ioutil.TempFile change to os.CreateTemp
And fixed golang-ci-lint-issues

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit a84daf9bf0)
2023-02-17 16:24:10 +00:00
parth-gr 54b33312a5 build: update golang version to v1.19
Updated the go mod and ci to use gov1.19 as
minimum and removed support for go1.18

Closes: https://github.com/rook/rook/issues/11681
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit b81ee215a7)
2023-02-17 16:24:09 +00:00
Travis Nielsen 6343775767 Merge pull request #11695 from rook/mergify/bp/release-1.11/pr-11690
ci: fix MultiClusterDeploySuite CI (backport #11690)
2023-02-16 14:34:59 -07:00
Travis Nielsen d7dab9d67b Merge pull request #11693 from rook/mergify/bp/release-1.11/pr-11631
csi: add support for enabling read affinity for rbd volumes. (backport #11631)
2023-02-16 11:22:47 -07:00
Redouane Kachach 6f45ea1a98 ci: fix MultiClusterDeploySuite CI
This fixes the the MultiClusterDeploySuite CI failure. The operator
is timing out waiting for the mgr deployments to be
ready, according to the WaitForDeploymentToStart() method. After
the reconcile times out after about five minutes, the next
reconcile succeeds since the wait is only done for new mgr
deployments.

Closes: https://github.com/rook/rook/issues/11685

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit b464428978)
2023-02-16 18:20:58 +00:00
Rakshith R 4d79b8c9b5 helm: add option for rbd read affinity
This commit documents and adds helm options
to enable read affinity for rbd volumes.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit cec987821e)
2023-02-16 15:00:33 +00:00
Rakshith R f03fb156f0 docs: add documentation about rbd read affinity
This commit documents steps to enable read affinity
for rbd volumes.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit f8c7a62c3b)
2023-02-16 15:00:33 +00:00
Rakshith R 21fa74f2d9 csi: add option to enable read affinity for rbd volumes
This commit adds code to supply variables required
to enable read affinity for rbd volumes.
It leverages `read_from_replica=localize,crush_locations=key:value`
krbd map option from ceph to serve reads from the most local OSD.
refer:
https://docs.ceph.com/en/latest/man/8/rbd/#kernel-rbd-krbd-options

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 8b9ded1f77)
2023-02-16 15:00:32 +00:00
Travis Nielsen fcbf78fbfe Merge pull request #11686 from travisn/release-1.11-beta.0
build: Set the release version for the v1.11.0-beta.0
v1.11.0-beta.0
2023-02-15 15:42:31 -07:00
Travis Nielsen db36fca3c7 build: set the release version for the v1.11 beta
For the new 1.11 branch set the beta release version
to v1.11.0-beta.0.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2023-02-15 14:58:30 -07:00
Travis Nielsen 06eb431525 Merge pull request #11674 from travisn/osd-version-label
osd: Ensure rook version label is not set on pod
v1.11.0-alpha.0
2023-02-15 12:21:09 -07:00
Travis Nielsen ace2e152e8 Merge pull request #11673 from travisn/rgw-pool-pgs
object: RGW metadata pg count reduction on 16.2.11
2023-02-15 12:20:23 -07:00
Travis Nielsen 3dabc6dcb6 Merge pull request #11317 from avanthakkar/introduce-ceph-exporter
core: introduce ceph-exporter
2023-02-15 11:59:05 -07:00
Travis Nielsen b9be333651 Merge pull request #11678 from Madhu-1/fix-v2-map
core: set rbd default map options
2023-02-15 11:49:04 -07:00
Travis Nielsen b008c5753f Merge pull request #11643 from rkachach/fix_issue_11640
mgr: use k8s readiness probe to implement mgr HA
2023-02-15 09:51:48 -07:00
Madhu Rajanna 0ab6c34bf2 core: set rbd default map options
Set the rbd map default option to ms_mode=prefer_crc
when v2 ports are used and encryption is disabled.
If we dont pass/set the ms_mode in the map options
the kernel client will assume its using v1 ports
and map operation will fail.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2023-02-15 12:46:40 +01:00
Avan Thakkar 460900756c core: add service monitor for ceph-exporter service
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
2023-02-15 15:44:56 +05:30
Redouane Kachach dc76f81fea mgr: use k8s readiness probe to implement mgr HA
The idea behind this change is to use the readiness probe to implement
the mgr HA mechanism. In the current ceph mgr implementation only the
active instance offers the command 'mgr_status' through the admin
socket. We use this command combined with a Readiness Exec Probe to
detect which manager is active. Kubernetes will automatically mark
it as ready and redirect any service traffic to the active instance.

Closes: https://github.com/rook/rook/issues/11640
Closes: https://github.com/rook/rook/issues/11638
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
2023-02-15 10:12:16 +01:00
Travis Nielsen 11e80b7047 Merge pull request #11436 from subhamkrai/bump-ci-k8s-version
ci: Update min K8s support to 1.21 and add 1.26 support
2023-02-14 20:26:56 -07:00
Travis Nielsen 6035c09c5b Merge pull request #11675 from travisn/upgrade-test-msgr2
test: Fix upgrade test for msgr2 setting
2023-02-14 20:25:43 -07:00
subhamkrai 1effb11a0a ci: bump min and max k8s support
this commit bump minmum k8s version to 1.21.14 and
max k8s version to latest 1.26.0. Keeping support for
most recent 6 versions.

Signed-off-by: subhamkrai <srai@redhat.com>
2023-02-15 07:08:02 +05:30
Travis Nielsen 88f66ff1f2 test: fix upgrade test for msgr2 setting
The requireMsgr2 setting is not available in 1.10, therefore
the setting must be removed from the cephcluster CR
when the 1.10 cluster is created before the upgrade.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2023-02-14 17:23:38 -07:00
Travis Nielsen 107d947f97 object: rgw metadata pg count reduction on latest pacific
The removal of the rgw_rados_pool_pg_num_min property
was completed in v16.2.11 for Pacific. The previous
fix in PR 11024 only assumed the fix was in Quincy v17.2.2
or newer. Now we account for v16.2.11 as well.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2023-02-14 16:25:31 -07:00
Travis Nielsen 1ba93b4047 osd: ensure rook version label is not set on pod
The rook-version tag must not be set on the pod spec labels
since it will result in the ceph daemons being restarted every
time there is a rook version update, even if the ceph version
or pod spec was not otherwise updated.

The rook-version tag was being added to the OSD pod spec
due to a shared pointer to the labels. The code intended
to only add the version label to the deployment labels,
but since the pod labels shared the map variable, the
pod unintentionally also had the version label added.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2023-02-14 16:10:53 -07:00
Travis Nielsen 47d7c06bdc core: remove dead code for rook version labels
The RookVersionLabelMatchesCurrent() method is no longer
used, so remove it.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2023-02-14 15:56:40 -07:00
Travis Nielsen 240bd564f2 Merge pull request #11663 from travisn/remove-psp-doc
docs: Remove mention of PSPs from documentation
2023-02-14 15:01:40 -07:00
Travis Nielsen 2e89649b3a Merge pull request #11594 from subhamkrai/update-rbd-mirror-log-size
rbdmirror: set log rotation from 7 to 4x i.e 28
2023-02-14 07:51:05 -07:00
Travis Nielsen cc8e69fb7f Merge pull request #11662 from mnlipp/improved-fs-example
Add comment regarding placement restrictions.
2023-02-13 14:56:15 -07:00
Michael N. Lipp f466789ad5 docs: add comment regarding placement restrictions
The sample files placement rules are too restrictive for small clusters.
The comment provides a hint how to fix this.

Closes: https://github.com/rook/rook/issues/11658

Signed-off-by: Michael Lipp <mnl@mnl.de>
2023-02-13 22:53:09 +01:00
Travis Nielsen eb4a727658 docs: remove mention of psps from documentation
The PSPs have long since been deprected. In K8s 1.21 the PSPs
were first deprecated, and support was completely removed
for them in 1.25. With Rook v1.11, the min supported version of
K8s is now 1.21. To reduce confusion in the documentation,
mention of the PSPs is now removed from the 1.11 docs.
For the corner case that users still require the PSPs,
the helm chart still contains the option for creating PSPs
or other users can still create the psp.yaml.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2023-02-13 13:30:32 -07:00
Blaine Gardner 76528305f0 Merge pull request #11281 from subhamkrai/update-operator-sdk
core: upgrade to latest operator-sdk v1.25.0
2023-02-13 09:33:32 -07:00