Commit Graph
9225 Commits
Author SHA1 Message Date
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
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
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
subhamkrai c9acbe5579 docs: update disaster recovery guide for webhook
Since we moved to cert-manager for the webhook long time back, we
just need to disable webhook instead of backing the whole webhook.
And, after crs are restored we need to enable the webhook and all the
resources will be created itself by the operator.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 0dbfc66498)
2022-11-03 14:06:28 +00:00
Travis Nielsen be815bc652 Merge pull request #11257 from rook/mergify/bp/release-1.10/pr-11213
docs: added steps to collect coredump and perf troubleshooting info (backport #11213)
2022-11-02 14:07:59 -06:00
gauravsitlani 5a932187c0 docs: added steps to collect coredump and perf troubleshooting info
Signed-off-by: gauravsitlani <gauravsitlani@riseup.net>
(cherry picked from commit 3ead8218d9)
2022-11-02 16:10:47 +00:00
Travis Nielsen fd397caf77 Merge pull request #11144 from rook/mergify/bp/release-1.10/pr-10721
pool: add timeout to ceph cmd (backport #10721)
2022-10-31 13:25:45 -06:00
mergify[bot] 771e206a88 Merge pull request #11250 from rook/mergify/bp/release-1.10/pr-11219
security: Run the crash collector as ceph user (backport #11219)
2022-10-31 17:47:30 +00:00
Travis Nielsen ec226e6c68 security: run the crash collector as ceph user
The crash collector does not have the command line arguments
to run as ceph user id 167, so we set the security context
to run as the ceph user in the main crash collector
container.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit df6d7af355)
2022-10-31 17:14:39 +00:00
Travis Nielsen 21c0612559 Merge pull request #11240 from rook/mergify/bp/release-1.10/pr-11223
security: update "s5cmd" to "v2.0.0" (backport #11223)
2022-10-28 11:23:01 -06:00
Pratik Raj f8659a8eca security: update "s5cmd" to "v2.0.0"
update "s5cmd" to "v2.0.0" as "1.4.0" was built using go v1.16 and has many vulnerabilities

Resolves #11176

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
(cherry picked from commit db9bd9f918)
2022-10-28 13:35:01 +00:00
Travis Nielsen f4a21f41a1 Merge pull request #11234 from rook/mergify/bp/release-1.10/pr-11211
mon: The mon daemons maintain host network settings to allow change in config (backport #11211)
2022-10-27 12:30:06 -06:00
Travis Nielsen a809631456 mon: the mon daemons maintain host network settings
If the host network setting is changed in the cluster CR,
the existing mons must continue using the same network
settings or else the operator would update their pod
specs with the incorrect settings and cause mon quorum
to go down. Now the network setting is preserved so
the admin could switch between host and non-host network
configuration without reinstalling.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 61840324be)
2022-10-27 17:34:59 +00:00
mergify[bot] 117d3da30c Merge pull request #11218 from rook/mergify/bp/release-1.10/pr-11179
core: Retry when removing finalizers from cluster resources (backport #11179)
2022-10-26 21:49:58 +00:00
Travis Nielsen d73e4f90e8 core: remove finalizer from cluster cr last
Removing the finalizers from cluster resources can intermittently fail
in the CI if other updates are made at similar times. The controller
runtime will retry after the failure, but if something external
removes the finalizer on the cephcluster CR, the deletion will not
continue with the removal of finalizers from the other configmap
and secret critical resources.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 0ede2946a8)
2022-10-26 21:15:26 +00:00
Travis Nielsen 32dbf7e1cf Merge pull request #11214 from rook/mergify/bp/release-1.10/pr-11198
core: upgrade ceph to latest release v17.2.5 (backport #11198)
2022-10-26 13:02:12 -06:00
subhamkrai 98600a440f core: upgrade ceph to latest release v17.2.5
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 270b565f18)
2022-10-26 15:52:18 +00:00
Travis Nielsen 56836bb127 Merge pull request #11207 from rook/mergify/bp/release-1.10/pr-11203
docs: fix typo in numbering (backport #11203)
2022-10-25 07:45:46 -06:00
Tarun Gupta Akirala c0230447bd docs: fix typo in numbering
Signed-off-by: Tarun Gupta Akirala <takirala@users.noreply.github.com>
(cherry picked from commit a2b0871d08)
2022-10-25 13:34:27 +00:00
Travis Nielsen 2d6fbcf584 Merge pull request #11199 from rook/mergify/bp/release-1.10/pr-11154
Docs: Improve troubleshooting docs on restoring CRDs after deletion (backport #11154)
2022-10-24 09:33:01 -06:00
Alexander Bauer e88bdffc70 docs: add scripts, details, and new steps to CRD restoration guide
Signed-off-by: Alexander Bauer <sasha@linux.com>
(cherry picked from commit 825e956849)
2022-10-21 14:14:10 +00:00
Alexander Bauer 2637eec97d docs: add warning about CR naming in CRD restoration page
Signed-off-by: Alexander Bauer <sasha@linux.com>
(cherry picked from commit dc13595670)
2022-10-21 14:14:09 +00:00
Alexander Bauer 045d2ceb62 docs: repair list numbering in Restoring CRDs after Deletion
This commit adjusts spacing in the Docs -> Troubleshooting -> Disaster
Recovery -> Restoring CRDs after Deletion sources to repair
list-numbering-mangling. The section is altered to use spacing
suggestions from:
  https://squidfunk.github.io/mkdocs-material/reference/lists/

Signed-off-by: Alexander Bauer <sasha@linux.com>
(cherry picked from commit d7731bdf7c)
2022-10-21 14:14:09 +00:00
Travis Nielsen bdeecf309b Merge pull request #11194 from travisn/release-1.10.4
build: Update release version to v1.10.4
v1.10.4
2022-10-20 13:14:32 -06:00
Travis Nielsen 1ca8adaed2 build: update release version to v1.10.4
For the patch release update the examples and docs to
v1.10.4

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-10-20 12:40:03 -06:00
Travis Nielsen f08689aa69 Merge pull request #11193 from rook/mergify/bp/release-1.10/pr-11170
build: Update the go modules to the latest (backport #11170)
2022-10-20 12:34:40 -06:00
Travis Nielsen 8644ebe789 build: update the go modules to the latest
The security scan is failing due to a go dependency
so we update the go modules and all dependencies to
the latest available.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit ba6adc60e1)
2022-10-20 17:58:21 +00:00
mergify[bot] 4e1c1548e8 Merge pull request #11117 from rook/mergify/bp/release-1.10/pr-10510
ci: enable and fixes for nfs ci (backport #10510)
2022-10-20 16:47:52 +00:00
Travis Nielsen e14d1d824d Merge pull request #11190 from rook/mergify/bp/release-1.10/pr-11171
docs: updated syntax in markdown files (backport #11171)
2022-10-20 10:44:09 -06:00
Travis Nielsen 9044148a19 Merge pull request #11192 from rook/mergify/bp/release-1.10/pr-11183
object: fix logic for rgw period commit detection (backport #11183)
2022-10-20 10:37:49 -06:00
Blaine Gardner e0806d57bb object: fix logic for rgw period commit detection
The `periodWillChange()` implementation to detect map keys to ignore.
Previously, we relied on the `GoString()` method to output the same
format always to determine the current path to the
map[string]interface{} node, but that may change depending on the underlying
implementation of go-cmp.

Instead, parse the go-cmp `Path` step by step and construct a JSON path
to the node in a stable format.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 5320830781)
2022-10-20 15:59:44 +00:00
mergify[bot] 12d9ea629a Merge pull request #11191 from rook/mergify/bp/release-1.10/pr-11184
docs: Use Krew restore-quorum command for mon quorum disaster scenario (backport #11184)
2022-10-20 15:48:53 +00:00
Travis Nielsen 7a6445cf96 docs: use krew restore-quorum command for disaster scenario
The new krew plugin command restore-quorum will automate the process
to restore quorum from a single healthy mon. No longer do we need
the absolutely tedious, messy, manual steps from the rook docs.
The krew plugin will take care of all the complexity automatically
as of the v0.4.0 release

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 3e60b95fd6)
2022-10-20 15:14:53 +00:00
Yashasvi Chaurasia e5592dc87b docs: updated note syntax in markdown files
The Note label is updated in several places in the docs for improved rendering.
Multiple markdown files have been updated.

Closes: #10458

Signed-off-by: Yashasvi Chaurasia <yashasvi12977@gmail.com>
(cherry picked from commit 05e7ddc4cb)
2022-10-20 15:03:35 +00:00
mergify[bot] 93f9637a6d Merge pull request #11189 from rook/mergify/bp/release-1.10/pr-11178
csi: update csi to latest release (backport #11178)
2022-10-20 14:40:15 +00:00