Commit Graph
97 Commits
Author SHA1 Message Date
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
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
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
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
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] 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] 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
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
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
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
mtt0 20c2ccd006 helm: add cephFileSystems storageClass.pool
CephFileSystem StorageClass created by helm chart should use the specified pool
in values.yaml rather than hardcode 'data0'

Closes: #9826
Signed-off-by: mtt0 <retmain@foxmail.com>
(cherry picked from commit fd4cdc589f)
2022-03-07 15:09:54 +00:00
Travis Nielsen bde6d64308 build: update ceph base image to v16.2.7-20220216
The latest ceph image should be used for the base of
the rook image to pick up the latest security releases.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit a98678585a)
2022-02-28 21:27:17 +00:00
Travis Nielsen 9285c2dd84 osd: purge job will remove all pvcs for the osd
The purge job is intended to clean up all the resources
related to an OSD that is to be removed. An OSD with
a metadata, wal, and data PVC was only cleaning up the
data PVC. Now the metadata and wal PVCs will also be
cleaned up.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit b3ca0f1b87)
2022-02-28 18:09:03 +00:00
Humble Chirammal e324059a0d csi: default to ReadWriteOnceWithFSType for cephfs
```
ReadWriteOnceWithFSType: Indicates that volumes will be examined
to determine if volume ownership and permissions should be modified
to match the pod's security policy. Changes will only occur if the
fsType is defined and the persistent volume's accessModes contains
ReadWriteOnce.
```

In between considering we are giving 0777 permission on nodestage
of cephfs shares, we defaulted to NONE. However giving worldwide
permission to the volume is not the right thing and it has been
fixed in cephfs via https://github.com/ceph/ceph-csi/pull/2847

This commit brings it back to the value which is also in parity
with RBD driver.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit 6561bdaf53)
2022-02-28 15:05:15 +00:00
Travis Nielsen d15cd5e300 build: update release version to v1.8.6
With the patch release we update the examples and docs to v1.8.6.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-02-24 13:48:17 -07:00
Travis Nielsen 6655b82965 helm: allow setting priority class on operator and toolbox
The operator and toolbox pods were not configurable for
their priority class in the helm chart. Now the settings
are exposed in the values.yaml.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 1d1de69f3e)
2022-02-23 21:35:35 +00:00
Arun Kumar Mohan 1296a28f34 monitoring: making alert firing timeout and the doc timeout same
Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
(cherry picked from commit 054d009af6)
2022-02-23 16:39:11 +00:00
Shinya Hayashi bb9b3a1998 helm: fix csiAddons enabled flag
We should use csiAddons.enabled to check whether csiAddons is used.

Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
(cherry picked from commit c82099c107)
2022-02-22 05:20:53 +00:00
parth-gr 3fdd9b4aab csi: make use of common user creation method
refactor the code so we can use common csi user
creation method

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 3e64525b62)
2022-02-16 10:10:59 +00:00
parth-gr 1d53e78141 csi: modify upgrade flag in external cluster
The upgrade function doesn't seem to be that smart
for now so it can update the new auth caps listed
with the existing one, it only compares the value of
the current cap with the MIN_USER_CAP_PERMISSIONS,

Modified the upgrade flag functionality so we can use
this while upgrading the cluster clients

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

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 9b20b475cf)
2022-02-16 10:10:59 +00:00
subhamkrai ea20e13bc7 csi: add comment after namespace
adding comment after namespace to identify if
it cluster namespace or operator namespace.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 5b49d36167)
2022-02-14 16:16:59 +00:00
Travis Nielsen e41e081427 build: update release version to v1.8.5
With the patch release the example manifests and docs are
updated to v1.8.5

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-02-10 11:08:24 -07:00
Mathieu Parent 6c7235943a csi: bump registar image to v2.5.0
Upgrades image:

- k8s.gcr.io/sig-storage/csi-node-driver-registrar: v2.4.0 -> v2.5.0

Detailed changelog:

- https://github.com/kubernetes-csi/node-driver-registrar/blob/v2.5.0/CHANGELOG/CHANGELOG-2.5.md

Signed-off-by: Mathieu Parent <mathieu.parent@insee.fr>
(cherry picked from commit 405dcaadac)
2022-02-10 15:59:48 +00:00
parth-gr cf2a30d746 csi: make create and get process separate for csi users
Currently if we run external-script and user already exit,
it fails to create/run same user again if the caps are upgraded,
so we need to check first if user is already present.
And for upgrading user we can do upgrade after this
PR: https://github.com/rook/rook/pull/9609 will get merged.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2048458

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 4f43f2d93e)
2022-02-07 10:31:11 +00:00
Travis Nielsen 176c10f7ad build: set release version to v1.8.4
With the patch release we update the example manifests to v1.8.4.
At the same time the upgrade tests are updated to use the latest
v1.7.11.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-02-03 15:46:30 -07:00
Travis Nielsen ddc86b8416 Merge pull request #9666 from rook/mergify/bp/release-1.8/pr-9665
csi: bump csi snapshotter image to v5 (backport #9665)
2022-01-27 13:08:31 -07:00
Travis Nielsen 6ca7da2bb2 csi: add patch permission to volumesnapshotcontents
The update to the snaphots 5.0 controller requires
rbac for patching the volumesnapshotcontents.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 3e4edc0f1d)
2022-01-27 12:14:05 -07:00
Madhu Rajanna 954624b5fa helm: add annotations and labels for VSC
add support to specify annotations and
labels for the volumesnapshotclass.

closes: #9655

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 08dadaa486)
2022-01-27 18:52:22 +00:00
Madhu Rajanna 1d7fea8f52 csi: bump csi snapshotter image to v5
updating the csi-snapshotter and dependencies
to v5.0.1 released version.

Co-authored-by: Mathieu Parent <mathieu.parent@insee.fr>
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit cf46615688)
2022-01-27 09:32:45 -07:00
Mathieu Parent 2cd55d7bd6 csi: bump csi resizer and volume replication images
Upgraded images:

- k8s.gcr.io/sig-storage/csi-resizer: v1.3.0 -> v1.4.0
- quay.io/csiaddons/volumereplication-operator: v0.1.0 -> v0.3.0

Detailed changelogs:

- https://github.com/kubernetes-csi/external-resizer/blob/release-1.4/CHANGELOG/CHANGELOG-1.4.md
- https://github.com/csi-addons/volume-replication-operator/tree/v0.2.0
- https://github.com/csi-addons/volume-replication-operator/tree/v0.3.0

Signed-off-by: Mathieu Parent <mathieu.parent@insee.fr>
(cherry picked from commit 88a449d09c)
2022-01-27 09:05:16 -07:00
Radoslaw Zarzynski 98e9fe0fbc osd: allow for injecting extra env. variables via ConfigMap
This patch brings a mechanism to define arbitrary environment
variables in OSD containers (both prepare and main ones).
It bases on idea proposed by Sebastien Han to use an optional
`ConfigMap` instance named `aook-ceph-daemon-env-override`
as the source of these settings.

The need for the patch comes from the fact that, although
crimson finally exposes the same CLI interface as the classical
OSD, the broadly used development builds have ASan built in.
As ASan, by default, complains if it isn't the very first loaded
DSO, we need a way to set the `ASAN_OPTIONS` environment variable
to `verify_asan_link_order=0` to mitigate the early aborts.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit 17ca41f557)
2022-01-26 16:27:51 +00:00
Travis Nielsen beec916f00 helm: fix linter issue with end tag
Recent versions of helm are failing the linter on the end tag
if the tag is "{{- end -}}". Instead, the correct end tag
is "{{- end }}".

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit b1a0918d0e)
2022-01-24 23:47:36 +00:00
Travis Nielsen c0e46c5721 build: update the release version to v1.8.3
With the patch release the example manifests and docs are updated to v1.8.3

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-01-21 11:57:49 -07:00
Madhu Rajanna 64641a6ce8 csi: update cephcsi to 3.5.1 release
This PR updates the cephcsi version from
3.5.0 to 3.5.1 which includes minor fixes

fixes: #9619

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 39825f2302)
2022-01-21 18:30:10 +00:00
yati1998 aadd5f7ef8 csi: updates the default csi-addons image
This commit updates the csi-addons image version
from v0.1.0 to v0.2.1.
Also, this updates the staging path from
{{ .KubeletDirPath }}/plugins/kubernetes.io/csi/pv/ to
{{ .KubeletDirPath }}/plugins/kubernetes.io/csi/.

This changes is done as the reclaimspace on block mode
was not working.
For more details:
 https://github.com/csi-addons/kubernetes-csi-addons/pull/97

Signed-off-by: yati1998 <ypadia@redhat.com>
(cherry picked from commit 07c5fc7e46)
2022-01-21 14:17:14 +00:00
Travis Nielsen 7470e51d5b helm: apply operator settings in configmap instead of deployment
Some operator settings can be applied dynamically in a configmap
instead of requiring the operator to restart. While these settings
may be infrequently updated, applying these settings in the configmap
can avoid an unnecessary operator restart. This will also make the
operator deployment more consistent with the non-helm install.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 741f211a13)
2022-01-20 22:38:33 +00:00
Satoru Takeuchi c8c0639704 Merge pull request #9611 from rook/mergify/bp/release-1.8/pr-9502
core: support priority class for crashcollector (backport #9502)
2022-01-20 03:43:22 +09:00
Satoru Takeuchi 638741890c core: support priority class for crashcollector
Support priorityClass to crashcollectors as mons, mgrs, and osds.

https://rook.io/docs/rook/v1.8/ceph-cluster-crd.html#priority-class-names-configuration-settings

The main use case is applying the high priority to crashcollectors to preempt normal pods
under heavy load. Without this feature, we might lose crash information.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 5465481e0b)
2022-01-19 17:39:28 +00:00
Madhu Rajanna 6e45d4730a csi: add support to create volumesnapshotclass
add support for helm charts to create default
volumesnapshotclass for cephfs and rbd

fixes: #9566

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 85dc212704)
2022-01-19 17:00:33 +00:00
mergify[bot] 960bb7fcc8 Merge pull request #9607 from rook/mergify/bp/release-1.8/pr-9547
mon: add annotation to mon secret and cm (backport #9547)
2022-01-19 15:15:29 +00:00
subhamkrai 2e0c595d33 mon: add annotation to mon secret and cm
add annotations to secrets and configmaps to use
different tools to sync secrets and configmap.
Currently, these annotation is applied only on
the `rook-ceph-mon-endpoints` configmap and
the secrets `rook-ceph-mon` and `rook-ceph-admin-keyring`.

Closes: https://github.com/rook/rook/issues/8999
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 02d43e82e0)
2022-01-19 14:51:31 +00:00
yati1998 d229cd4c8d csi: restrict csiaddons to use only 1 port
This commit restrict csiaddons to open only 1 port
as per the requirement which is required for security.

Fixes: #9604

Signed-off-by: yati1998 <ypadia@redhat.com>
(cherry picked from commit c559bbdf6b)
2022-01-19 14:43:50 +00:00
mergify[bot] 634bc47a62 Merge pull request #9600 from rook/mergify/bp/release-1.8/pr-9571
csi: Add osd blocklist capabilities to the external cephcluster (backport #9571)
2022-01-18 21:33:05 +00:00
yati1998 a399615828 csi: implement csi-addons sidecar
This commit implements the csi-addons sidecar.

Signed-off-by: yati1998 <ypadia@redhat.com>
(cherry picked from commit 2b92dc812c)
2022-01-18 16:55:25 +00:00
parth-gr 17099f56f2 csi: add osd blocklist capabilities to the external cephcluster
The CSI users created by the external script(both for rbd and cephfs)
need the blocklist capability so the CSI pods can execute the
`osd blocklist` commands for metro DR
update the mon caps of csi users with `profile simple-rados-client-with-blocklist`
so they have privileges to run osd blocklist cmds

Closes: https://issues.redhat.com/browse/RHSTOR-2451

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 7e851f15c6)
2022-01-18 16:43:04 +00:00
Jiffin Tony Thottan f732a12c9d docs: update scaledobject.yaml for applicable with keda v2.5
Even though mention about keda 2.x version, the scaledObject.yaml or
rgw-keda.yaml referring to older keda CRs

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit e90c36f255)
2022-01-18 15:03:26 +00:00