Commit Graph
8331 Commits
Author SHA1 Message Date
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
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
subhamkrai 2f00c0e655 ci: add pylint in ci
adding pylint in ci.

Closes: https://github.com/rook/rook/issues/9866
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit fd475575ff)
2022-03-14 16:23:25 +00:00
mergify[bot] 5256ee2ee8 Merge pull request #9900 from rook/mergify/bp/release-1.8/pr-9862
core: fix incorrect join command (backport #9862)
2022-03-14 08:24:49 +00:00
vavuthu 9e2acce8a4 core: avoid creating json_out incase of dry-run
When using dry-run option with external script, out_map dictionary
doesn't contain keys ( ACCESS_KEY and SECRET_KEY ) which leads to KeyError.
This fix to avoid creating json_out incase of dry-run since we will not use
json_out for dry-run.

Signed-off-by: vavuthu <vavuthu@redhat.com>
(cherry picked from commit b9d8df9ec9)
2022-03-14 07:57:44 +00:00
vavuthu e79aca251e core: assign ACCESS_KEY and SECRET_KEY values only in case of actual run
When using dry-run option with external script, function create_rgw_admin_ops_user
is not returning expected values which leads to TypeError. This fix is to append
values to out_map dictionary only in case of actual run.

Signed-off-by: vavuthu <vavuthu@redhat.com>
(cherry picked from commit 149beedf20)
2022-03-14 07:57:44 +00:00
vavuthu dfa78447f7 core: fix incorrect join command
Fixing typo in join command
joing -> join

Signed-off-by: vavuthu <vavuthu@redhat.com>
(cherry picked from commit ce98b17bf7)
2022-03-14 07:57:44 +00:00
mergify[bot] 3c0f23eb7c Merge pull request #9896 from rook/mergify/bp/release-1.8/pr-9873
core: rework usage of ReportReconcileResult (backport #9873)
2022-03-11 17:28:58 +00:00
Blaine Gardner ae1eab91fc core: rework usage of ReportReconcileResult
ReportReconcileResult should never be given an object that is nil. It is
impossible to force compile-time checking for this because the object's
type is an interface. We can't force this, but we can rework the
function definition to handle more cases where the object may not be
returned fully-complete, and we can rework callers to return structs
(not pointers-to-structs) so it is less likely a caller will pass nil
to the function.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit c92c6fbc36)
2022-03-11 17:03:08 +00:00
mergify[bot] 4353b35aaa Merge pull request #9895 from rook/mergify/bp/release-1.8/pr-9878
csi: Populate mon endpoints even if driver not enabled (backport #9878)
2022-03-11 16:18:03 +00:00
Travis Nielsen e1ef97372a csi: populate mon endpoints even if driver not enabled
If the csi driver was enabled at a later time, the mon endpoints
would not be populated. The populate the csi config, either a new
cluster reconcile or restarting the operator would be necessary.
It is simpler just to update the csi configmap with every reconcile
even if the csi driver is not enabled.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 8bce38fadb)
2022-03-11 14:36:59 +00:00
Travis Nielsen 884294952c csi: log a warning if pod namespace env var not found
If the pod namespace was not found by the csi helper to update
the mon endpoints configmap, the reconcile was failing. To allow
for the update to continue in unit tests and ignore the env var,
we only log the warning instead of failing the reconcile.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 76b349d808)
2022-03-11 14:36:59 +00:00
Travis Nielsen 44463bef50 Merge pull request #9892 from travisn/release-1.8.7
build: Set release version to v1.8.7
v1.8.7
2022-03-10 14:58:12 -07:00
Travis Nielsen 3d27eded9e build: set release version to v1.8.7
With the patch release the example manifests and docs are
updated to v1.8.7

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-03-10 14:23:30 -07:00
mergify[bot] 7bf915a1be Merge pull request #9889 from rook/mergify/bp/release-1.8/pr-9888
mon: Disable startup probe on canary pods (backport #9888)
2022-03-10 20:19:03 +00:00
Travis Nielsen 87f9e81c8a mon: disable startup probe on canary pods
The canary pods are very short-lived pods and are not
running ceph in any form. The startup probe was mistakenly
enabled for the canary pod, which could cause the pod
to fail unexpectedly if the startup probe was triggered
after the delay timeout.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 22dea0a1ef)
2022-03-10 19:54:24 +00:00
mergify[bot] a1687ec941 Merge pull request #9886 from rook/mergify/bp/release-1.8/pr-9884
osd: clarify vault auth error message (backport #9884)
2022-03-10 18:58:30 +00:00
Sébastien Han 3cf062243d osd: clarify vault auth error message
When kube authentication is used, let's clarify the error message and
hopefully lead to a better understanding on where to look for.
It could be misleading to print "token auth" when using kube auth,
although internally a token is used (the JWT from the Service
Account).

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 74081d90d3)
2022-03-10 17:25:29 +00:00
mergify[bot] 17a64b61f4 Merge pull request #9876 from rook/mergify/bp/release-1.8/pr-9847
core: sync ceph fsid on cephcluster status (backport #9847)
2022-03-10 08:27:19 +00:00
mergify[bot] a2a2dc3651 Merge pull request #9877 from rook/mergify/bp/release-1.8/pr-9868
core: fix empty string bug for applying csi resources (backport #9868)
2022-03-09 18:20:00 +00:00