Commit Graph
7961 Commits
Author SHA1 Message Date
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
Humble Chirammal cbc41a8eba ceph: add rbac for cephfs provisioner in 1.3-upgrade template
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2020-08-11 16:19:19 +05:30
Sébastien Han a9985448d2 Merge pull request #6026 from travisn/mon-test-options
ceph: Test cluster settings for mon failover interval
2020-08-11 09:47:50 +02:00
Sébastien Han ef2c48f4a9 Merge pull request #6027 from travisn/object-test-stabilize
ceph: Improve stability of object bucket tests
2020-08-11 09:46:10 +02:00
Travis Nielsen 3d6029cc10 Merge pull request #6008 from guni1192/ceph-fix-clean-policy-confirmation
docs: fix clean policy confirmation
2020-08-10 23:15:10 -06:00
Takashi IIGUNI 0e86a5a0c4 docs: fix clean policy confirmation of ceph-cluster-crd
Make the document of cleanup policy clearer.

Signed-off-by: Takashi IIGUNI <iiguni.tks@gmail.com>
2020-08-11 01:59:56 +00:00
Travis Nielsen 21ebfe69b6 Merge pull request #6028 from travisn/clusterrole-psp-restore
ceph: Fix psp clusterrole name for helm chart
2020-08-10 17:13:25 -06:00
Travis Nielsen 12a54c306b Merge pull request #6025 from travisn/reset-release-notes
Reset the pending release notes
2020-08-10 16:45:34 -06:00
Travis Nielsen d5672595ae ceph: fix psp clusterrole name for helm chart
With the removal of aggregate roles from the ClusterRole specs, the
psp:rook clusterrole was mistakenly removed. Now we rename the clusterrole
properly so the operator will be granted privileges as expected for psp.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-10 15:10:01 -06:00
Travis Nielsen 9168c22183 ceph: improve stability of object bucket tests
The object bucket tests will now always check if the conditions being waited
upon for creating users and buckets were completed, instead of allowing
the test to continue even when they didn't succeed.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-10 14:46:36 -06: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 07f4554a75 docs: reset the pending release notes
Since the v1.4 release is completed, reset the pending release notes
for v1.5.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-10 14:24:06 -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
Sébastien Han 70000fa5eb Merge pull request #6018 from leseb/fix-external-healthcheck
ceph: fix healtcheck for external cluster
2020-08-10 15:47:23 +02:00
Sébastien Han f652a6ee09 Merge pull request #6019 from anmolsachan/telemeter
ceph: Removed the storage provisioners usage rules.
2020-08-10 15:09:28 +02: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
Sébastien Han f66473a8f8 ceph: fix healtcheck for external cluster
For external cluster, it is not an issue to have a mon count set to 0
since Rook is not deploying/managing the monitors.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-10 11:46:35 +02:00
Humble Chirammal 6613b3a9e9 ceph: update e2e manifest for cephfs snapshotter sidecar
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2020-08-10 11:31:30 +05:30
Humble Chirammal 801b2a5852 ceph: add cephfs snapshotter rbac to cephfs provisioner role
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2020-08-10 11:31:30 +05:30
Humble Chirammal a795ff01e0 ceph: add cephfs examples yamls for restore,clone and snapshotclass
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2020-08-10 11:31:10 +05:30
Humble Chirammal dacc013cc9 ceph: add csi-snapshotter sidecar to cephfs deployment
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2020-08-10 11:27:05 +05:30
Humble Chirammal f2af549371 ceph: add cephfs snapshotter rbac for the cephfs provisioner role
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2020-08-10 11:26:59 +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
Travis Nielsen a8381c3376 Merge pull request #6010 from unai-ttxu/docs/ceph_cs
docs: add provisioner prefix namespace comment in ceph csi examples
2020-08-07 13:14:43 -06:00
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
Travis Nielsen bd7db7a788 Merge pull request #6001 from travisn/object-test-crash
ceph: Improve object bucket test stability
2020-08-06 10:32:28 -06:00
Travis Nielsen 89284d9155 ceph: improve object bucket test stability
The object bucket check is sometimes not completed yet
that causes the integration test to fail intermittently.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-06 09:25:35 -06:00
Sébastien Han 2dcc6ee392 Merge pull request #5864 from rohan47/whereabouts_fix
ceph: fix networkAttachmentConfig to be compatible with whereabouts cni
2020-08-06 15:11:16 +02:00
Sébastien Han f9ae232bc8 Merge pull request #5984 from Madhu-1/fix-nil-pointer
ceph: add check for nil object status
2020-08-06 14:23:24 +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
Sébastien Han 52566ad851 Merge pull request #5990 from travisn/status-update
ceph: Update the cluster status with a non-cached object
2020-08-06 09:12:07 +02:00
Sébastien Han 8da53de7ef Merge pull request #5989 from travisn/prometheus-manifest-path
ceph: Symlink prometheus manifests in same dir
2020-08-06 09:07:05 +02:00
Madhu Rajanna 99cd310cd2 ceph: add check for nil object status
in couple of unit testing the tests are
panicing with nil pointer exception,This
commit adds a check for status pointer before
operating on it.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2020-08-06 12:19:49 +05:30
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 edcb80b237 ceph: unit test cases for enableRBDStats
Signed-off-by: Umanga Chapagain <chapagainumanga@gmail.com>
2020-08-06 12:07:21 +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
Umanga Chapagain 7563077308 ceph: add enableRBDStats spec to CephBlockPool
Signed-off-by: Umanga Chapagain <chapagainumanga@gmail.com>
2020-08-06 12:07:21 +05:30
tenzen-y 1d7d715482 ci: remove unnecessary "rm" command
This commit will remove "sudo rm /usr/local/bin/kube*" and "sudo rm kubectl" in "tests/scripts/kubeadm.sh".
I think that CI-test doesn't make those files.

Signed-off-by: tenzen-y <toyonomajyutushi@yahoo.co.jp>
2020-08-06 05:34:01 +00:00
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
Travis Nielsen a3bf935957 ceph: update the cluster status with a clean object
The cluster CR status needs to be updated with the latest object
instead of a cached copy or else it could fail if there is some
other update. Using the Rook clientset ensures it is the latest
instead of using the cached controller runtime object.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-05 15:55:01 -06:00
Travis Nielsen e45fbf9205 Merge pull request #5974 from guni1192/ceph-use-fixed-mon-directory-in-ci
ceph: use fixed mon directory in ci
2020-08-05 14:53:35 -06:00
Travis Nielsen 943bb839d8 Merge pull request #5985 from travisn/mon-svc-upgrade
ceph: During upgrade the mon service selector cannot be changed
2020-08-05 14:26:11 -06:00
Travis Nielsen 15fae3c4cd ceph: during upgrade service selector cannot be changed
The service selector labels cannot be updated during the upgrade or else the
mon commands will not respond until the mon deployment is also updated.
Since there is a mon command to check for the ceph versions before the
deployment is updated, the operator would remain stuck during the upgrade.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-05 11:32:42 -06:00
Ahmad Nurus S 92fffca1e4 nfs: add unit test for nfs provisioner
Signed-off-by: Ahmad Nurus S <prksu.sh@gmail.com>
2020-08-05 22:55:51 +07: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