Commit Graph
7961 Commits
Author SHA1 Message Date
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
travisn bd672de7db ceph: allow running minimal test matrix for ceph tests
There are six test suites and six k8s versions where we currently run
the tests. For efficiency we can restrict the testing to one suite
per k8s version. Bigger or riskier changes should still run the full
set of suites on all versions. To trigger the smaller test matrix, add
[test ceph min] to the PR description

Signed-off-by: travisn <tnielsen@redhat.com>
2019-09-18 23:06:49 -06:00
Blaine Gardner 0f79b649c0 Merge pull request #3895 from travisn/reset-pending-rel-notes
Reset the pending release notes for the next release
2019-09-18 15:53:46 -06:00
travisn 7c83f0408d reset the pending release notes for the next release
Signed-off-by: travisn <tnielsen@redhat.com>
2019-09-18 12:01:41 -06:00
Sébastien Han bac835c89f Merge pull request #3884 from Madhu-1/fix-3855
Include CSI image in helm chart values
2019-09-18 14:56:47 +02:00
Sébastien Han c96fe8b5f8 ceph: enable ceph-volume debug logs
It's fine to enable debug logs from c-v, it's not so verbose and really
useful when debugging.

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-18 13:55:18 +02:00
Sébastien Han 11640f030a Merge pull request #3822 from krig/ceph-dashboard-port
Ceph: Use HTTP port if SSL is disabled
2019-09-18 11:29:56 +02:00
Madhu Rajanna c7b861a21d Include CSI image in helm chart values
The Helm Chart should include values for the CSI
images so Rook with CSI can pull the required
images from a private container registry.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-18 14:29:39 +05:30
Sébastien Han 9c86f40a6e Merge pull request #3724 from leseb/disable-flex
operator: ceph disable flexdriver
2019-09-18 10:08:07 +02:00
Travis Nielsen 6469b06f0a Merge pull request #3870 from leseb/fix-cmd
ceph: fix upgrade commands
2019-09-17 23:24:55 -06:00
Travis Nielsen 480312c976 Merge pull request #3889 from leseb/use-v14.2.4-20190917
ceph: bump to v14.2.4
2019-09-17 16:56:51 -06:00
Sébastien Han 7f359ba41b operator: ceph disable flexdriver
Since Ceph CSI is stable and deployed by default, we don't need to
deploy the rook-ceph-agent daemonset.

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-18 00:28:25 +02:00
Travis Nielsen 5418dea0e1 Merge pull request #3876 from travisn/create-csi-secret
Ensure the ceph-csi secret exists on upgrade
2019-09-17 13:13:40 -06:00
travisn 60290943ef ceph: ensure the csi secret exists on upgrade
The CSI secret was only being created for new clusters.
Upgraded clusters did not have the secret generated. To support
upgraded clusters to use CSI, we always ensure the csi secret
exists when the orchestration runs.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-09-17 12:15:37 -06:00
Blaine Gardner 346bce2430 Merge pull request #3862 from krig/ssl-enabled-by-default
Ceph: Enable SSL for dashboard by default
2019-09-17 11:40:52 -06:00
Sébastien Han 171c4ac438 ceph: fix upgrade commands
Several commands were not using the cli finalizer function which builds
up the right argument to run a ceph command. This was working on the
operator since it used to have an /etc/ceph/ceph.conf file so we could
ran the command without specifying the ceph conf and key paths.
However, we recently removed that and it silently broke this "already"
broken code :).

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-17 18:59:42 +02:00
Blaine Gardner 908675bb17 Merge pull request #3847 from leseb/more-pg-autoscaler
pg autoscaler and osd bluefs fixes
2019-09-17 09:43:55 -06:00
Sébastien Han d3104ed47b Merge pull request #3879 from ashishranjan738/mdbfix
fix(fencing): changes mdb controller to use namespace for checking ceph status
2019-09-17 15:34:59 +02:00
Sébastien Han bcbba47598 Merge pull request #3886 from Madhu-1/fix-sock
correct liveness container socket file
2019-09-17 15:17:57 +02:00
Sébastien Han bc6dcb9995 ceph: bump to v14.2.4
v14.2.4 just got released so let's use it.

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-17 15:08:15 +02:00
Sébastien Han f7df86df16 Merge pull request #3569 from galexrt/docs_improve
docs/ceph: add list of unusable directories paths
2019-09-17 12:20:01 +02:00
Madhu Rajanna 3c7dc1efe4 corrent liveness container socket file
liveness container is deployed as part of
the provisioner pod so it has to connect to
the provisioner container and check the liveness.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-09-17 15:43:20 +05:30
Ashish Ranjan c4ee336fe0 fix(fencing): change mdb controller to use namespace for checking status
This commit changed mdb controller to make use of cephCluster's namespace instead of cephCluster's name for checking the ceph health as the ceph config is located in the cephCluster's namespace folder which can makes mdb controller fail when rook operator is deployed in any other namespace apart from rook-ceph.

Signed-off-by: Ashish Ranjan <aranjan@redhat.com>
2019-09-17 11:46:54 +05:30
Travis Nielsen ceec3accf1 Merge pull request #3863 from k0da/values_template
Remove helm incompatible chars from values.yaml
2019-09-16 18:14:42 -06:00
Travis Nielsen 5295dfb200 Merge pull request #3844 from leseb/nfs-needs-mds
nfs: fail if no mds are running
2019-09-16 18:11:40 -06:00
Sébastien Han e22a0722e7 Merge pull request #3837 from rohan47/nfs-docs
NFS: Added an example to consume the nfs export created by nfs operator.
2019-09-16 10:45:13 +02:00
Dinar Valeev df7580e86c Remove helm incompatible chars from values.yaml
Remove %% around VERSION in charts yaml, so helm can process it.

Otherwise helm complains:
"unmarshal vendor values: yaml: line 7: found character that cannot start any token"

Signed-off-by: Dinar Valeev <k0da@opensuse.org>
2019-09-16 10:29:10 +02:00
Kristoffer Grönlund 35109e69f2 Ceph: Enable SSL for dashboard by default
With #3626, the default value for ssl changed
from enabled to disabled, so to get SSL for
the dashboard we will need to enable it
explicitly.

Signed-off-by: Kristoffer Grönlund <kgronlund@suse.com>
2019-09-16 10:04:35 +02:00
Sébastien Han 1249d51b90 Merge pull request #3848 from leseb/cmd-chown
ceph: make lifecycle hook chown less verbose
2019-09-16 09:50:05 +02:00