Commit Graph
719 Commits
Author SHA1 Message Date
Sébastien Han cc691cfa57 Merge pull request #6039 from leseb/fix-1867998
ceph: do not validate default.rgw.buckets.index
2020-08-11 16:14:39 +02:00
Sébastien Han 0c8d20ffb4 ceph: do not validate default.rgw.buckets.index
This pool is not present when this is no bucket yet. So we don't need to
validate its presence.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-11 14:49:18 +02:00
Sébastien Han 5c85640037 ceph: fix lint on python script
Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-11 14:47:35 +02:00
Sébastien Han d91f55e8ed Merge pull request #5580 from silverhandy/master
ceph: add support for wal device for OSD on PVC
2020-08-11 13:57:56 +02:00
Travis Nielsen 67b8491d2c ceph: test cluster settings for mon failover interval
For test scenarios, add the settings to the example for mon health checks
so it is simpler to test the failover.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-10 14:42:38 -06:00
Travis Nielsen f710b79d40 docs: clarify running privileged with selinux
The operator setting ROOK_HOSTPATH_REQUIRES_PRIVILEGED is expected to be true
when selinux is enabled, not just with openshift.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-10 14:37:13 -06:00
Travis Nielsen 70d96f7814 Merge pull request #6014 from mridulv/mridul-add-crushRoot-crds
ceph: adding ability to specify crushroot in the CRD
2020-08-10 14:13:18 -06:00
Anmol Sachan c35f31bcf2 ceph: removed the storage provisioners usage rules
In the interest of having the metrics avaliable generically for all the storage provisioners and just not ceph, the superseding metrics will be added to Openshift directly. Thus these metrics wont be required in rook.

Signed-off-by: Anmol Sachan <anmol13694@gmail.com>
2020-08-10 16:48:24 +05:30
Chen, Tingjie 0e87348093 ceph: add support for wal device for OSD on PVC
Based on the feature of metadata PVC for OSD: #4818, add the wal device.

For this, you need to create a new volumeClaimTemplates, its name must be "wal", if "wal" is
set, "metadata" device will refers specially for block.db device, and "wal" refers for block.wal
device in BlueStore.

A template will look like this:

```
volumeClaimTemplates:
- metadata:
    name: data
  spec:
    resources:
      requests:
        storage: 10Gi
    # IMPORTANT: Change the storage class depending on your environment (e.g. local-storage, gp2)
    storageClassName: gp2
    volumeMode: Block
    accessModes:
      - ReadWriteOnce
- metadata:
    name: metadata
  spec:
    resources:
      requests:
        storage: 6Gi
    # IMPORTANT: Change the storage class depending on your environment (e.g. local-storage, io1)
    storageClassName: io1
    volumeMode: Block
    accessModes:
      - ReadWriteOnce
- metadata:
    name: wal
  spec:
    resources:
      requests:
        storage: 6Gi
    # IMPORTANT: Change the storage class depending on your environment (e.g. local-storage, io1)
    storageClassName: io1
    volumeMode: Block
    accessModes:
      - ReadWriteOnce
```

We now map block, block.db and block.wal directly inside the container instead of
running ceph-volume activate.

Signed-off-by: Chen, Tingjie <tingjie.chen@intel.com>
2020-08-10 08:48:20 +08:00
mridulv 30cd786303 ceph: adding ability to specify crushroot in the CRD
Previously we did not supported defining crushRoot in some of the CRDs. With this fix, we plan to fix this behaviour.

Signed-off-by: mridulv <mridulv09@gmail.com>
2020-08-08 16:24:15 +05:30
Unai Arrien f6087b280a docs: add provisioner prefix namespace comment in ceph csi examples
Signed-off-by: Unai Arrien <unaittxu@gmail.com>
2020-08-07 15:39:36 +02:00
Sébastien Han f936ad3cbf Merge pull request #5680 from umangachapagain/rbd-pool-stats
Add spec to enable/disable RBD pool stats collection
2020-08-06 10:53:49 +02:00
Sébastien Han f91616f1e6 Merge pull request #5982 from Madhu-1/remove-csi-1.13
ceph: remove csi support for kubernetes 1.13
2020-08-06 09:53:49 +02:00
Umanga Chapagain da1910840a ceph: add CRD changes and documentation
adds `enableRBDStats` to CRD manifets and updates documentation
on its usage.

Signed-off-by: Umanga Chapagain <chapagainumanga@gmail.com>
2020-08-06 12:11:55 +05:30
Umanga Chapagain 83d7cdb85c ceph: configure mgr to enable collection of RBD stats
Signed-off-by: Umanga Chapagain <chapagainumanga@gmail.com>
2020-08-06 12:07:21 +05:30
Travis Nielsen 99d2131209 ceph: symlink prometheus manifests in same dir
The prometheus manifests should be symlinked in the same directory
instead of from the root of the repo for building across all
platforms

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-05 15:55:16 -06:00
Madhu Rajanna 1989e0d8c5 ceph: remove csi support for kubernetes 1.13
as the kubernetes 1.13 is EOL and there is no major
functionalities available in 1.13 (resize,snapshot,clone
metrics etc) we are removing the support for kubernetes
for the same.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2020-08-05 21:19:59 +05:30
Anmol Sachan 9dfd684ab5 ceph: added rgw poolPrefix on ceph external script output
RGW poolPrefix is required for the UI and alerting, to provide right information about the respective pool in external mode.

Signed-off-by: Anmol Sachan <anmol13694@gmail.com>
2020-08-05 19:35:33 +05:30
Sébastien Han 89b3225441 ceph: add encryption support for osd pvc
We can now encrypted OSD device that were provisioned via a storage
class using the PV interface.
The encryption works at the storageClassDeviceSets level, which means we
can have encrypted and non-encrypted sets.
Using the new key `encrypted` we can turn it on.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-05 10:06:11 +02:00
Travis Nielsen 2365885653 ceph: remove unnecessary aggregate clusterroles
The aggregate clusterrole were designed for the scenario where
the rules are not completely owned by one component. Since Rook
owns all of the RBAC for its components, the aggregate rules can
be removed and simplify certain issues around upgrades.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-04 15:47:18 -06:00
Travis Nielsen 14495d1e5a ceph: upgrade documentation for v1.4
The upgrade guide is now updated for upgrades from v1.3 to v1.4.
The v1.2 upgrade yamls are removed and the docs are cleaned up from
1.3 upgrade steps that are no longer necessary.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-04 15:47:18 -06:00
Sébastien Han 00bcaa8328 Merge pull request #5949 from leseb/do-not-validate-pool-if-no-ep
ceph: do not validate rgw pool if no endpoint
2020-08-03 17:09:40 +02:00
Sébastien Han aed084e44c Merge pull request #5931 from aruniiird/mds_pools_optional_in_external_script
ceph: Allowing ceph filesystem argument to be optional
2020-08-03 16:09:32 +02:00
Sébastien Han 9ebc006391 ceph: do not validate rgw pool if no endpoint
If no endpoint is specified, we don't need to validate the rgw pools.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-03 15:43:56 +02:00
Arun Kumar Mohan cba605a930 ceph: provide storageclass-es if there are valid parameters
'ceph-rgw' storageclass will be provided only if 'rgw_endpoint' exists
'cephfs' storageclass will be provided only if ceph-fs and/or data-pool
parameters are valid.

Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
2020-07-31 11:13:36 +05:30
Arun Kumar Mohan 18b32023c5 ceph: allowing ceph filesystem argument to be optional
If we are unable to get or infer a default value for ceph filesystem
script won't be throwing an error.

Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
2020-07-31 11:13:31 +05:30
Travis Nielsen e0ea87a353 Merge pull request #5674 from thotz/quotaobc
ceph: adding support for quota in object bucket claims
2020-07-30 22:51:58 -06:00
Sébastien Han ef434e8f68 Merge pull request #5913 from Madhu-1/csi-del
ceph: update clusterrole of operator for csidrivers
2020-07-30 08:42:58 +02:00
Niels de Vos bb2b4096d1 ceph: do not warn about no redundancy in test cluster
In test environments the default pool size is set to 1, so there is no
redundancy. This causes recent Ceph versions to complain with
HEALTH_WARN as POOL_NO_REDUNDANCY get set.

By disabling the mon_warn_on_pool_no_redundancy option in ceph.conf, the
warning is not reported and the cluster is marked HEALTHY.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-07-29 13:25:12 -06:00
Madhu Rajanna 28f0471106 ceph: update clusterrole of operator for csidrivers
updated the clusterrole of the rook operator
to delete the csidrivers object when csi-drivers
are disabled, without the required access rook operator
cannot delete the csidrivers object.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2020-07-29 09:41:26 +05:30
Sébastien Han c2db463eb2 Merge pull request #5907 from aruniiird/rgw_endpoint_validations_optional
ceph: make 'rgw_endpoint' check/validation also optional
2020-07-28 08:42:52 +02:00
Jiffin Tony Thottan f4240cb31d ceph: add quota support for obc
Closes: #5274
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2020-07-28 12:00:11 +05:30
Travis Nielsen 22ba4591f3 Merge pull request #5888 from Madhu-1/csi-v3.0.0
ceph: update ceph-csi to v3.0.0 release
2020-07-27 14:05:29 -06:00
Arun Kumar Mohan 59a3be6d75 ceph: make 'rgw_endpoint' check/validation also optional
As 'rgw_endpoint' argument itself is optional, making it's check / validation also optional

Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
2020-07-27 22:31:31 +05:30
Sébastien Han d5aee01ee3 Merge pull request #5901 from leseb/validate-prefix-rgw-pool
ceph: validate pools with prefix
2020-07-27 17:19:45 +02:00
Travis Nielsen d6b81c9151 Merge pull request #5899 from leseb/optinal-rgw
ceph: make rgw option on external script
2020-07-27 09:10:15 -06:00
Anmol Sachan a42616967d ceph: updated the PV count query for telemeter
Signed-off-by: Anmol Sachan <anmol13694@gmail.com>
2020-07-27 20:18:13 +05:30
Anmol Sachan f3eea6ebb7 ceph: added rules for PVC requested and used capacity for telemeter
This commit adds recording rules to monitor aggregated (requested and used) capacity of the PVCs for block and file type PVCs, via the telemeter.

Signed-off-by: Anmol Sachan <anmol13694@gmail.com>
2020-07-27 20:16:12 +05:30
Sébastien Han 5d02a29d76 Merge pull request #5900 from leseb/monitoring-rules-v15
ceph: add monitoring rules for octopus
2020-07-27 15:29:09 +02:00
Sébastien Han b35c065db5 ceph: validate pools with prefix
Now the rgw pool with a given prefix will also be checked by the script.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-07-27 14:55:08 +02:00
Sébastien Han 44cd526fff Merge pull request #5883 from leseb/rm-sc-external
ceph: remove storageclass-bucket-retain-external.yaml
2020-07-27 11:50:58 +02:00
Sébastien Han 6a643e9522 ceph: add monitoring rules for octopus
Add monitoring rules for octopus clusters.

Closes: https://github.com/rook/rook/issues/5897
Signed-off-by: Sébastien Han <seb@redhat.com>
2020-07-27 10:16:49 +02:00
Madhu Rajanna 6aef231896 ceph: add pvc-clone.yaml for rbd
added pvc-clone.yaml for rbd pvc volume
cloning.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2020-07-27 13:46:39 +05:30
Madhu Rajanna cc3b4e6906 ceph: remove check for kubernetes version
as we are going to deploy snapshotter by
default we are going to remove the kubernetes
version check.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2020-07-27 13:45:56 +05:30
Madhu Rajanna 4a1198ee12 ceph: add RBAC for alpha snapshot
Added back the required RBAC to support
snapshot  Alpha version.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2020-07-27 13:42:32 +05:30
Sébastien Han faad0a45ac ceph: make rgw option on external script
Some clusters do not have rgws deployed so let's make it optional.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-07-27 10:06:31 +02:00
Madhu Rajanna 031e3145a5 ceph: update cephcsi to v3.0.0
update cephcsi to latest available release

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2020-07-24 10:21:59 +05:30
Alexander Trost 0795204b1d Merge pull request #5872 from cloudical-io/cassandra_update
cassandra: use latest 3.11.6 version in examples
2020-07-23 15:26:36 +02:00
Sébastien Han dcadf10f0c Merge pull request #5837 from leseb/external-connection
ceph: let the healthcheck set the status phase
2020-07-23 09:24:58 +02:00
Sébastien Han cf28b16b68 Merge pull request #5836 from subhamkrai/objectstore-liveness
ceph: ability to configure livenessprobe for cephobjectstore crd
2020-07-23 09:14:34 +02:00