Commit Graph
11405 Commits
Author SHA1 Message Date
mergify[bot] 9c877efa91 Merge pull request #14696 from rook/mergify/bp/release-1.15/pr-14694
csi: update to new cephcsi release (backport #14694)
2024-09-06 15:22:28 +00:00
Madhu Rajanna 5f2be2e52c csi: update to new cephcsi release
we have 3.12.2 as the new cephcsi release
updating the rook to use the same.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit d041be4bcf)
2024-09-06 14:52:00 +00:00
Travis Nielsen 8cbd486f99 Merge pull request #14683 from rook/mergify/bp/release-1.15/pr-14645
osd: discover metadata and wal devices for raw device cleanup (backport #14645)
2024-09-05 11:52:06 -06:00
Travis Nielsen 7723c5a100 Merge pull request #14691 from rook/mergify/bp/release-1.15/pr-14585
introduce a way to enforce host network on all pods (backport #14585)
2024-09-05 11:51:50 -06:00
mergify[bot] 917bb0160e Merge pull request #14692 from rook/mergify/bp/release-1.15/pr-14667
mon: Remove extra mon from quorum before taking down pod (backport #14667)
2024-09-05 17:40:32 +00:00
Travis Nielsen 09c90655a7 mon: remove extra mon from quorum before taking down pod
When removing a mon from quorum, there is a race condition that
can result in mon quorum going being lost at least temporarily.
The mon pod was being deleted first, and then the mon removed
from quorum. If any other mon went down between the time the
pod of the bad mon was deleted and when the mon was removed from
quorum, there may not be sufficient quorum to complete the
action of removing the mon from quorum and the operator would
be stuck.

For example, there could be 4 mons temporarily due to timing
of upgrading K8s nodes where mons may be taken down for some
number of minutes. Say a new mon is started while the down
mon also comes back up. Now the operator sees it can remove
the 4th mon from quorum, so it starts to remove it. Now say
another mon goes down on another node that is being updated
or otherwise drained. Since the 4th mon pod was deleted
and another mon is down, there are only two mons remaining
in quorum, but 3 mons are required in quorum when there
are 4 mons. Therefore, the quorum is stuck until the
third mon comes back up.

The solution is to first remove the extra mon from quorum
before taking down the mon pod.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 8987d26a6d)
2024-09-05 17:12:16 +00:00
Michael Adam d73f4ffb0f network: add a new operator config setting ROOK_ENFORCE_HOSTNETWORK
This new setting is of Boolean type and defaults to "false".

    When set to "true", it changes the behavior of the
     rook operator to
    nable host network on all pods created by the cephcluster controller

     new method to check the setting:  opcontroller.EnForceHostNetwork()

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit e378588359)
2024-09-05 16:57:09 +00:00
Travis Nielsen 80a9bdbbdc Merge pull request #14687 from travisn/release-1.15.1
build: Update release version to v1.15.1
v1.15.1
2024-09-04 15:07:55 -06:00
Travis Nielsen 2a1c5e0d2c build: update release version to v1.15.1
For the patch release update the docs and manifests
to v1.15.1

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-09-04 13:57:32 -06:00
mergify[bot] b764be7a2d Merge pull request #14682 from rook/mergify/bp/release-1.15/pr-14671
csi: update csi-addons to v0.9.1 (backport #14671)
2024-09-04 04:37:12 +00:00
Mathias Chapelain 98fc04793b osd: discover metadata and wal devices for raw device cleanup
When doing the clean-up of raw device OSDs, it was not taking metadata
and wal devices into account. This commit discover them via the output
of `ceph-volume raw list`, which is returning `device_db` and/or
`device_wal` if they are present.

After discovering the metadata and wal device it also clean them and
close the encrypted device if any.

Signed-off-by: Mathias Chapelain <mathias.chapelain@proton.ch>
(cherry picked from commit 52ca68d46e)
2024-09-03 19:51:16 +00:00
Madhu Rajanna 21daa24046 csi: update csi-addons to v0.9.1
updating csi-addons to latest
v0.9.1 release.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 05d579b607)
2024-09-03 18:15:40 +00:00
mergify[bot] 10c87a0285 Merge pull request #14669 from rook/mergify/bp/release-1.15/pr-14642
helm: reorder volumes in rook-ceph-csi scc for argocd diff to show no changes (backport #14642)
2024-08-30 20:53:27 +00:00
rene 04f3eae0fd helm: reorder volumes in rook-ceph-csi scc for argocd diff to show no changes
Signed-off-by: rene <rene.raab@gmx.net>
Co-authored-by Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 746ef30b09)
2024-08-30 20:23:54 +00:00
Travis Nielsen d25b68fb93 Merge pull request #14664 from rook/mergify/bp/release-1.15/pr-14652
docs: exhaustively list all priority class options (backport #14652)
2024-08-30 09:17:57 -06:00
Tarun Gupta Akirala 3cfa3eee7e docs: exhaustively list all priority class options
List all possible config values for listing
PriorityClasses in CephCluster CRD.

Signed-off-by: Tarun Gupta Akirala <tarun.akirala@nutanix.com>
(cherry picked from commit 48ab3d774f)
2024-08-29 18:56:35 +00:00
Travis Nielsen fea54304db Merge pull request #14661 from rook/mergify/bp/release-1.15/pr-14616
rgw: allow users to add custom volume mounts (backport #14616)
2024-08-29 08:38:46 -06:00
Blaine Gardner ad5b332e77 rgw: allow users to add custom volume mounts
Allow RGW users to mount arbitrary volumes to RGW pods. This follows the
pattern that was established for NFS to support SSSD and LDAP, and
reuses much of the same code.

This opens the door wider for advanced users to take advantage of some
Ceph RGW features that Rook doesn't have first class support for.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit eea43b7b79)
2024-08-28 22:51:16 +00:00
mergify[bot] 23e2663504 Merge pull request #14639 from rook/mergify/bp/release-1.15/pr-14636
core: fix Ceph monitor deployment in separate zones (backport #14636)
2024-08-27 19:36:17 +00:00
Travis Nielsen 9bd6c0253f Merge pull request #14628 from rook/mergify/bp/release-1.15/pr-14627
external: remove the false bool values from config file (backport #14627)
2024-08-27 13:35:39 -06:00
Blaine Gardner 734b2fa4a3 Merge pull request #14658 from rook/mergify/bp/release-1.15/pr-14641
docs: fix ceph object multisite and update source code layout (backport #14641)
2024-08-27 12:16:29 -06:00
Vamsi Krishna Sethu c4accdadf7 docs: fix ceph object multisite and update source code layout
Signed-off-by: Vamsi Krishna Sethu <sethuvamsikrishna@gmail.com>
(cherry picked from commit a26565d922)
2024-08-27 17:29:22 +00:00
Travis Nielsen 2c9be22f2f Merge pull request #14657 from rook/mergify/bp/release-1.15/pr-14656
docs: fix typo (backport #14656)
2024-08-27 09:38:07 -06:00
chanyoung 7c8de4e637 docs: fix typo
Corrects a typo in 'CRDs/Cluster/host-cluster.md'.

Signed-off-by: chanyoung <park910113@gmail.com>
(cherry picked from commit d1b014090d)
2024-08-27 15:25:34 +00:00
Blaine Gardner a28bf5748b Merge pull request #14635 from rook/mergify/bp/release-1.15/pr-14631
core: fix host cleanup jobs to read flags correctly. (backport #14631)
2024-08-27 08:55:39 -06:00
subham rai 1e496a5536 Merge pull request #14640 from rook/mergify/bp/release-1.15/pr-14630
tests: fix unit test failure on macOS due to temp directory path (backport #14630)
2024-08-26 10:11:54 +05:30
chanyoung d8073bc36f tests: fix unit test failure on macOS due to temp directory path
Use os.TempDir() instead of '/tmp'. This is for the peermap tests.

Signed-off-by: chanyoung <park910113@gmail.com>
(cherry picked from commit d77f6e5e3d)
2024-08-23 13:16:17 +00:00
Benoît Knecht 83a20249d1 core: fix Ceph monitor deployment in separate zones
Previously, Rook would fail to create monitors for a `CephCluster` spec that
required them to be located in distinct failure domains:

```yaml
spec:
  mon:
    count: 3
    failureDomainLabel: topology.kubernetes.io/zone
    zones:
    - eu-central-1a
    - eu-central-1b
    - eu-central-1c
```

This was due to the fact that Rook was mistakenly getting the
`failureDomainLabel` from `spec.mon.stretchCluster.failureDomainLabel`.

This commit ensures `spec.mon.failureDomainLabel` is being used instead, which
fixes the cluster deployment for the spec above.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit 1c45677f5e)
2024-08-23 13:15:15 +00:00
mergify[bot] 279eaa3d18 Merge pull request #14633 from rook/mergify/bp/release-1.15/pr-14629
multus: fix default service account handling (backport #14629)
2024-08-22 17:01:04 +00:00
sp98 4161728967 core: fix reading flags in cleanup job cmd
Cleanup job cli was not reading the flags correctly.
As a result, dataDirHostPath was never cleaned up.

Signed-off-by: sp98 <sapillai@redhat.com>
(cherry picked from commit a44a22216f)
2024-08-22 16:33:44 +00:00
Blaine Gardner 8beec3e125 multus: fix default service account handling
The default service account isn't passed to the multus validation test
when no config file is used. Fix this.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 58e3feaacf)
2024-08-22 16:33:00 +00:00
parth-gr 388975cfa4 external: remove the false bool values from config file
currently we created a new config file or user creation,
Which was have the user config.

We were also appending the script deafult values to the config file
With that all the boolean values were appended to the config.ini file

v2-port-enable = False
....

But the config.ini treat all the bolean values as true, irrespective of they
are set to, it is  because the boolean cli flag doesnt accept the argument

So now removed all the false values from the config.ini

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit d2f8ce4c47)
2024-08-21 19:18:44 +00:00
mergify[bot] 5b49a2cc21 Merge pull request #14619 from rook/mergify/bp/release-1.15/pr-14618
csi: use specific tag instead of latest image (backport #14618)
2024-08-21 06:04:47 +00:00
subhamkrai 1d5977b693 csi: use specific tag instead of latest image
when I was pusing the new changes in older pr I missed
updating the latest tag to v0.1.0 in csi-operator.yaml
file. Updating now.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 838f583c66)
2024-08-21 05:35:11 +00:00
Travis Nielsen 5b3fa88ac2 Merge pull request #14615 from travisn/release-1.15.0
build: Update the release version to v1.15.0
v1.15.0
2024-08-20 17:20:06 -06:00
Travis Nielsen 3045076db8 build: generate the local build tag with docker io
The docker.io image prefix is expected to be prepended
to the image names in the test images. This was missed
in 14550 related to some CI tests, which was now causing
the CI failures in the 1.15 branch where the search and
replace was missing the new docker.io prefix.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-08-20 16:47:20 -06:00
Travis Nielsen 4c2a3411f5 build: update the release version to v1.15.0
For the minor release update the documentation and manifests
to v1.15.0

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-08-20 13:58:58 -06:00
Travis Nielsen ed90a3ef0b Merge pull request #14613 from rook/mergify/bp/release-1.15/pr-14612
docs: missing slack link (backport #14612)
2024-08-20 13:13:09 -06:00
Travis Nielsen 60faae1e73 Merge pull request #14608 from rook/mergify/bp/release-1.15/pr-14550
manifest: add registry name to docker images (backport #14550)
2024-08-20 12:53:28 -06:00
Travis Nielsen 1016b0ecfc Merge pull request #14610 from rook/mergify/bp/release-1.15/pr-14598
core: add configuration option for metrics bindAddress (backport #14598)
2024-08-20 12:52:20 -06:00
Zuhair AlSader ee43ca07bc docs: missing slack link
Signed-off-by: Zuhair AlSader <zuhair@devzero.io>
(cherry picked from commit b6087c46bb)
2024-08-20 18:50:30 +00:00
mergify[bot] ebb59ff58c Merge pull request #14611 from rook/mergify/bp/release-1.15/pr-14435
osd: reweight osd while resizing (backport #14435)
2024-08-20 18:46:40 +00:00
Zuhair AlSader e76d60dd25 manifest: add registry name to docker images
Signed-off-by: Zuhair AlSader <zuhair@devzero.io>
(cherry picked from commit 6714b86d3b)
2024-08-20 12:20:05 -06:00
parth-gr dd1e1a6120 osd: reweight osd while resizing
osd got resized by cryptsetup bluestore cmd
but it should also be reweight to balance the pgs properly

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

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 17cfda5bd6)
2024-08-20 18:15:26 +00:00
Justin Cichra 8a0eadaa39 core: add configuration option for metrics bindAddress
Alerting on controller-runtime's workqueue_depth can be useful for
debugging controllers. Also having a prometheus target for a pod gives
another data point that the system is working as expected. It is useful
for uptime alerts.

Make the bind address configurable via the configmap while still retaining the default
behavior that it is disabled.

Resolves: #14538

Signed-off-by: Justin Cichra <jcichra@cloudflare.com>
(cherry picked from commit 74a79b24b3)
2024-08-20 18:15:21 +00:00
Travis Nielsen 1283f1d132 Merge pull request #14605 from rook/mergify/bp/release-1.15/pr-14357
csi: update csi sidecars' image version (backport #14357)
2024-08-20 12:11:53 -06:00
mergify[bot] baf082ec83 Merge pull request #14607 from rook/mergify/bp/release-1.15/pr-14604
test: fix 'make test' on arm mac (backport #14604)
2024-08-20 18:07:39 +00:00
mergify[bot] 8ca25e9c74 Merge pull request #14606 from rook/mergify/bp/release-1.15/pr-14599
csi: update csi-operator to use latest tag v0.1 (backport #14599)
2024-08-20 17:57:29 +00:00
Travis Nielsen b5c038de03 Merge pull request #14601 from rook/mergify/bp/release-1.15/pr-14586
csi: storageclass update to gp2-csi (backport #14586)
2024-08-20 11:56:26 -06:00
Blaine Gardner ac0bfcb9f3 test: fix 'make test' on arm mac
make test was failing when running on arm macbooks. Fix it so that it
isn't running with hardcoded GOOS=linux.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 5da7feb9d7)
2024-08-20 17:40:25 +00:00