Commit Graph
9293 Commits
Author SHA1 Message Date
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
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
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