Commit Graph
9257 Commits
Author SHA1 Message Date
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
Avan Thakkar afb58cfb5e core: include userID/userKey to secret generated from CephClient
Adding two new entries(userID/userKey) in the cephClient secret, so that the csi driver can easily consume

Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit 47df5c37cd)
2022-11-09 14:27:36 +00:00
mergify[bot] 3fd49f2204 Merge pull request #11279 from rook/mergify/bp/release-1.10/pr-11202
object: do not create service for external object stores (backport #11202)
2022-11-08 21:06:47 +00:00
Blaine Gardner ecb0a92577 object: allow new status endpoints to be null
For the upgrade case, allow the status endpoints to have null slices.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2022-11-08 13:33:31 -07:00
Blaine Gardner cb10fe35fa object: do not create service for external object stores
External CephObjectStores already have endpoints defined by
spec.gateway.externalRgwEndpoints, and if the external store is
configured with TLS (HTTPS), the store's certificates will likely not
accept connections intended for the Service endpoint Rook creates. Some
users might not be able to easily add the service endpoint to their
certificates. Therefore, don't even bother creating a Service for
external clusters.

This does introduce a few issues. The Service seems to have been
initially created to allow multiple external RGW endpoints to be
addressable via a single address in Rook. For all connections to an
external CephObjectStore with multiple endpoints, simply choose an
endpoint at random. Random selection will prevent Rook from failing to
create buckets or users on an external store if one of the external
store's endpoints fails.

The latest OBC library (lib-bucket-provisioner) allows updating the
endpoints on ObjectBuckets after they are created. This allows Rook
users to change endpoints on external CephObjectStores without breaking
all existing OBCs. It requires implementation of the new GetUserID()
library call, requires updating Provision() and Grant() calls to be
idempotent, and it requires removing the Update() call.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit a777b1d7d1)

# Conflicts:
#	pkg/apis/ceph.rook.io/v1/types.go
2022-11-07 14:30:58 -07:00
mergify[bot] acd178835f Merge pull request #11271 from rook/mergify/bp/release-1.10/pr-11269
fix: bugs following docs for NixOS deployment (backport #11269)
2022-11-04 17:59:39 +00:00
Jairo Llopis 525d3f2c55 helm: bugs following docs for NixOS deployment
85b079105b introduced some bugs that here I'm fixing.

1. Docs missing `csi.` prefix.
2. Chart was using `cis.csiRBDPluginVolumes` instead of `csi.csiCephFSPluginVolume`.
3. Values had to be a scalar value, not a raw string. Otherwise, the operator can't parse it.
4. Link to `/run/booted-system` instead of `/run/current-system`. In the former, the kernel modules will always match the current kernel; in the latter, it could happen that after a new `nixos-rebuild switch`, plugin containers can't find the kernel modules for the booted kernel version.
5. Values included in the `values.yaml` template were plural. These are not supported, they must all be singular.

About that 3rd point, this was the error being logged:

```
2022-11-04 09:54:47.489851 I | op-k8sutil: CSI_RBD_PLUGIN_VOLUME="|\n - name: lib-modules\n hostPath:\n path: /run/current-system/kernel-modules/lib/modules/\n - name: host-nix\n hostPath:\n path: /nix" (configmap)
2022-11-04 09:54:47.489907 W | ceph-csi: failed to parse "|\n - name: lib-modules\n hostPath:\n path: /run/current-system/kernel-modules/lib/modules/\n - name: host-nix\n hostPath:\n path: /nix" for "CSI_RBD_PLUGIN_VOLUME". json: cannot unmarshal string into Go value of type []v1.Volume
2022-11-04 09:54:47.489916 I | op-k8sutil: CSI_RBD_PLUGIN_VOLUME_MOUNT="|\n - name: host-nix\n mountPath: /nix\n readOnly: true" (configmap)
2022-11-04 09:54:47.489937 W | ceph-csi: failed to parse "|\n - name: host-nix\n mountPath: /nix\n readOnly: true" for "CSI_RBD_PLUGIN_VOLUME_MOUNT". json: cannot unmarshal string into Go value of type []v1.VolumeMount
```

@moduon MT-1503

Signed-off-by: Jairo Llopis <yajo.sk8@gmail.com>
(cherry picked from commit e0ad2f9789)
2022-11-04 17:31:48 +00:00
mergify[bot] 24ef3120c1 Merge pull request #11270 from rook/mergify/bp/release-1.10/pr-11241
mon: Apply mon store settings more efficiently with the assimilate conf (backport #11241)
2022-11-04 17:27:19 +00:00
Travis Nielsen d56d722fe4 mon: use the assimilate mode for setall commands
The monstore has a SetAll method for applying multiple settings
that was applying them individually. Now we use the assimilate
config option to make this more efficient.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 1291885501)
2022-11-04 16:57:13 +00:00
Travis Nielsen 4e0e3f62fc mon: refactor helper to assimilate mon store settings
More settings can use the assimilate command if refactored
to a different go package.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 0514547d56)
2022-11-04 16:57:13 +00:00
Travis Nielsen 343a3c9709 Merge pull request #11267 from travisn/release-1.10.5
build: Update the release version to v1.10.5
v1.10.5
2022-11-03 15:26:02 -06:00
Travis Nielsen 7a29088304 build: update the release version to v1.10.5
For the patch release the examples and docs are updated
to v1.10.5

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-11-03 14:33:59 -06:00
Travis Nielsen c9506ed826 Merge pull request #11264 from rook/mergify/bp/release-1.10/pr-11233
core: validate crd name size from admission controller  (backport #11233)
2022-11-03 14:06:37 -06:00
Travis Nielsen 91b55d6316 Merge pull request #11261 from rook/mergify/bp/release-1.10/pr-11159
osd: add deviceType label to an OSD (backport #11159)
2022-11-03 14:06:21 -06:00
parth-gr 3673c110c2 core: validate crd name size from admission controller
Closes: https://github.com/rook/rook/issues/11212

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 7bd863d5ab)
2022-11-03 16:48:34 +00:00
parth-gr 36981a161e osd: add deviceType label to an OSD
Closes: https://github.com/rook/rook/issues/11059

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 3bcc29e1ff)
2022-11-03 14:56:36 +00:00
mergify[bot] 1245c76a3b Merge pull request #11260 from rook/mergify/bp/release-1.10/pr-11256
docs: update disaster recovery guide for webhook (backport #11256)
2022-11-03 14:37:14 +00:00