Commit Graph
8349 Commits
Author SHA1 Message Date
mergify[bot] db185e3715 Merge pull request #10283 from rook/mergify/bp/release-1.8/pr-10279
operator: rename telemetry rook-version to rook/version (backport #10279)
2022-05-19 20:39:11 +00:00
Blaine Gardner 7ac7b5d48c operator: rename telemetry rook-version to rook/version
The Rook and Ceph teams settled on using slashes to separate Rook
telemetry items into a hierarchy in https://github.com/rook/rook/pull/10254.
Rename the config-key used to `rook/version`, and create a `telemetry`
package to define the telemetry key constants.

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

# Conflicts:
#	pkg/operator/ceph/cluster/cluster.go
2022-05-19 09:11:16 -06:00
Travis Nielsen 5d08516979 Merge pull request #10256 from rook/mergify/bp/release-1.8/pr-10250
osd: Allow the osd to take a long time to start (backport #10250)
2022-05-12 11:48:27 -06:00
mergify[bot] 3326bff104 Merge pull request #10259 from rook/mergify/bp/release-1.8/pr-10161
operator: set 'rook-version' in mon k/v store (backport #10161)
2022-05-12 17:28:32 +00:00
Blaine Gardner 2cad7ba153 operator: set 'rook-version' in mon k/v store
Ceph upstream telemetry (which Rook users could optionally enable via
Ceph CLI or Dashboard) does not easily identify if a cluster is managed
by Rook. Identifying Rook clusters is possible only if users also enable
the rook mgr module, which is optional and not often used.

To get better upstream insights into Ceph clusters managed by Rook, set
a new 'rook-version' field in Ceph's generic k/v store. This field can
be used to determine if a cluster is managed by Rook by its presence.
It additionally provides information about the Rook version used to
manage the cluster, which is another piece of potentially useful
information.

Regarding Ceph cluster identification via telemetry:
Ceph telemetry is anonymous and uses a different ID from the Ceph
cluster ID. Identifying the Rook version in telemetry does not add
directly identifying information. Therefore, there should be little
risk that adding the Rook version field will decrease anonymity of Ceph
clusters via telemetry.

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

# Conflicts:
#	pkg/operator/ceph/cluster/cluster.go
2022-05-12 11:03:18 -06:00
Travis Nielsen 1735e202e1 osd: allow the osd to take a long time to start
The startup probe for the OSD has been too aggressive to kill the OSD
in case the OSD is taking some time to start. The OSD may be self-optimizing,
scrubbing, or some other internal operation before it is ready to start.
Rather than disable the startup probe completely, the default is now
to retry for two hours in case the OSD is performing those operations.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 28e721d877)
2022-05-12 16:25:24 +00:00
mergify[bot] d14d16be10 Merge pull request #10235 from rook/mergify/bp/release-1.8/pr-10230
core: append filesystem property on disk (backport #10230)
2022-05-10 14:10:39 +00:00
Sébastien Han 2eb54a0dc6 core: add mountpoint detection to the prepare pod
Amount various filters let's add a mountpoint property and skip the
device if its filesystem is mounted.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 8328ec6d31)
2022-05-10 08:12:31 +00:00
Sébastien Han 4524b31e2a core: add more debug info to the prepare pod
When running the device property commands, let's also log their results
for better debugging/visibility.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 77b2e10c14)
2022-05-10 08:12:31 +00:00
Sébastien Han 7119e634df core: append filesystem property on disk
When detecting the device property the filesystem was not passed but
used later to validate if the device should be taken or not. Now we read
the filesystem info from "lsblk" and populate it in the device type.

Closes: https://github.com/rook/rook/issues/9470
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 8c1bf0f3f0)
2022-05-10 08:12:31 +00:00
mergify[bot] 947bf227f9 Merge pull request #10239 from rook/mergify/bp/release-1.8/pr-10156
ci: use stringData instead of data for secret (backport #10156)
2022-05-10 08:07:58 +00:00
Sébastien Han f617a191be ci: use stringData instead of data for secret
The "data" field only accepts base64 strings and our env var is not. So
let's use stringData to prevent an error from the API server:

```
"v1" cannot be handled as a Secret: illegal base64 data at input byte 29
```

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit edfd120d6a)
2022-05-10 07:38:59 +00:00
Travis Nielsen 29c598bc36 Merge pull request #10129 from travisn/release-1.8.9
build: Update release version to v1.8.9
v1.8.9
2022-04-21 12:05:37 -06:00
Travis Nielsen 351bedeb49 build: update release version to v1.8.9
Update the docs and example manifests for the v1.8.9 release.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-04-21 10:53:56 -06:00
Travis Nielsen 153d73d08f Merge pull request #10097 from rook/mergify/bp/release-1.8/pr-10093
helm: add ingressClassName field (backport #10093)
2022-04-19 07:23:02 -06:00
log1cb0mb 99016178fc helm: add ingressClassName field
Add support for .spec.ingressClassName field

Signed-off-by: log1cb0mb <nabeelnrana@gmail.com>
(cherry picked from commit be905e6d6c)
2022-04-18 17:49:27 +00:00
Travis Nielsen f699a71495 Merge pull request #10028 from travisn/promrules-ownerref
monitoring: Only set prometheus rules ownerref in same namespace
2022-04-11 11:58:43 -06:00
mergify[bot] 0b81dcf9aa Merge pull request #10037 from rook/mergify/bp/release-1.8/pr-10035
osd: only set kek to env var on encryption scenario (backport #10035)
2022-04-11 15:53:58 +00:00
Sébastien Han 8b1b68c784 osd: only set kek to env var on encryption scenario
There is a corner case where an env variable populated with the prepare
job could influence and trigger some encryption code. We have an env
variable to discover whether the prepare job will encrypt a drive or not
so let's use that instead of running code as a noop and sometimes
trigger a corner case. In this scenario, the prepare job had an "IBM_"
env variable present in the OS image (IBM OS) so the setKEKinEnv()
  function would get called for no reason.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 6bc7827150)
2022-04-11 15:26:44 +00:00
Travis Nielsen 778daef68c monitoring: only set prometheus rules ownerref in same namespace
The ownerref of the prometheus rules should not be set if in
a different namespace than the cluster CR.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-04-08 13:36:36 -06:00
mergify[bot] 63e05ae772 Merge pull request #10019 from rook/mergify/bp/release-1.8/pr-10018
docs: Add missing references to branch name script (backport #10018)
2022-04-07 22:34:48 +00:00
Travis Nielsen f3efc48fb6 docs: add missing references to branch name script
The script to get the branch name was not being imported
on several doc pages, causing any links using
{{ branchName }} to be broken on those pages.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 82125ddf40)
2022-04-07 22:02:05 +00:00
mergify[bot] c30086c2a0 Merge pull request #10011 from rook/mergify/bp/release-1.8/pr-10010
docs: fix design doc link (backport #10010)
2022-04-07 20:06:41 +00:00
parth-gr 3739d30ab8 docs: fix design doc link
In the development section some
links where not working so fixed them

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

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit d0c47589f4)
2022-04-07 16:01:55 +00:00
mergify[bot] e22dd93a5e Merge pull request #9991 from rook/mergify/bp/release-1.8/pr-9968
docs: update the s3 client example for accesing RGW (backport #9968)
2022-04-05 14:25:56 +00:00
Jiffin Tony Thottan 19c4b4403d docs: update the s3 client example for accesing RGW
Couple of modification to existing example for s3 client regarding how
to access the ceph object store. Added details to fetch the
`BUCKET_NAME`, updated the `AWS_ENDPOINT` and `AWS_HOST` details.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 7f8dcb4c5d)
2022-04-05 13:59:14 +00:00
mergify[bot] 42a19f35d9 Merge pull request #9984 from rook/mergify/bp/release-1.8/pr-9980
ci: update golangci linter version (backport #9980)
2022-04-04 16:58:37 +00:00
subhamkrai 16a2eef1de core: fix golangci linter
fix golangci linter

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 24802c559e)
2022-04-04 10:27:39 -06:00
subhamkrai 7bf2fe6c88 ci: update golangci linter version
update golangci linter version

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 0cdb32a403)
2022-04-04 16:18:05 +00:00
mergify[bot] 1405534e1a Merge pull request #9976 from rook/mergify/bp/release-1.8/pr-9967
osd: add NixOS specific PATHs (backport #9967)
2022-04-04 08:47:22 +00:00
Krzysztof Nazarewski 230af6e10c osd: add NixOS specific PATHs
This commits makes Rook usable on NixOS.

NixOS system holds "installed" binaries in `/run/current-system/sw/{bin,sbin}`.
The only binaries residing outside those paths are `/usr/bin/env` and `/bin/sh`.

I got a suggestion on Slack to simply add those NixOS specific paths

Signed-off-by: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com>
(cherry picked from commit 352df4e62f)
2022-04-04 08:17:56 +00:00
Travis Nielsen ae8e709d59 Merge pull request #9966 from travisn/release-1.8.8
build: Update release version to v1.8.8
v1.8.8
2022-03-31 15:15:07 -06:00
Travis Nielsen 7498048e70 build: update release version to v1.8.8
Updating the example manifests and docs to point to the latest
release v1.8.8.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-03-31 14:41:30 -06:00
Blaine Gardner 128b5972a0 Merge pull request #9959 from rook/mergify/bp/release-1.8/pr-9956
ci: fixed pylint failure (backport #9956)
2022-03-31 14:36:25 -06:00
mergify[bot] 736871adb7 Merge pull request #9965 from rook/mergify/bp/release-1.8/pr-9962
core: reload go routine after CR is edited (backport #9962)
2022-03-31 20:30:05 +00:00
Sébastien Han fc9278c040 core: reload go routine after CR is edited
Previously, the struct maintaining the list of cluster was still
initialized with a cluster item. Then the monitoring check will see that
the cluster is part of the struct already and thus won't run the
monitoring go routine again.
Now each time we cancel the context, we also remove the cluster item
from the map so that when the controller runs again, the monitoring
struct is re-populated and the go routine runs and statuses are updated.

Closes: https://github.com/rook/rook/issues/9911
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 05506e7a68)
2022-03-31 16:23:38 +02:00
parth-gr 3cb610e145 ci: fixed pylint failure
pylint was failing with used-before-assignment error
fixed it by making the variables assignmet before it was used
Also backward compatibility is removed from the ModuleNotFoundError import,
as we auto installed python3 version on ceph standalone

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 339855f172)
Signed-off-by: parth-gr <paarora@redhat.com>
2022-03-30 18:33:12 +05:30
mergify[bot] bb7b6b918b Merge pull request #9955 from rook/mergify/bp/release-1.8/pr-9898
core: fix GetLogCollectorResources to get the right resources (backport #9898)
2022-03-29 07:35:27 +00:00
mergify[bot] d4bdfa637f Merge pull request #9954 from rook/mergify/bp/release-1.8/pr-9906
object: remove region option from OBC StorageClass (backport #9906)
2022-03-29 07:32:50 +00:00
Jiffin Tony Thottan edd8c83a55 object: use us-east-1 for aws go lang sdk
The aws go lang sdk needs value for region, it is set differently in
various part of current code. With PR the value is always `us-east-1` so
that it will work RGW server without any issues.

This reverts commit 280c29f330.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit fc2b8012c6)
2022-03-29 11:44:01 +05:30
Yuval Manor f4bfa66fe3 core: fix GetLogCollectorResources to get the right resources
Fix GetLogCollectorResources to use the logcollector instead of the crashcollector key

Closes: https://github.com/rook/rook/issues/9897
Signed-off-by: Yuval Manor <yuvalman958@gmail.com>
(cherry picked from commit d222ad65e3)
2022-03-28 18:28:19 +00:00
Satoru Takeuchi e8de123e2e Merge pull request #9949 from rook/mergify/bp/release-1.8/pr-9946
helm: fix the invalid nodeAffinity configuration in the comment (backport #9946)
2022-03-28 16:29:43 +09:00
Kazuki Suda fb35c32af6 helm: fix the invalid nodeAffinity configuration in the comment
This commit fixes the missing indentation for nodeAffinity configuration
example in the comment. If users try to use the example configuration by
copy and paste, an error will occur.

Signed-off-by: Kazuki Suda <kazuki.suda@gmail.com>
(cherry picked from commit bb98cf373a)
2022-03-28 05:26:26 +00:00
mergify[bot] f018ef26d9 Merge pull request #9935 from rook/mergify/bp/release-1.8/pr-9910
core: add `Phase` in `additionalPrinterColumns` for all CRs (backport #9910)
2022-03-21 15:21:45 +00:00
subhamkrai eaa0bfe496 core: add Phase in additionalPrinterColumns for all CRs
this commit adding `Phase` in `additionalPrinterColumns` for
all the CRs.

this is how it looks now, example:

```
$ kc get cephfilesystem
NAME   ACTIVEMDS   AGE     PHASE
myfs   1           4m57s   Ready
srai@ ~
$ kc get cephblockpool
NAME                    PHASE
device-health-metrics   Ready
replicapool             Progressing
srai@ ~
$ kc get cephclient
NAME     PHASE
cinder   Ready
glance   Ready
```

Closes: https://github.com/rook/rook/issues/9883
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit dc488591e2)
2022-03-21 13:16:09 +00:00
mergify[bot] 162322ab08 Merge pull request #9932 from rook/mergify/bp/release-1.8/pr-9930
test: avoid potential data inconsistency on zapping disk (backport #9930)
2022-03-18 15:36:15 +00:00
Satoru Takeuchi 361cc22c55 test: avoid potential data inconsistency on zapping disk
Data inconsistency might happen if the disk is accessed just after disk
zapping because direct I/O is not synchronous by itself.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 3bbffd1e4d)
2022-03-18 13:34:43 +00:00
mergify[bot] 864bd39c8f Merge pull request #9914 from rook/mergify/bp/release-1.8/pr-9913
docs: Add annotations to restart ceph daemons (backport #9913)
2022-03-15 20:13:59 +00:00
Travis Nielsen fa5b93ef04 docs: add annotations to restart ceph daemons
If the ceph daemons need to be restarted after applying the custom
ceph.conf, adding annotations or labels to the cluster CR is
perhaps the simplest way to automate the rolling update.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 027477a890)
2022-03-15 19:44:50 +00:00
mergify[bot] 3c0dd1da5c Merge pull request #9907 from rook/mergify/bp/release-1.8/pr-9879
ci: add pylint in ci (backport #9879)
2022-03-14 16:49:42 +00:00