Commit Graph
3588 Commits
Author SHA1 Message Date
Sébastien Han 9bcdbeaf51 Merge pull request #3970 from humblec/ext4
Set default FS to "ext4" on RBD device
2019-09-24 11:11:46 +02:00
Humble Chirammal 3da9514191 We were defaulting to ext4 at first and then moved to
`xfs`. However further testing shows that, ext4 should be
the default or preferred fs for RBD devices.

This patch bring that change

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-09-24 14:28:16 +05:30
Alexander Trost ba196bdea5 Correct SYSTEM spelling (#3963)
Correct SYSTEM spelling
2019-09-24 10:00:56 +02:00
Sébastien Han 4e96ddfdce Merge pull request #3919 from krig/clustercontroller-finalizer
Ceph: Remove finalizer even if flex is disabled
2019-09-24 09:42:38 +02:00
Kristoffer Grönlund fb599dd02b Ceph: Remove finalizer even if flex is disabled
When the flex driver is disabled, the check for
volume attachments will fail and the finalizer
is never removed. To avoid this, just log the
failure to list volumes and remove the
finalizer anyway.

Resolves #3912

Signed-off-by: Kristoffer Grönlund <kgronlund@suse.com>
2019-09-24 08:22:30 +02:00
Travis Nielsen 4cbe8b5a3e Merge pull request #3931 from Madhu-1/fix-umount
Fix umount issue when rbd-nodeplugin restarts
2019-09-23 22:21:52 -06:00
Madhu Rajanna 09da4e3a3e Correct SYSTEM spelling
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-24 09:32:36 +05:30
Travis Nielsen ba2b8724ce Merge pull request #3946 from sebastian-philipp/crd-validation-network-provider
CephCluster CRD: Added additional network attributes to validation
2019-09-23 10:22:41 -06:00
Travis Nielsen 1969a4f4fb Merge pull request #3944 from Madhu-1/correct-ns
correct namespace for csi resources  in upgrade doc
2019-09-23 10:22:00 -06:00
Travis Nielsen 1e695283c9 Merge pull request #3945 from Madhu-1/disable-flex
Disable Flexdriver in helm chart and operator-openshift
2019-09-23 09:52:10 -06:00
Madhu Rajanna d71d57f0e9 Add KUBELET_DIR_PATH to operator-openshift.yaml
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-23 20:26:03 +05:30
Madhu Rajanna 7a407fb045 Disable flex driver in operator-openshift.yaml
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-23 20:26:03 +05:30
Madhu Rajanna 15f36e9c63 Disable Flexdriver in helm chart
in commit https://github.com/rook/rook/commit/c7b861a21d729da0a4e5a86349efc8a290130bb8
flexdriver got enabled  by mistake, This will fix it

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-23 20:26:03 +05:30
Sébastien Han 8b3b97c5da Merge pull request #3949 from leseb/olm-nfs-yaml
rook-ceph olm: add missing nfs crd example
2019-09-23 16:47:41 +02:00
Alexander Trost 8187297d36 Merge pull request #3503 from jbmcfarlin31/master
minio: update documentation in regards to #3478
2019-09-23 13:36:27 +02:00
Sébastien Han 2e482d15a3 ceph: common.yaml remove empty line
We don't need this empty line.

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-23 12:10:38 +02:00
Sébastien Han 0b4129c856 rook-ceph olm: add missing nfs crd example
When displaying the CRDs OLM looks into the alm-examples field in the
CSV file, the NFS CRD example was missing so let's add it.

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-23 12:08:15 +02:00
Sébastien Han cf091d3773 Merge pull request #3928 from rohantmp/csvBump
Generate OLM clusterserviceversion v1.1.1
2019-09-23 11:46:55 +02:00
Alexander Trost ba12167ff5 Merge pull request #3820 from krig/yugabyte-doc
Doc (Yugabyte DB): Fix hostname in API connection (#3816)
2019-09-23 10:01:56 +02:00
Sebastian Wagner 82329a0bc6 Ceph CRDs: sync between copies
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-09-23 09:57:49 +02:00
Sebastian Wagner 965dc93f11 CephCluster CRD: Added network.provider to validation
(and `network.selectors`)

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-09-23 09:57:05 +02:00
Madhu Rajanna 04a276abf1 correct namespace for csi resources
CSI pods should look for the resources
created in ROOK_SYSTEM_NAMESPACE instead
of ROOK_NAMESPACE

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-23 10:20:51 +05:30
Travis Nielsen f96960cfcc Merge pull request #3904 from sebastian-philipp/crd-validation-disruptionManagement
Fix CRD Validation: disruptionManagement and mgr modules
2019-09-20 17:06:45 -06:00
Travis Nielsen cfc82d89a8 Merge pull request #3933 from travisn/lvm-for-rhel8
Configure additional LVM setting for rhel8
2019-09-20 12:49:33 -06:00
travisn f3ce214822 ceph: configure additional lvm settings for rhel8
RHEL8 introduces some lvm changes. For OSDs on PVs to work
we need to set allow_changes_with_duplicate_pvs = 1.
This is required since we're copying the block image
under another location.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-09-20 11:51:07 -06:00
Travis Nielsen 5f37de8abc Merge pull request #3927 from Madhu-1/fix-3921
Make kubelet path configurable in operator for csi
2019-09-20 10:45:27 -06:00
Travis Nielsen 70c44c6eea Merge pull request #3924 from travisn/osd-on-pvc-nodename
Ceph: OSD pods should always use hostname for node selector
2019-09-20 10:45:10 -06:00
Travis Nielsen 03f328b0ed Merge pull request #3755 from sp98/fix-osd-on-pvc
[osd on pvc] deactivate device from lvm after OSD Prepare and OSD daemon pod ends
2019-09-20 10:43:33 -06:00
Sébastien Han 78d21c5758 Merge pull request #3918 from rohantmp/nfsCSV
Add CephNFS to OLM's clusterserviceversion
2019-09-20 18:07:26 +02:00
Travis Nielsen cff6ef18b6 Merge pull request #3869 from rohantmp/canaryTolerations
Tolerations for drain detection canaries
2019-09-20 09:12:09 -06:00
Madhu Rajanna 3235676a5a group csi variables under single if check
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-20 18:57:55 +05:30
Madhu Rajanna 345f099bbc Make kubelet path configurable in operator
currently CSI templates have hardcoded kubelet
path which will  be used for  mounting PVC,this
will not work if kubelet is configured to use
different path, with this PR  kubelet path
can be configured for CSI.

Fixes: #3921

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-20 18:51:44 +05:30
Santosh Pillai 9db863377a release the device held onto by lvm
When running osds on pvc, the lvm is still holding the device when the cluster is deleted. As a result the PVs go into `failed` state
when the cluster is deleted. On deactivating the device, the 'failed' pvs get deleted as well. Solution involves:
- Running `lvchange -an <vg group name>` to deactivate the device.
- This command runs after 'osd prepare' completes.
- This command also runs after the 'osd daemon pod' is deleted or if the ceph-osd process terminates for some reasons.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
2019-09-20 18:08:13 +05:30
Madhu Rajanna 915bed0c3c remove / host mount from pod template
set containerized flag as false

This is not required as we are setting
containerized=false and we have deprecated
this flag in ceph-csi.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-20 17:16:51 +05:30
Madhu Rajanna ac295a57a5 Remove containerized flag from provisioner
containerized is only useful in nodeplugin
not the provisioner pod

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-20 17:03:34 +05:30
Rohan CJ 195f20ad01 Pick up tolerations for drain canary pod from the osd.
This change is necessary drain canary pod needs to be schedulable on
the same nodes as the OSDs. Since it affects multiple OSDs, we need to
gather tolerations from multiple OSDs.

Signed-off-by: Rohan CJ <rohantmp@gmail.com>
2019-09-20 15:15:08 +05:30
Sébastien Han 90e24296c4 Merge pull request #3915 from travisn/minimal-ceph-tests
Allow running minimal test matrix for ceph tests
2019-09-20 11:02:45 +02:00
Sebastian Wagner ec77c21f9b examples/ceph/cluster.yaml: comment out mgr.modules
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-09-20 09:55:46 +02:00
Sebastian Wagner 1987480dc5 Added missing properties
* volumeClaimTemplate
* storageClassDeviceSets
* external.enable

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-09-20 09:55:46 +02:00
Sebastian Wagner f66f6c1ce3 disruptionManagement: Added missing CRD validation
Also:
* `cluster.yaml`: spec.mgr.modules is not explicily nullable
* Removed `required: mon` in `ceph_manifests.go`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-09-20 09:55:46 +02:00
Rohan CJ e480aa8ddf Generate CSV v1.1.1
Signed-off-by: Rohan CJ <rohantmp@gmail.com>
2019-09-20 12:04:16 +05:30
travisn 57d446ec6f ceph: osds to always use hostname for node selector
The node selector for running OSDs on PVCs was using the node name
rather than the node's hostname. In clusters where the node name
is different from the hostname this would cause the osd daemons
to be in pending state indefinitely. Now the node selector will
use the hostname as expected.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-09-19 16:01:52 -06:00
Travis Nielsen 30fe718a97 Merge pull request #3907 from leseb/c-v-debug-log
ceph: enable ceph-volume debug logs
2019-09-19 12:19:20 -06:00
Blaine Gardner f97820a088 Merge pull request #3902 from Madhu-1/fix-3868
update cephcsi upgrade document
2019-09-19 12:14:37 -06:00
Sébastien Han 4e3ad8b8b8 Merge pull request #3916 from leseb/rm-used-func
test: remove unused function
2019-09-19 18:09:17 +02:00
Sébastien Han 8edd9b20b7 Merge pull request #3901 from leseb/force-upgrade
ceph: add a new CR property to force upgrades
2019-09-19 17:30:36 +02:00
Rohan CJ d332c6a654 Add CephNFS to CSV
Signed-off-by: Rohan CJ <rohantmp@gmail.com>
2019-09-19 19:08:12 +05:30
Sébastien Hanand: Tuan Do Anh 13686e3f8c test: remove unused function
Remove dead code.

Co-authored-by:: Tuan Do Anh <tuanda@vn.fujitsu.com>
Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-19 11:37:14 +02:00
Sébastien Han 087d71106b ceph: add a new CR property to force upgrades
On rare occasion, the ceph checks might not be 100% correct and the user
might decide to force an upgrade anyway.
Correctly, if we are in an upgrade, we perform `ok-to-stop` check for
each daemon, if one of them fails, we retry and eventually fail.
They are corner-cases where users would like to force the upgrade anyway.

Enhance the new CR property: "skipUpgradeChecks: true".

Closes: https://github.com/rook/rook/issues/3872
Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-19 10:55:56 +02:00
Madhu Rajanna 4a8b821c79 update csi upgrade document
updated required rules for upgrading CSI from
v1.0 to v1.1 and also updated the document with
required steps

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-19 12:00:22 +05:30