Commit Graph
9576 Commits
Author SHA1 Message Date
Travis Nielsen 946fbcf66e osd: create a service for each osd
The osd needs to bind to an ip that will allow both internal
and external access for rbd mirroring scenarios.
THe operator will create a service for each osd and
instruction the osd to bind to the pod ip while
publishing the clusterIP of the service as the
public IP.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 14e7225e0a18aff85ede1d476fcaddbbfbcbb732)
(cherry picked from commit d655c86b2f)
2023-02-27 16:50:55 +00:00
sp98 069f9b6732 core: multiClusterService API spec changes
Add API changes for export services to peer cluster

Signed-off-by: sp98 <sapillai@redhat.com>
(cherry picked from commit dd941de241)
2023-02-27 16:50:55 +00:00
Travis Nielsen 2ff87e20c1 Merge pull request #11758 from rook/mergify/bp/release-1.11/pr-11740
build: use Kube v1.26.1 API and in CI (backport #11740)
2023-02-27 08:05:00 -07:00
Travis Nielsen 18f87166d2 Merge pull request #11753 from rook/mergify/bp/release-1.11/pr-11745
test: Increase timeout waiting for ceph commands (backport #11745)
2023-02-24 15:13:46 -07:00
parth-gr 4c92a2e93a build: update k8s version to 1.26.1
Update the Kubernetes API version used to 1.26.1, and start testing
against Kubernetes version 1.26.1 in CI.

Co-authored-by: parth-gr <paarora@redhat.com>
Co-authored-by: Blaine Gardner <blaine.gardner@redhat.com>

Signed-off-by: parth-gr <paarora@redhat.com>
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 69ae9569cd)
2023-02-24 22:13:45 +00:00
Blaine Gardner 85aa2f420b Merge pull request #11752 from rook/mergify/bp/release-1.11/pr-11747
build: allow building on Mac with Apple silicon (backport #11747)
2023-02-23 10:04:53 -07:00
Travis Nielsen 383ab899fe test: wait for rgw to stabilize before checking vault token
The rgw may take a few seconds to stabilize before
the token can be checked in the rgw pod. Wait a few
seconds for test stability

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit bdbf5bc929)
2023-02-23 16:51:02 +00:00
Travis Nielsen e75d845014 test: print return value for intermittent failure
The canary tests sometimes have an intermittent failure
when processing the return value of a grep for the osds
to be running. Print some debug info to help track it
down.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 4c5163f843)
2023-02-23 16:51:01 +00:00
Travis Nielsen 3c85347ea5 test: increase timeout waiting for ceph commands
The test scripts were only waiting for a timeout of three
seconds for ceph commands, which was causing intermittent
failures in the CI. Now the timeout is increased to
ten seconds.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit ff01722b0f)
2023-02-23 16:51:01 +00:00
Blaine Gardner ba32c5c301 build: allow building on Mac with Apple silicon
There are a couple minor changes needed to allow building Rook on Apple
silicon.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 442e6480bd)
2023-02-23 15:50:28 +00:00
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