Commit Graph
9566 Commits
Author SHA1 Message Date
Travis Nielsen fa4d97ea68 Merge pull request #11739 from rook/mergify/bp/release-1.11/pr-11738
csi: update cephcsi to v3.8.0 (backport #11738)
2023-02-22 09:38:13 -07:00
Madhu Rajanna 3d65f951d8 csi: update cephcsi to v3.8.0
updating the cephcsi image to v3.8.0
release and also removing support for
3.6.0 as its deprecated and not supported
any more.

More details at
https://github.com/ceph/ceph-csi/releases/tag/v3.8.0
and https://github.com/ceph/ceph-csi/tree/release-v3.8
\#ceph-csi-container-images-and-release-compatibility

fixes #11688

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit b01180580c)
2023-02-22 15:30:15 +00:00
Travis Nielsen abc45c43a4 Merge pull request #11733 from rook/mergify/bp/release-1.11/pr-11716
object: update os user caps (backport #11716)
2023-02-22 07:15:41 -07:00
Travis Nielsen 149774b32d Merge pull request #11737 from rook/mergify/bp/release-1.11/pr-11661
mgr: remove legacy mgr HA logic and watch-active sidecar (backport #11661)
2023-02-22 07:14:44 -07:00
Redouane Kachach baa8a8988b mgr: addressing review comments
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 9f37439a07)
2023-02-22 05:20:01 +00:00
Redouane Kachach 0207134140 mgr: remove mgr sidecar
With the new mgr HA implementation (based on readiness probe) we
don't need the mgr sidecar (live-watch) anymore. This commit is
intended to remove all the related code.

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit ff75ec96b7)
2023-02-22 05:20:00 +00:00
Travis Nielsen 1168fc220a Merge pull request #11735 from rook/mergify/bp/release-1.11/pr-11734
doc: add helm supported version note to upgrade doc (backport #11734)
2023-02-21 13:51:46 -07:00
Blaine Gardner 3eda73cf3b docs: add helm supported version note to upgrade doc
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 1d3880322b)
2023-02-21 20:29:36 +00:00
Liang Zheng e3fb072415 object: update os user caps
Removing user caps will be skipped as the UserCaps is empty, which will cause updating user caps to not take effect.

Signed-off-by: Liang Zheng <zhengliang0901@gmail.com>
(cherry picked from commit c81aa7f856)
2023-02-21 19:26:37 +00:00
Travis Nielsen fc5d6dad7a Merge pull request #11730 from rook/mergify/bp/release-1.11/pr-11728
docs: update docs to prepare for v1.11 release (backport #11728)
2023-02-21 10:37:01 -07:00
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
Blaine Gardner 8cde4af1d8 docs: update docs to prepare for v1.11 release
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit c398d1e291)
2023-02-21 16:50:49 +00: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