Commit Graph
9273 Commits
Author SHA1 Message Date
subhamkrai eb486602a2 ci: upgrade minikube action to latest version
upgrading minikube action to latest version which has
the fix of crictl, currently CI is failing due to this.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit a877771748)
2022-12-14 09:48:20 -07:00
mergify[bot] 67e5bc28e3 Merge pull request #11420 from rook/mergify/bp/release-1.10/pr-11413
osd: Allow mpath_member filesystem for mpath disks (backport #11413)
2022-12-12 09:46:35 +00:00
Travis Nielsen 080c7a0049 osd: allow mpath_member filesystem for mpath disks
Multipath devices may have an FSTYPE=mpath_member even though
a valid device for creating an OSD. The device will be allowed
in this case when creating the OSD on a PV since it is a device
specifically provisioned for the OSD.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 8a94bb20ae)
2022-12-12 09:13:59 +00:00
Travis Nielsen eb01af181b Merge pull request #11412 from rook/mergify/bp/release-1.10/pr-11403
docs: Fix notes in CephBucketTopic docs (backport #11403)
2022-12-09 09:27:37 -07:00
xiaobaowen 9fd05bebdb docs: fix notes in CephBucketTopic docs
Signed-off-by: xiaobaowen <xiaobaowen@deeproute.ai>
(cherry picked from commit 8f23c1ba9e)
2022-12-09 14:30:14 +00:00
Travis Nielsen 58b3ef0420 Merge pull request #11410 from rook/mergify/bp/release-1.10/pr-11387
osd: remove stale dm device during osd-prepare-job  (backport #11387)
2022-12-08 16:56:13 -07:00
Rakshith R 69d628ce9b osd: remove stale dm device during osd-prepare-job
During osd-prepare-job,

The encrypted device is found to be closed in some cases when
the OSD deployment has been removed manually accompanied
by any of following cases:
- node reboot
- csi managed PVC being unmounted etc

while re-opening the block to re-hydrate the OSDInfo,
the dm device `<pvc-name>-block-dmcrypt` clashes with
the one used by OSD pod which is stale by now.
This commit adds cmd to remove this stale dm device.
Error with output "No such device" is ignored.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 24fa9ed935)
2022-12-08 18:26:46 +00:00
Travis Nielsen 16aa094fde Merge pull request #11396 from travisn/release-1.10.7
build: Update the release version to v1.10.7
v1.10.7
2022-12-06 14:11:55 -07:00
Travis Nielsen 7e4ba9b4e9 build: update the release version to v1.10.7
For the patch release the examples and docs are updated to
v1.10.7

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-12-06 13:20:09 -07:00
Travis Nielsen 65d3c8ebc5 Merge pull request #11392 from rook/mergify/bp/release-1.10/pr-11024
rgw: remove rgw_rados_pool_pg_num_min for metadata pool creation (backport #11024)
2022-12-06 09:23:58 -07:00
Jiffin Tony Thottan da9a5d7553 rgw: remove rgw_rados_pool_pg_num_min for metadata pool creation
rgw_rados_pool_pg_num_min is deprecated and no longer valid in qunicy
with https://github.com/ceph/ceph/pull/46234, remove that option from
cephobject-controller as well

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 5f1b443662)
2022-12-06 14:37:43 +00:00
mergify[bot] 2af123015a Merge pull request #11375 from rook/mergify/bp/release-1.10/pr-11373
core: Set env var for ceph msgr to always use random nonce (backport #11373)
2022-12-02 05:33:35 +00:00
Travis Nielsen d0dc21efd9 core: set env var for ceph msgr to use random nonce
Ceph will use a random nonce for the msgr daemons as long as
they are running as PID 1 or have the environment variable
CEPH_USE_RANDOM_NONCE set to indicate running in a containerized
environment. While the Ceph daemons in Rook are expected to
run in PID 1, there are some environments where the container
runtime may choose to run something else such as
/usr/bin/pod as PID 1. The side effect then is that ceph uses
the pid as the nonce and causes problems when the daemons
restart with the same PID.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 31a8fb1e6a)
2022-12-02 04:13:20 +00:00
mergify[bot] 2e9e3f9d5a Merge pull request #11371 from rook/mergify/bp/release-1.10/pr-11338
osd: re-open encrypted disk during osd-prepare-job if closed (backport #11338)
2022-12-01 19:21:18 +00:00
Rakshith R 61a38020a7 osd: re-open encrypted disk during osd-prepare-job if closed
This commit implements this corner case during osd-prepare job.
```
The encrypted block is not opened, this is an extreme corner case
The OSD deployment has been removed manually AND the node rebooted
So we need to re-open the block to re-hydrate the OSDInfo.

Handling this case would mean, writing the encryption key on a
temporary file, then call luksOpen to open the encrypted block and
then call ceph-volume to list against the opened encrypted block.
We don't implement this, yet and return an error.
```
When underlying PVC for osd are CSI provisioned, the encrypted device
is closed when PVC is unmounted due to osd pod being deleted.
Therefore, this may occur more frequently and needs to be handled.
This commit implements the fix for the same.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit bde286ef49)
2022-12-01 16:08:22 +00:00
mergify[bot] b4e14aab35 Merge pull request #11363 from rook/mergify/bp/release-1.10/pr-11361
osd: improve log on specifying lv and loop device as osd (backport #11361)
2022-11-29 02:52:32 +00:00
Satoru Takeuchi db2d875fe7 osd: improve log on specifying lv and loop device as osd
We can use LVM logical volumes and loop devices as OSD iff we specify
them in the `devices` field. If we use filters like `deviceFilter`,
these devices are not picked with a log message which let users
to specify the exact device name. It's better to mention which field
users should use in this case.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 36f8074938)
2022-11-29 02:19:41 +00:00
Satoru Takeuchi b1eb26ece1 Merge pull request #11362 from cybozu-go/doc-fix-wrong-format-caused-by-merge-conflict
doc: fix wrong format caused by merge conflict
2022-11-29 09:40:16 +09:00
Satoru Takeuchi 26bd4cb44a docs: fix wrong format caused by merge conflict
The doc of operator helm chart was broken by mistake. It's due to
merging the following PR even though merge conflicts exited.

https://github.com/rook/rook/pull/11348

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-11-28 23:54:22 +00:00
Travis Nielsen 75dc7c9c76 Merge pull request #11359 from rook/mergify/bp/release-1.10/pr-11337
core: parse peer pool output with --out-file flag (backport #11337)
2022-11-28 12:22:40 -07:00
Santosh Pillai f80f53e51b core: parse peer pool ouput with --out-file flag
When mirror logs are enabled, `ceph osd pool get <poolname> all` command returns peer pool info along
with the debug logs. This causes error while parsing the logs for json
data. Using --out-file flag saves the json data in the file which can be
parsed easily while logging will still be written to stdout/stderr.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit 4f3cd1d030)
2022-11-28 16:02:38 +00:00
mergify[bot] 0428ef7e15 Merge pull request #11348 from rook/mergify/bp/release-1.10/pr-11334
csi: add a parameter to modify the maxUnavailable value of rbd daemonset. (backport #11334)
2022-11-24 11:23:34 +00:00
Shinya Hayashi c424b3c42e csi: add a parameter to modify the maxUnavailable value of rbd daemonset
The default value of maxUnavailable of daemonset is 1.
Sometimes the upgrade can be slow due to this setting.
So I add a parameter to change the value for rbd daemonset.

Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
Co-authored-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
Co-authored-by: Yuji Ito <llamerada.jp@gmail.com>
(cherry picked from commit ac4b47d71a)

# Conflicts:
#	Documentation/Helm-Charts/operator-chart.md
2022-11-24 10:53:08 +00:00
mergify[bot] 552eab3ea7 Merge pull request #11343 from rook/mergify/bp/release-1.10/pr-11342
object: update to latest obc controller to fix ob status (backport #11342)
2022-11-23 10:49:01 +00:00
Blaine Gardner 29b9998ed0 object: update to latest obc controller to fix ob status
Update to the latest OBC controller library to fix an issue where
ObjectBucket status is not updated when an OB is created.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 13cfd238fc)
2022-11-23 01:00:29 +00:00
Travis Nielsen 3bccf60c5f Merge pull request #11328 from travisn/release-1.10.6
build: Set the release version to v1.10.6
v1.10.6
2022-11-17 16:06:42 -07:00
Travis Nielsen d8640637ff build: set the release version to v1.10.6
For the patch release the docs and examples are updated to
v1.10.6

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-11-17 15:12:39 -07:00
Travis Nielsen f3a09177e1 Merge pull request #11327 from rook/mergify/bp/release-1.10/pr-11322
crash: Fix a bug where crash collectors in wrong namespaces were deleted (backport #11322)
2022-11-17 15:08:38 -07:00
Sebastian Hasler 1835ee4802 operator: fix a bug where crash collectors in wrong namespaces were deleted
Fixes #11321

Signed-off-by: Sebastian Hasler <sebastian.hasler@stuvus.uni-stuttgart.de>
(cherry picked from commit 120c7dddcb)
2022-11-17 18:43:31 +00:00
mergify[bot] 8001f04e1e Merge pull request #11325 from rook/mergify/bp/release-1.10/pr-11324
docs: update rbd-mirror doc (backport #11324)
2022-11-17 18:36:14 +00:00
Deepika Upadhyay eb86d6083a docs: update rbd-mirror doc
the pool mentioned in docs didn't have hypen
doc ref: https://rook.io/docs/rook/v1.9/Storage-Configuration/Block-Storage-RBD/rbd-mirroring/#create-rbd-pools

[root@centos-4gb-hel1-1 rook]# kubectl get cephblockpool.ceph.rook.io/mirroredpool
Error from server (NotFound): cephblockpools.ceph.rook.io "mirroredpool" not found

Signed-off-by: Deepika Upadhyay <deepika@koor.tech>
(cherry picked from commit 2e048406ab)
2022-11-17 18:06:19 +00:00
Travis Nielsen aade36a3fc Merge pull request #11319 from rook/mergify/bp/release-1.10/pr-11315
docs: Clarify csi already exists error in docs (backport #11315)
2022-11-16 09:39:29 -07:00
Travis Nielsen b0160858aa docs: clarify csi already exists error in docs
The already exists error message is perhaps the most common
issue with the csi driver. The csi troubleshooting guide
is now clarified to make that error message easier
to find.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 6b6252e474)
2022-11-16 16:35:13 +00:00
Travis Nielsen 67f00ba66d Merge pull request #11311 from rook/mergify/bp/release-1.10/pr-11290
docs: Clarify in docs and readme that Rook focuses on Ceph (backport #11290)
2022-11-15 11:25:08 -07:00
Travis Nielsen c902b9bcc1 docs: clarify in docs and readme that rook focuses on ceph
Rook has for quite some time only been focused on the Ceph
operator. Maintainers have only been focused on Ceph, and
the community has likewise been focused on Ceph. Now the docs
are updated to clarify that Ceph storage is the focus and
there are no plans for the project to support other storage
providers.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit b79d9022a4)
2022-11-14 21:42:30 +00:00
mergify[bot] 62b05d6740 Merge pull request #11310 from rook/mergify/bp/release-1.10/pr-11303
helm: set DISCOVER_DAEMON_UDEV_BLACKLIST (backport #11303)
2022-11-14 19:15:56 +00:00
Jens Erat 2cead37747 helm: set DISCOVER_DAEMON_UDEV_BLACKLIST
While #4211 added support for the udev blacklist and also added it to
the values file, it omitted actually passing the value as environment
variable.

Signed-off-by: Jens Erat <email@jenserat.de>
(cherry picked from commit 0f7e1d0343)
2022-11-14 18:40:35 +00:00
Travis Nielsen 6f069b688b Merge pull request #11295 from rook/mergify/bp/release-1.10/pr-10652
docs: add additional RBD image features to docs and YAML files (backport #10652)
2022-11-11 14:54:17 -07:00
Travis Nielsen e566124b2c Merge pull request #11285 from rook/mergify/bp/release-1.10/pr-11280
core: include userID/userKey to secret generated from CephClient (backport #11280)
2022-11-11 14:53:44 -07:00
Travis Nielsen a52a8820a5 Merge pull request #11288 from rook/mergify/bp/release-1.10/pr-10887
mon: Remove out of quorum mons from ceph.conf (backport #10887)
2022-11-11 14:53:20 -07:00
Blaine Gardner 64c5692523 Merge pull request #11300 from iamniting/upstream-crd
object: mark endpoint as a optional field
2022-11-11 08:50:45 -07:00
Nitin Goyal 86b09e8058 object: mark endpoint as a optional field
Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
2022-11-11 16:32:30 +05:30
Travis Nielsen 4af6822763 Merge pull request #11287 from rook/mergify/bp/release-1.10/pr-11268
osd: support loop devices for test clusters (backport #11268)
2022-11-10 15:20:38 -07:00
Shinya Hayashi 13b63c4a08 osd: support loop devices for test clusters
A new variable is added to rook-ceph-operator-config
ConfigMap to allow using loop devices for osd.

This feature is intended to be used for testing purposes only.

Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
(cherry picked from commit 05875a3f4f)
2022-11-10 18:31:43 +00:00
mergify[bot] 8787dab0a1 Merge pull request #11294 from rook/mergify/bp/release-1.10/pr-11289
docs: Set CRD page titles to the CRD name (backport #11289)
2022-11-10 18:15:08 +00:00
Anthony D'Atri b005fbf4dc docs: add additional RBD image features to docs and YAML files
Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
(cherry picked from commit 10b398cc02)
2022-11-10 18:10:04 +00:00
Travis Nielsen 8a241a6b0f docs: set crd page titles to crd name
The name of the CRD is more clear for finding the CRD specs
instead of a modified form of the name that was intended
to be more human readable. When someone is looking for the
CRD settings, they more naturally expect the CRD name
in the title

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 05590dfc9b)
2022-11-10 17:39:28 +00:00
mergify[bot] 1437385ee5 Merge pull request #11292 from rook/mergify/bp/release-1.10/pr-11278
core: Add ability to add resources on discovery DaemonSet (backport #11278)
2022-11-10 15:35:40 +00:00
parth-gr 063196d344 core: add ability to add resources on discovery daemon set
Closes: https://github.com/rook/rook/issues/11265

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 9f432b4ecb)
2022-11-10 15:00:19 +00:00
Travis Nielsen 96aef8a1ae mon: remove out of quorum mons from ceph.conf
The mons that are out of quorum may cause ceph commands to timeout
or fail unnecessarily trying to connect to a mon that is no longer
online. Now the mon health check will update the mon endpoints configmap
when a mon is detected out of quorum. This also means that if the
operator is restarted during a mon failover, the failed mon will no
longer remain in the ceph.conf, thus allowing the quorum to be more
likely to respond to the mons that are still in quorum.

The update for mons out of quorum only applies if other mons are in
quorum. If quorum is down, the configmap will not keep track of the offline
mons since too many are offline.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit b6e8ea2b50)
2022-11-09 17:16:46 +00:00