Commit Graph
10744 Commits
Author SHA1 Message Date
travisn 0c32fa3dd1 build: update the release version to v1.13.4
For the patch release update the examples and docs
to v1.13.4.

Signed-off-by: travisn <tnielsen@redhat.com>
2024-02-08 12:36:38 -07:00
Travis Nielsen 8335a9923a Merge pull request #13731 from rook/mergify/bp/release-1.13/pr-13728
core: remove ownerRef from networkFence (backport #13728)
2024-02-08 12:07:56 -07:00
mergify[bot] 94eb35e6d0 Merge pull request #13729 from rook/mergify/bp/release-1.13/pr-13722
helm: Remove cpu limits from all pods (backport #13722)
2024-02-08 18:33:58 +00:00
subhamkrai 0113cc85c5 core: remove 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.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 2ac418a3b2)
2024-02-08 18:27:28 +00:00
travisn 952b705ffc helm: remove cpu limits from all pods
When CPU requests and limits are assigned to a pod,
the pod will be guaranteed the requests, up to the limits.
Even if there are spare CPU cycles, the pod cannot use
them. Thus, pods can be unnecessarily denied compute
when they need to burst if the limits are set.

Therefore, it is not recommended to set CPU limits
since the CPU requests are already guaranteeing that
no pod will be starved at least for its requests.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 27265ff279)
2024-02-08 18:00:33 +00:00
mergify[bot] 1c0b68ab30 Merge pull request #13713 from rook/mergify/bp/release-1.13/pr-13673
osd: correct counting the devices when metadataDevice is set (backport #13673)
2024-02-08 00:33:45 +00:00
Satoru Takeuchi 0c3de73bdb osd: correct counting the devices when metadataDevice is set
The validation logic of checking the number of devices is
wrong when `metadataDevice` is set and `osdsPerDevice` > 1.
`len(cvReports)` is the expected number of OSDs and is
the number of specified data devices multiplied
by `osdsPerDevice`.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 753bbfe1c4)
2024-02-08 00:04:02 +00:00
Travis Nielsen bcb43028a6 Merge pull request #13721 from rook/mergify/bp/release-1.13/pr-13720
docs: fix CephCluster.spec.cephVersion.imagePullPolicy list item (backport #13720)
2024-02-07 14:46:45 -07:00
Joshua Hoblitt f30f34922c docs: fix CephCluster.spec.cephVersion.imagePullPolicy list item
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit a670fd9671)
2024-02-07 21:09:58 +00:00
Travis Nielsen 0c0e202d81 Merge pull request #13710 from rook/mergify/bp/release-1.13/pr-13511
core: set blocking PDB even if no unhealthy PGs appear (backport #13511)
2024-02-06 12:41:34 -07:00
Ryotaro Banno f4291a3e0a core: set blocking PDB even if no unhealthy PGs appear
When `managePodBudgets` is enabled, the Rook operator sets a blocking
PDB by considering the failure domains of the OSDs. This functionality
is implemented by `reconcilePDBsForOSDs`, and it sets the PDB only after
unhealthy PGs appear. However, there are no unhealthy PGs when an OSD
with no PGs becomes down. In this case, the PDB is never enabled.

This PR makes the operator configure the blocking PDB without waiting
for the unhealthy PGs to appear. This PR solves the above problem
because the blocking PDB is always enabled when a down OSD is detected.

Signed-off-by: Ryotaro Banno <ryotaro.banno@gmail.com>
(cherry picked from commit 6def9c8e30)
2024-02-06 18:47:17 +00:00
mergify[bot] 9221e5910c Merge pull request #13688 from rook/mergify/bp/release-1.13/pr-13615
csi: update network fence CR name (backport #13615)
2024-02-06 18:34:27 +00:00
Travis Nielsen 73e2fdb34f Merge pull request #13682 from rook/mergify/bp/release-1.13/pr-13652
core: Skip reconcile if override configmap is empty (backport #13652)
2024-02-06 11:34:12 -07:00
Travis Nielsen d55c2663c5 Merge pull request #13689 from rook/mergify/bp/release-1.13/pr-13623
object: add check specific to name and namespace for ceph cosi driver (backport #13623)
2024-02-06 11:33:29 -07:00
travisn 285d5fcabf core: skip reconcile if override configmap is empty
If the configmap rook-config-override is empty,
there is no need to trigger the reconcile to update
the ceph daemons. This configmap update is causing
unnecessary reconciles periodically in some clusters
even when it is empty.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 0240ee8563)
2024-02-06 17:49:26 +00:00
Riya Singhal 49aa21c93c csi: update network fence CR name
this commit updates the name of network fence CR to
node name + driver name, which will allow the creation of
multiple network fence per drivers on the same node, and
modifies the unit test and deletion procedure for the
same.

Signed-off-by: Riya Singhal <rsinghal@redhat.com>
(cherry picked from commit c2e3cf367c)
2024-02-06 17:48:53 +00:00
Jiffin Tony Thottan fb9befd501 object: add check specific to name and namespace for ceph cosi driver
The name for cephcosi driver should be ceph-cosi-driver and namespace
should same as the rook operator. Otherwise request need to be failed.

Fixes: #13025
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 5b5e1c0292)
2024-02-06 17:48:34 +00:00
Travis Nielsen 97ecfb9a76 Merge pull request #13709 from rook/mergify/bp/release-1.13/pr-13699
test: use mounter kernal instead of fuse (backport #13699)
2024-02-06 07:56:26 -07:00
subhamkrai 6887958c67 test: use mounter kernal instead of fuse
this kernal version is greater than 5.11 let's
use mounter kernal instead of fuse.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit abc272c91c)
2024-02-06 14:17:32 +00:00
subham rai 2383442d16 Merge pull request #13706 from rook/mergify/bp/release-1.13/pr-13697
ci: remove `/dev` prefix from the `TEST_SCRATCH_DEVICE`  and `deviceFilter` spec. (backport #13697)
2024-02-06 17:18:55 +05:30
sp98 ba470a54dd ci: fix ci failure for multicluster tests
This PR fixes the failure while running multicluster mirroring CI tests

Signed-off-by: sp98 <sapillai@redhat.com>
(cherry picked from commit 45adae1931)
2024-02-06 10:42:44 +00:00
Travis Nielsen b084598802 Merge pull request #13696 from rook/mergify/bp/release-1.13/pr-13694
ci: fix detection of GH actions extra disk (backport #13694)
2024-02-05 20:03:03 -07:00
Blaine Gardner 5e53ce16a6 ci: fix detection of GH actions extra disk
The 'extra' block device attached to GH actions runners has changed size
twice in 3 months. The previous strategy of detecting the disk by size
is becoming harder to maintain. Additionally, the block size with recent
changes (75G) is now the same as the boot device (also 75G), making the
method inexact.

The method can now be summarized as, "find the boot disk and choose the
disk that isn't the boot disk to be the 'extra' one used."

Prior to this, we used a one-liner based on `lsblk`. While we could
still make this a one-liner, the method is now updated to 2 effective
lines, plus debug text output to stderr to help if we need to debug
further in the future.

Of note, the 'extra' disk has a mount point of "/mnt", but it is unclear
whether this is a reliable heuristic for detecting the extra disk. For
years now, GH action runners have had only 2 disks. Therefore, it seems
slightly more likely that a heuristic to "choose the non-boot disk" will
be a more robust long-term solution.

If this strategy proves to be unreliable in the future, it may be wise
to consider whether "the device with a partition mounted to '/mnt'"
would be a good alternative.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit feacb6424e)
2024-02-06 02:10:55 +00:00
Travis Nielsen 68b17e05ef Merge pull request #13691 from rook/mergify/bp/release-1.13/pr-13675
ci: disk in github action increased to 75G from 64G (backport #13675)
2024-02-05 19:08:43 -07:00
subhamkrai 7f2b60681d ci: disk in github action increased to 75G from 64G
the disk size in the github action machine has
increased from 64G to 75G. Now, we detech the version
automatically not fetching hard coded value.

Co-authored-by: Jan Klippel <jan.klippel@uhurutec.com>
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 6b0deb32d9)
2024-02-05 17:29:54 +00:00
Blaine Gardner 964d38c686 Merge pull request #13671 from rook/mergify/bp/release-1.13/pr-13670
ci: check for gofmt usage in golangci-lint (backport #13670)
2024-02-01 17:42:18 -07:00
Blaine Gardner 8d3e6f2dc5 ci: check for gofmt usage in golangci-lint
This is needed because not all contributors may be using gomft to format
source code, and this could result in inconsistent usage over time.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit c98ce0a56b)
2024-02-01 19:13:09 +00:00
Travis Nielsen 2b876080ec Merge pull request #13668 from rook/mergify/bp/release-1.13/pr-13653
exporter: Don't delete exporter service on daemon deletion (backport #13653)
2024-02-01 10:17:05 -07:00
Travis Nielsen d1a6ebdf5a Merge pull request #13669 from rook/mergify/bp/release-1.13/pr-13663
csi: Fix NetNamespaceFilePath generation with namespace instead of name (backport #13663)
2024-02-01 10:16:45 -07:00
Praveen M e596f31cf0 csi: fix NetNamespaceFilePath generation
Corrected the NetNamespaceFilePath generation in the
subvolumegroup & radosnamespace controller by replacing
the cephCluster.Name with cephCluster.Namespace.

Signed-off-by: Praveen M <m.praveen@ibm.com>
(cherry picked from commit 67ff924b57)
2024-02-01 16:33:34 +00:00
travisn af513df7c4 exporter: dont delete exporter service on daemon deletion
The exporter service and service monitor should not
be deleted if an individual daemon is being removed
from a node. As long as the exporter is enabled with
v18 and newer, the exporter service and service monitor
should exist. Clusters were seeing their metrics stop
collection when the exporter service and service monitor
would disappear, especially when multiple clusters are
configured.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit a1fc70f2fc)
2024-02-01 16:31:54 +00:00
Travis Nielsen dd7e6e4b81 Merge pull request #13640 from rook/mergify/bp/release-1.13/pr-13622
csi: option to customize csi driver name prefix (backport #13622)
2024-01-31 16:38:07 -07:00
Travis Nielsen 42388d2971 Merge pull request #13661 from rook/mergify/bp/release-1.13/pr-13644
mgr: use the ac-user-set-password cmd to update the password (backport #13644)
2024-01-31 16:36:39 -07:00
Redouane Kachach 64e01267c6 mgr: use the ac-user-set-password cmd to update the password
previous code was calling the following command to create the
dashboard user:
> ceph dashboard ac-user-create <username> -i <password-file>
this works the first time when the user doesn't exist, however subsequent
calls for example when the password has changed or when the secret was
deleted from k8s, will not take place as this command will succeeded
because the user already exists but the password is not updated in
this case. The fix consists in adding an explicit call to the command:
> ceph dashboard ac-user-set-password <username> -i <password-file>
which ensures the password is updated correctly in the access control db

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

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit cb028f3a28)
2024-01-31 15:48:00 +00:00
Travis Nielsen 1635d10635 Merge pull request #13660 from rook/mergify/bp/release-1.13/pr-13655
object: fix the default multisite zonegroup creation (backport #13655)
2024-01-31 08:46:46 -07:00
parth-gr 2cc5682a35 object: fix the deafult multisite zonegroup creation
there was a bug in the code which doesn't
sets realm if we try to get the zonegoup
so because of that 1.12 this backport pr
for original change was not working

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit a9c77280c6)
2024-01-31 14:57:45 +00:00
Travis Nielsen c46f1bdd3f Merge pull request #13650 from rook/mergify/bp/release-1.13/pr-13646
docs: clarify the k8s versioning in the doc (backport #13646)
2024-01-30 10:58:50 -07:00
parth-gr 38685a2278 docs: clarify the k8s versioning in the doc
we need to clarify what all version we do support

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit bad4e972ee)
2024-01-30 17:51:59 +00:00
mergify[bot] ad259eeadd Merge pull request #13649 from rook/mergify/bp/release-1.13/pr-13645
ci: reformat the python script (backport #13645)
2024-01-30 16:58:39 +00:00
Blaine Gardner 5e117fa652 Merge pull request #13647 from rook/mergify/bp/release-1.13/pr-13621
object: watch updates for cosidriver crd (backport #13621)
2024-01-30 09:48:28 -07:00
parth-gr 6812215dbd ci: reformat the python scripts
currently there is a new release of black
formatter so updating it with new release

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

Signe-off-by: parth-gr <partharora1010@gmail.com>
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 75fcffd08c)
2024-01-30 16:28:58 +00:00
Jiffin Tony Thottan 7b8a63817a object: watch updates for cosidriver crd
The changes made to cosi driver are reflected. Add the cosidriver crd to
predicate workflow.

Fixes: #12545
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 3da2331fa3)
2024-01-30 16:07:18 +00:00
Madhu Rajanna 61bab8d17a csi: option to customize csi driver name prefix
For now we are using the operator namespace name
as the prefix for the csi driver, This PR provides
an option for the users if someone wants to have
their own prefix for the csi driver, if someone tries
to change the prefix for existing csi driver rook
operator will fail to reconcile the csi driver.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit c35a8532aa)
2024-01-29 11:27:10 -07:00
Travis Nielsen f3fb3e5081 Merge pull request #13629 from rook/mergify/bp/release-1.13/pr-13604
mgr: fixing dashboard configuration handling (backport #13604)
2024-01-26 08:05:11 -07:00
Redouane Kachach 32ba155566 mgr: adding logic to keep retrying in case mgr config delete fails
we dont set removeMgrDaemonConfiguration to true unless all the
delete operations went successfull.

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 39c06d2fa5)
2024-01-26 01:52:12 +00:00
Redouane Kachach 5baaf2da46 mgr: fixing dashboard configuration handling
previously, the dashboard parameters supported by Rook were stored in the
daemon configuration section (mgr.X, for example). This differs from
Cephadm-based deployments, where all configurations are stored in the
global mgr configuration section. This variance could result in
configuration mismatches between the active and standby dashboards.
Furthermore, all Ceph dashboard documentation exclusively points to
the global mgr configuration section and makes no use of individual
daemons sections.

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

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 57e3937d40)
2024-01-26 01:52:12 +00:00
Travis Nielsen 54663a4333 Merge pull request #13628 from travisn/release-1.13.3
build: Update the release version to v1.13.3
v1.13.3
2024-01-25 17:04:51 -07:00
travisn 93de9be484 build: update release version to v1.13.3
For the patch release update the examples and docs
to v1.13.3

Signed-off-by: travisn <tnielsen@redhat.com>
2024-01-25 13:30:22 -07:00
mergify[bot] 7c97d13509 Merge pull request #13624 from rook/mergify/bp/release-1.13/pr-13619
operator: Increase resource limits to 1.5 CPU (backport #13619)
2024-01-25 18:45:34 +00:00
travisn e95be76a36 operator: increase cpu limits
The operator needs to burst significantly when reconciling,
then will quiet down and nearly not consume any cpu.
Therefore, we allow the operator to burst to more than
a full cpu instead of limiting it to a half cpu.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit ca28887403)
2024-01-25 18:15:52 +00:00