Commit Graph
8758 Commits
Author SHA1 Message Date
Ali, Akil 33327fc4c7 external: fix secrets naming
The secrets are being created with "rook-" prefix, but used without it.
Signed-off-by: Ali, Akil <ali-akil@gmx.de>
(cherry picked from commit 25265bc9c2)
2022-07-14 16:44:46 +00:00
mergify[bot] 1f578ca7ab Merge pull request #10595 from rook/mergify/bp/release-1.9/pr-10494
osd: metadata device supports udev path (backport #10494)
2022-07-14 08:17:52 +00:00
Liang Zheng 07c7082f92 osd: metadata device supports udev path
This commit adds udev path for metadata device

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

Signed-off-by: Liang Zheng <zhengliang0901@gmail.com>
(cherry picked from commit 7609dad72f)
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-07-14 07:36:45 +00:00
Travis Nielsen 617e9e0ebb Merge pull request #10592 from rook/mergify/bp/release-1.9/pr-10589
ci: Pin the whereabouts version to v0.5.3 (backport #10589)
2022-07-13 16:47:17 -06:00
Travis Nielsen d1ff2ed4b9 ci: pin the whereabouts version to v0.5.3
The whereabouts manifests in the master branch
have moved around, so until the new approach
is investigated we pin to the latest release
version v0.5.3

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 53955790f3)
2022-07-13 18:03:28 +00:00
mergify[bot] 919f818e1b Merge pull request #10588 from rook/mergify/bp/release-1.9/pr-10570
csi: default values of leader election not enough (backport #10570)
2022-07-13 14:33:17 +00:00
mergify[bot] 823f858111 Merge pull request #10587 from rook/mergify/bp/release-1.9/pr-10577
mgr: Skip updating service if there is no selector (backport #10577)
2022-07-13 14:15:30 +00:00
subhamkrai dc22ba8dfa csi: default values of leader election not enough
csi pods uses leader election and they were using
default values but seems like default values of leader
election are not working for some specific clusters.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 5e92a30a77)
2022-07-13 14:05:36 +00:00
Travis Nielsen d7f894779a Merge pull request #10586 from cybozu-go/ci-fix-workflow-file
ci: fix workflow file
2022-07-13 08:01:24 -06:00
Travis Nielsen 8aef0b770e mgr: skip updating service if there is no selector
When the mgr services are updated by the operator to set the
active mgr properly, skip services that do not currently
have a selector set.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit b8dac76d18)
2022-07-13 13:45:08 +00:00
Satoru Takeuchi d946316391 ci: fix workflow file
PR 10584 was merged by mistake even though lvm canary test failed. This test
failed due to the lack of the backport of a recent workflow file change (PR 10385).

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-07-12 23:44:36 +00:00
mergify[bot] 8743cb3ee9 Merge pull request #10584 from rook/mergify/bp/release-1.9/pr-7967
osd: support OSD on logical volume in host-based cluster (backport #7967)
2022-07-12 22:47:01 +00:00
Satoru Takeuchi 06c7d3d682 osd: support OSD on logical volume in host-based cluster
Rook supports raw mode OSD in host-based cluster. So we can also
support OSD on logical volume in this kind of cluster.

Logical volumes aren't picked by filters (i.e. `useAllDevices: true`
and `device{Path,}Filter` to avoid unwanted LV consumption on upgrade.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 7e571f6114)
2022-07-12 20:04:25 +00:00
Travis Nielsen 34c8a8f414 Merge pull request #10571 from rook/mergify/bp/release-1.9/pr-10569
helm: add missing port for webhook in helm (backport #10569)
2022-07-08 09:26:12 -06:00
subhamkrai 4516ec6ee2 helm: add missing port for webhook in helm
adding port which was missing from helm rook-ceph chart
which is used by webhook due to which it was failing with
```
failed to run operator: gave up to run the operator manager: failed to
run the controller-runtime manager: listen tcp :9443: bind: address
already in use
```

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 94f0c0dc25)
2022-07-08 14:35:03 +00:00
Travis Nielsen 721ddf3cd7 Merge pull request #10565 from travisn/release-1.9.7
build: Set release version to v1.9.7
v1.9.7
2022-07-07 14:22:38 -06:00
Travis Nielsen c61f909bea build: set release version to v1.9.7
For the patch release the examples and documentation are updated
to v1.9.7.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-07-07 13:04:45 -06:00
Travis Nielsen 7ea5cc8eef Merge pull request #10564 from rook/mergify/bp/release-1.9/pr-10558
helm: use recommended value for helm managed-by label (backport #10558)
2022-07-07 13:02:58 -06:00
Alexander Trost b13bb0bdb7 helm: use recommended value for helm managed-by label
This changes the `app.kubernetes.io/managed-by` label to use the helm
`{{ .Release.Service }}` for it's value.
This is recommended by the Helm labels and annotations standard labels
doc page, see https://helm.sh/docs/chart_best_practices/labels/#standard-labels

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
(cherry picked from commit 455508ea14)
2022-07-07 17:57:38 +00:00
Travis Nielsen 53e51db44a Merge pull request #10554 from rook/mergify/bp/release-1.9/pr-10547
manifest: use `Recreate` strategy for operator upgrade (backport #10547)
2022-07-07 10:48:10 -06:00
Travis Nielsen 05714cd72c Merge pull request #10549 from parth-gr/backport-1.9-subvolume
external: add support for subvolumegroup and rados namespace (backport #10459)
2022-07-06 10:51:35 -06:00
parth-gr d6a4187bdd csi: add support for subvolumegroup and rados namespace
Using subvolume group and rados namespace for external deployment
was complicated and not documented,
Automating the process for the users, so they just need to pass
the respective names by cli flag for creation

Closes: rook#10427

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit c9a864ccdb)
Signed-off-by: parth-gr <paarora@redhat.com>
2022-07-06 19:15:04 +05:30
mergify[bot] 51c4c9dbba Merge pull request #10550 from rook/mergify/bp/release-1.9/pr-10506
docs: Refactor cluster crd doc for subtopics (backport #10506)
2022-07-05 18:54:40 +00:00
Travis Nielsen 89e81fb0ee docs: refactor cluster crd doc for subtopics
The cluster CR doc is extremely long and in need of refactoring.
Now we have four new sub-topics for a host-based cluster,
PVC-based cluster, stretch cluster, and an external cluster.
Each of those topics has its own description and examples.
The main cluster CR topic still contains the details about
all the possible cluster CR settings.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 34ca5d661b)
2022-07-05 12:10:07 -06:00
mergify[bot] 96f54be7ea Merge pull request #10553 from rook/mergify/bp/release-1.9/pr-10539
ci: skip nfs e2e to avoid flaky e2e (backport #10539)
2022-07-05 17:54:43 +00:00
Santosh Pillai cd9333394f manifest: use Recreate strategy for operator upgrade
Use `Recreate` strategy instead of `RollingUpdate` for
rook-ceph-operator deployement upgrade

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit 693c2d9306)
2022-07-05 17:41:41 +00:00
Rakshith R eddc8289ac ci: make sure PVC is deleted before proceeding for file test
Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 034c4756d3)
2022-07-05 17:25:53 +00:00
Rakshith R 0ea2c87e63 ci: skip nfs csi e2e to avoid flaky e2e
Skip nfs csi e2e until https://github.com/rook/rook/issues/10518
is resolved to avoid flakiness.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 16d34e1425)
2022-07-05 17:25:53 +00:00
Travis Nielsen 3cbc8b665e Merge pull request #10527 from rook/mergify/bp/release-1.9/pr-10495
ci: rename EnableCSINFS to TestNFSCSI & explain "nolock" mountOption (backport #10495)
2022-06-30 15:31:41 -06:00
Rakshith R a9bf553f5e ci: explain why "nolock" mountOption is needed for nfs
"nolock" mountOptions has been added to prevent the following error in ci:
Output: mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 621dd2a159)
2022-06-29 14:00:22 +00:00
Rakshith R 92a4733126 ci: rename TestCephSettings.EnableCSINFS to TestNFSCSI
Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 928dd46593)
2022-06-29 14:00:22 +00:00
mergify[bot] d8c86ee19c Merge pull request #10524 from rook/mergify/bp/release-1.9/pr-10154
helm: use correct namespace for provisioner in cephobjectstore template (backport #10154)
2022-06-28 15:22:35 +00:00
Markus Schmidleitner b11622fbcd docs: added upgrade note (#10153)
Signed-off-by: Markus Schmidleitner <markus.schmidleitner@ocilion.com>
(cherry picked from commit 506c266f2f)
2022-06-28 14:54:34 +00:00
Markus Schmidleitner 16dedbf3fe test: delete object sc before upgrade tests (#10153)
Signed-off-by: Markus Schmidleitner <markus.schmidleitner@ocilion.com>
(cherry picked from commit 00689476df)
2022-06-28 14:54:34 +00:00
Markus Schmidleitner 0d8a46d266 helm: use correct namespace for provisioner in cephobjectstore template (fixes #10153)
Signed-off-by: Markus Schmidleitner <markus.schmidleitner@ocilion.com>
(cherry picked from commit 36a9374555)
2022-06-28 14:54:34 +00:00
Travis Nielsen 31a69cba99 Merge pull request #10517 from rook/mergify/bp/release-1.9/pr-10505
mon: Disable insecure global ids for new deployments (backport #10505)
2022-06-27 17:18:45 -06:00
Travis Nielsen 6d9ecf48bc mon: disable insecure global ids for new deployments
In new deployments we always want to disable the insecure global id.
If the mgr deployment is newly created, we know it's a new cluster
and the mons are in quorum, so we can go ahead and disable the
insecure global IDs.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 28957b3ff1)
2022-06-27 21:54:07 +00:00
Travis Nielsen 9f42987feb mon: fix typo in log message for msgr2
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit ecbc438d7a)
2022-06-27 21:54:07 +00:00
mergify[bot] 7f2302ad25 Merge pull request #10512 from rook/mergify/bp/release-1.9/pr-10490
csi: fix stagingpath (backport #10490)
2022-06-27 19:18:58 +00:00
Prasanna Kumar Kalever 19c72a31a3 csi: fix stagingpath
Kubernetes 1.24 and newer use a different path for staging the volume.
That means the CSI-driver is requested to mount the volume at an other
location, compared to previous versions of Kubernetes.

The backward compatibility should be taken care by the CSI driver.

See-also: kubernetes/kubernetes#107065
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
(cherry picked from commit 2627f32d51)
2022-06-27 16:23:17 +00:00
Travis Nielsen ba67a90f10 Merge pull request #10500 from travisn/release-1.9.6
build: Update release version to v1.9.6
v1.9.6
2022-06-23 14:56:33 -06:00
Travis Nielsen c48c68c07c build: update release version to v1.9.6
The patch release is updated in the docs and examples to v1.9.6

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-23 14:10:46 -06:00
mergify[bot] 5d12bb4a7f Merge pull request #10488 from rook/mergify/bp/release-1.9/pr-10354
e2e: add tests for nfs csi pvc (backport #10354)
2022-06-23 20:03:57 +00:00
mergify[bot] 0a97462f2f Merge pull request #10498 from rook/mergify/bp/release-1.9/pr-10480
core: delete v1beta1 cronjob only when v1 not found (backport #10480)
2022-06-23 16:41:00 +00:00
mergify[bot] 11a8c36e08 Merge pull request #10497 from rook/mergify/bp/release-1.9/pr-10496
osd: increase memory of osd prepare pods (backport #10496)
2022-06-23 16:11:27 +00:00
subhamkrai 842c630562 core: delete v1beta1 cronjob only when v1 not found
earlier we're deleting v1beta1 always before creating
v1 job. Now, we delete only when k8s version is
latest(which supports v1  job) and v1 job is not created
which means this is the first time and this is the only time we'll
delete v1beta1.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 196f5da635)
2022-06-23 16:08:30 +00:00
parth-gr 95ec5ba437 osd: increase memory of osd prepare pods
In helm charts default value of osd prepare pods
limit was less so increased it to 400Mi

closes: https://github.com/rook/rook/issues/10477

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit bf1342b2b3)
2022-06-23 15:41:21 +00:00
Rakshith R 941e551cae ci: add tests for nfs csi pvc
This commit adds nfs csi pvc test into
ceph smoke suite.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 5b017cfd67)
2022-06-22 16:31:42 -06:00
mergify[bot] 73da09a399 Merge pull request #10471 from rook/mergify/bp/release-1.9/pr-9915
file: block deletion on more dependents (backport #9915)
2022-06-22 22:27:16 +00:00
Blaine Gardner 1dbcce22d3 file: block deletion on more dependents
Block deletion of CephFilesystems when there are any raw Ceph
subvolumegroups present that have subvolumes in them. Empty
subvolumegroups will not block deletion.

One important subvolume group is "csi" which is the default location
where CSI subvolumes are kept. If this group is empty, it means that
there are no PVCs created based on the CephFilesystem in question. This
also holds true if there are external consumers of the filesystem in
external cluster mode.

Similarly, if there are any subvolumegroups (for example "_nogroup",
which includes subvolumes in the filesystem root) that contain
manually-created subvolumes, Rook will also see this and block deletion.
This comes into play currently with manually-created NFS exports.

A work-in progress aims to create a Ceph-CSI NFS export provisioner
which will likely create subvolumes in the "csi" group as well. This
implementation will catch this case also.

Rook still checks for CephFilesystemSubVolumeGroups explicitly in
addition to the check added here. This is to ensure that even empty
groups will block deletion if they are created via this CR type.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit a63844f8bf)

# Conflicts:
#	tests/framework/utils/k8s_helper.go
#	tests/integration/ceph_base_file_test.go
2022-06-22 15:34:43 -06:00