Commit Graph
9306 Commits
Author SHA1 Message Date
Travis Nielsen 560ebb9500 Merge pull request #11472 from travisn/release-1.10.8
build: Update the release version to v1.10.8
v1.10.8
2022-12-21 10:25:06 -07:00
Travis Nielsen eb9f698aec build: update the release version to v1.10.8
For the patch release update the examples and docs to
v1.10.8

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-12-21 09:46:39 -07:00
mergify[bot] cc5f26d0d7 Merge pull request #11471 from rook/mergify/bp/release-1.10/pr-11468
csi: add missing update rbac (backport #11468)
2022-12-21 15:14:54 +00:00
Travis Nielsen 264dabd79d Merge pull request #11469 from rook/mergify/bp/release-1.10/pr-11467
doc: update csi registry in custom-images (backport #11467)
2022-12-21 07:47:00 -07:00
Madhu Rajanna 88b879c310 csi: add missing update rbac
when a PVC is cloned external-provisioner
still required update access or else a warning
will be logged in the pvc describe output

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 61c533ba41)
2022-12-21 14:44:21 +00:00
Madhu Rajanna db204942fb docs: update csi registry in custom-images
updated the outdated registry URL
for the CSI sidecar images in the custom-images

fixes: #11463

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 2d544d59f1)
2022-12-21 14:42:07 +00:00
mergify[bot] 4d917992e9 Merge pull request #11459 from rook/mergify/bp/release-1.10/pr-11377
helm: allow to specify allowed topologies for storage class (backport #11377)
2022-12-20 17:48:46 +00:00
Tomáš Sýkora 59a0d00349 helm: allow to specify allowed topologies for storage class
Signed-off-by: Tomáš Sýkora <tomas@reservio.com>
(cherry picked from commit 57babee11f)
2022-12-20 10:13:20 -07:00
Travis Nielsen ced7324441 Merge pull request #11462 from zalsader/add-helm-docs-1.10
docs: auto generate helm docs (backport #11346)
2022-12-20 10:05:23 -07:00
Zuhair 0e95ea2542 docs: auto generate helm chart docs using helm-docs
Signed-off-by: Zuhair AlSader <zuhair@koor.tech>
2022-12-19 19:35:29 -05:00
mergify[bot] 6297af29de Merge pull request #11458 from rook/mergify/bp/release-1.10/pr-11456
docs: Add link to failover and failback topic (backport #11456)
2022-12-19 18:37:12 +00:00
mergify[bot] 7804f21b63 Merge pull request #11457 from rook/mergify/bp/release-1.10/pr-11427
build: move to Go 1.19 as default version for building services (backport #11427)
2022-12-19 18:34:38 +00:00
Pratik Raj 10fd4bebcd build: move to Go 1.19 as default version for building services
Go 1.18.5 and other Go 1.18 version patches provided many vulnerability fixes
but as go.mod doesn't support minor version i.e why moving to next go release

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
(cherry picked from commit cc921a53f0)
2022-12-19 11:00:52 -07:00
Travis Nielsen fdf609f528 docs: add link to failover and failback topic
A note in the rbd mirroring topic was missing a link
to the failover and failback doc.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 2991ee1e61)
2022-12-19 17:58:41 +00:00
mergify[bot] 9d56ff29a7 Merge pull request #11449 from rook/mergify/bp/release-1.10/pr-11448
operator: adding logs for debugging (backport #11448)
2022-12-16 05:51:31 +00:00
subhamkrai 544219d3de operator: adding logs for debugging
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit de604d3689)
2022-12-16 05:19:53 +00:00
mergify[bot] b9246a8168 Merge pull request #11425 from rook/mergify/bp/release-1.10/pr-11399
core: Allow ceph.conf to be updated if already exists (backport #11399)
2022-12-16 04:20:54 +00:00
Travis Nielsen 671210eeab osd: improve error message for osd purge
The OSD purge was printing an incorrect sentence, so this now
fixes the grammar.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 2a16cd857c)
2022-12-16 02:16:14 +00:00
Travis Nielsen db4a16fd10 core: allow ceph.conf to be updated if already exist
The ceph.conf was being written with 0x444 permissions, which means
the file could not be updated if it already exists. Specifically, when
an osd is purged, if the operation is retried multiple times, only
the first operation was succeeding. The subsequent requests to purge
an osd were failing due to the config already existing. If we make
the config writeable with 0x644 then the operator can always write the file.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 9975e09406)
2022-12-16 02:16:14 +00:00
mergify[bot] 553379f91f Merge pull request #11445 from rook/mergify/bp/release-1.10/pr-11301
OSD prepare job cannot create vols with /dev/mapper alias on PVCs (backport #11301)
2022-12-16 00:43:25 +00:00
mergify[bot] 1ea6cde404 Merge pull request #11426 from rook/mergify/bp/release-1.10/pr-11414
osd: Replace dot with dash in storageClassDeviceSet names since used as volume names (backport #11414)
2022-12-16 00:17:30 +00:00
mergify[bot] f79325f12f Merge pull request #11446 from rook/mergify/bp/release-1.10/pr-11434
core: Read mon secret from file instead of env var (backport #11434)
2022-12-15 18:40:50 +00:00
Travis Nielsen ec27701d2b manifest: toolbox and jobs mount secret volume
The toolbox, toolbox job, and osd prepare jobs need to mount the
ceph admin keyring as a file instead of using an env var.
The toolbox script will still allow setting of the env var
for backward compatibility, though all the examples are now
updated to use the keyring as a file.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 4f77664862)
2022-12-15 11:06:10 -07:00
Travis Nielsen 0c27d65f81 core: read mon secret from file instead of env var
Environment variables are not recommended for secrets in pods since
they can be easily leaked if the environemnt variables are logged.
By mounting the mon secret as a file, the mgr and osd prepare pods
can read the mon secret from a file for better security.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 403335177a)
2022-12-15 11:06:06 -07:00
Travis Nielsen b8df9df9a6 Merge pull request #11447 from rook/mergify/bp/release-1.10/pr-11331
core: Remove unnecessary env vars from pod specs (backport #11331)
2022-12-15 11:04:37 -07:00
Travis Nielsen 89aa70996b core: remove unnecessary env vars from pod specs
The fsid, username, and user secrets were from legacy and no
longer needed on the osd daemon or mon pods. This removes the
unnecessary env vars from the pod specs.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 33e824a323)
2022-12-15 17:28:22 +00:00
ausias-armesto 9ed945156e osd: cannot create volumes on pvc based osd with alias dev mapper
It removes the condition that select the devices name prefixed with /dev/mapper as it is causing the ceph-volume command to fail.

Closes: #11301
Signed-off-by: ausias-armesto <ausiasarmesto@gmail.com>
(cherry picked from commit f55c4573cf)
2022-12-15 17:06:21 +00:00
mergify[bot] 1173f15219 Merge pull request #11444 from rook/mergify/bp/release-1.10/pr-11432
operator: disable webhook by default (backport #11432)
2022-12-15 16:58:06 +00:00
subhamkrai 70f4447575 operator: disable webhook by default
disable webhook in downstream cluster.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 159fe3ae6f)
2022-12-15 16:26:25 +00:00
mergify[bot] b931ce4823 Merge pull request #11443 from rook/mergify/bp/release-1.10/pr-11405
docs: import external K8s cluster on existing cluster (backport #11405)
2022-12-15 15:47:23 +00:00
parth-gr f2c6dd7a2d docs: import external K8s cluster on existing cluster
If there is a external k8s cluster which need to use rook-ceph as
a storageclass backend then user can do the following steps import
it to the running rook-ceph cluster

Closes:https://github.com/rook/rook/issues/11404
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 8d6be0bcf3)
2022-12-15 15:10:48 +00:00
Travis Nielsen 9211a7dec9 Merge pull request #11441 from rook/mergify/bp/release-1.10/pr-11439
ci: upgrade minikube action to latest version (backport #11439)
2022-12-14 11:37:06 -07:00
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
Travis Nielsen 32ae0529d2 osd: replace dot with dash in pvc names
The volume names of a pod must follow the standard naming convention
which does not allow periods in the name. Since the device set name
is used as the pvc name and then the volume name to attach to the osd
prepare job, we must sanitize the name for the invalid character
and replace it.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 4a70d3489d)
2022-12-12 16:57:56 +00: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