Commit Graph
8316 Commits
Author SHA1 Message Date
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
mergify[bot] fff9115e21 Merge pull request #9875 from rook/mergify/bp/release-1.8/pr-9856
helm: add resources to rook-ceph-tools pod (backport #9856)
2022-03-09 18:02:25 +00:00
mergify[bot] 429eadb818 Merge pull request #9874 from rook/mergify/bp/release-1.8/pr-9863
helm: .Values.image.prefix is not referenced anywhere (backport #9863)
2022-03-09 17:51:29 +00:00
mergify[bot] a94f0bf400 Merge pull request #9869 from rook/mergify/bp/release-1.8/pr-9859
nfs: remove secret, configmap when downscaling CephNFS (backport #9859)
2022-03-09 17:41:54 +00:00
Tom Hellier 1cef5ea75d core: fix empty string bug
This function was always using an empty string, instead of the extracted resources

Closes: #9867
Signed-off-by: Tom Hellier <me@tomhellier.com>
(cherry picked from commit 59b4c57406)
2022-03-09 17:40:28 +00:00
parth-gr d07feea223 core: sync ceph fsid on cephcluster status
FSID will be updated with cephcluster CR status
when monitoring check get start

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 2e89ff0fd9)
2022-03-09 17:37:38 +00:00
Tom Hellier f889e212ef helm: add resources to rook-ceph-tools pod
Allow the configuration of the rook-ceph-tools pod's resource requests/limits.

Closes: #9855
Signed-off-by: Tom Hellier <me@tomhellier.com>
(cherry picked from commit 5e65f661cc)
2022-03-09 17:32:43 +00:00
kahirokunn 2e856e02da helm: .Values.image.prefix is not referenced anywhere
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
(cherry picked from commit 2e7e5e095c)
2022-03-09 17:24:54 +00:00
Blaine Gardner a7d78401ba nfs: remove secret, configmap when downscaling CephNFS
When downscaling CephNFS clusters, be sure to remove secrets and
configmaps. Also be sure to only downscale for the currently-reconciling
CephNFS cluster.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit b640969a64)
2022-03-09 16:32:16 +00:00
mergify[bot] 2aa3978df5 Merge pull request #9861 from rook/mergify/bp/release-1.8/pr-9854
helm: fix rook-ceph-cluster helm chart for cephobjectstore storageclass without/empty parameters (backport #9854)
2022-03-09 00:37:20 +00:00
Julien Girardin 311ce750ce helm: fix storageClass parameters handling
Test existence of parameters to avoid printing artifacts that
break yaml
Signed-off-by: Julien Girardin <jugirardin@free.fr>
(cherry picked from commit e8024cde8d)
2022-03-09 00:05:04 +00:00
mergify[bot] 3308c303e2 Merge pull request #9850 from rook/mergify/bp/release-1.8/pr-9841
helm: Remove obsolete setting for enabling multiple filesystems (backport #9841)
2022-03-08 00:38:21 +00:00
Travis Nielsen 83a10127fc helm: remove obsolete setting for enabling multiple filesystems
The multiple filesystem support was added in Pacific and no
need for a setting that allows the support. The setting was
already removed other places from rook in a previous change
https://github.com/rook/rook/pull/8350.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 8383d9ab87)
2022-03-07 23:13:44 +00:00
mergify[bot] b21e5ccb25 Merge pull request #9849 from rook/mergify/bp/release-1.8/pr-9842
osd: disable raw mode for specific disk configs (backport #9842)
2022-03-07 20:43:57 +00:00
Blaine Gardner cd5b5a8f49 osd: disable raw mode for specific disk configs
If a specific disk is configured to have more than one OSD per device,
or if it has a metadata device specified, exclude it from raw mode on an
individual basis.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 27ea49b9cd)
2022-03-07 17:39:58 +00:00
mergify[bot] c047fc8f5c Merge pull request #9848 from rook/mergify/bp/release-1.8/pr-9838
helm: add cephFileSystems storageClass.pool (backport #9838)
2022-03-07 15:38:34 +00:00