Commit Graph
3530 Commits
Author SHA1 Message Date
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
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
Sébastien Han c0843f2184 nfs: fail if no mds are running
In order to run ganesha exporting cephfs we must have an MDS server
running. So, we check if the pool was created.
If not present we fail the instanciation of the CR.

Closes: https://github.com/rook/rook/issues/3835
Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-16 09:48:58 +02:00
Sébastien Han 22c9c3a813 ceph: disable bluestore warn on legacy statfs
When upgraded to Octopus or 14.2.5, OSDs will fix themselves on the fly at
startup, so we just need to silence this warning for now.
No migration is needed.

Closes: https://github.com/rook/rook/issues/3539
Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-16 09:33:00 +02:00
Kristoffer Grönlund d67ef2bcdd Ceph: Use HTTP port if SSL is disabled
Using port 8443 / dashboardHTTPS when not running HTTPS
is confusing, so use the dashboardHTTP port (7000 by
default) instead.

Also don't expose the dashboard port as "https-dashboard"
when not using https, instead expose as "dashboard".

Resolves #3810

Signed-off-by: Kristoffer Grönlund <kgronlund@suse.com>
2019-09-16 09:29:39 +02:00
rohan47 c1a3038f2d NFS: Added an example to consume the nfs export created by nfs operator.
Signed-off-by: rohan47 <rohgupta@redhat.com>
2019-09-14 00:00:05 +05:30
Sébastien Han 11d3831d74 ceph: more mgr autoscaler option
Now that the pg_autoscaler is on by default, it is "normal" (and okay) to
have a small number of PGs in the cluster if the overall cluster usage is
also low. This setting just results in a health warning out of the box
when you create a pool and haven't written any data yet.

fyi: ceph upstream https://github.com/ceph/ceph/pull/30352

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-13 18:31:42 +02:00
Sébastien Han 5b930872b9 ceph: make lifecycle hook chown less verbose
It looks like on large store, the `--verbose` option is going over grpc
message buffer, since the output might be quite big.

See the error:

([chown --recursive --verbose ceph:ceph /var/log/ceph /data/rook-storage/osd11]) for
 Container "osd" in Pod "rook-ceph-osd-11-85dbbb5cd6-djttp_rook-ceph(4bf77ccd-d631-11e9-8334-fa163ed365ca)" failed - error: rpc error: code = ResourceExhausted desc = grpc: trying
to send message larger than max (15133688 vs. 8388608), message: ""

Removing the verbose flag should fix this.

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-09-13 18:08:52 +02:00
Alexander Trost 0827df646a docs/ceph: add list of unusable directories paths
This adds a list of unusable directories paths to the Ceph Cluster CRD
doc page and the Ceph operator validation code. Reason for adding these
directories is that they are causing errors during Ceph OSD deployment.
Example: When an user wants to use `/rook` as a directory for an OSD,
the cluster deployment fails because the `mountPath`s must be unique:
```
Job.batch "rook-ceph-osd-prepare-NODE" is invalid: spec.template.spec.containers[1].volumeMounts[4].mountPath: Invalid value: "/rook": must be unique
```

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2019-09-13 14:06:32 +02:00
Sébastien Han 4dc63402a5 Merge pull request #3842 from umangachapagain/CephDataRecoveryTakingTooLong-alert
Changed description for CephDataRecoveryTakingTooLong alert
2019-09-13 10:35:10 +02:00
Umanga Chapagain ddb006152b Changed description for CephDataRecoveryTakingTooLong alert
Previous alert description was confusing. This makes it more
generic and user understandable.

Signed-off-by: Umanga Chapagain <chapagainumanga@gmail.com>
2019-09-13 13:58:51 +05:30
Blaine Gardner 965d214e99 Merge pull request #3827 from travisn/upgrade-review
Updated instructions for Ceph upgrades from v1.0
2019-09-12 14:20:20 -06:00
travisn c77a64fbaa ceph: add final upgrade changes from v1.0
The upgrade was missing some final features that were added recently
such as the pod disruption budgets. The namespaced RBAC changes also
needed to have the appropriate namespaces included if they had installed
the operator in a different namespace from rook-ceph.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-09-12 14:08:10 -06:00
travisn dc39129877 ceph: use consistent storage class name for at least one environment
Signed-off-by: travisn <tnielsen@redhat.com>
2019-09-12 11:04:01 -06:00
Sébastien Han 36d6120c3d Merge pull request #3819 from ashishranjan738/codefix
[Disruption logging]: Wrap the openshift fencing reconcilers with error loggers.
2019-09-12 11:04:49 +02:00
Sébastien Han 7460a43e0b Merge pull request #3830 from yydzhou/fix-namespace-chart
replace hard code namespace with release namespace
2019-09-12 10:46:44 +02:00
Sébastien Han af60060704 Merge pull request #3626 from jmolmo/issue-3603
Set "ssl_server_port" dashboard setting if it is present in ceph dashboard config
2019-09-12 09:52:44 +02:00
Deng Zhou e679b2742c replace hard code namespace with release namespace
Signed-off-by: Deng Zhou <deng.zhou@petuum.com>
2019-09-11 13:23:16 -07:00
Sébastien Han ff73043b75 Merge pull request #3790 from umangachapagain/nbd-filter
ignore updates on nbd device
2019-09-11 17:59:15 +02:00
Sébastien Han f6fb706018 Merge pull request #3815 from rohan47/osd_prepare_panic
Set the Command property for the OSD prepare init container blkdevmapper
2019-09-11 16:26:54 +02:00
Blaine Gardner 3397e64b20 Merge pull request #3825 from SUSE/ceph-upgrade-docs-custom-csi-image
ceph upgrade doc: document CSI image changes
2019-09-10 15:21:22 -06:00
Blaine Gardner 0be2e2c027 ceph upgrade doc: document CSI image changes
The configuration for using Rook with CSI images has changed somewhat
since v1.0, and users of Ceph's CSI drivers will need to consider some
additional update steps.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2019-09-10 11:02:21 -06:00
rohan47 a4639ae541 Changed the OSD DOWN message to debug level
We want the OSD DOWN message to be shown when debug option is set to
true in the rook-ceph operator.

Signed-off-by: rohan47 <rohgupta@redhat.com>
2019-09-10 22:06:48 +05:30
rohan47 fcbce4898c Set the Command property for the OSD prepare init container blkdevmapper
If a Ceph container image is specified which has a entrypoint then the
Init container for osd prepare job blkdevmapper will fail. So set the
Command property.

Signed-off-by: rohan47 <rohgupta@redhat.com>
2019-09-10 22:05:50 +05:30
Ashish Ranjan 651efc26b1 Disruption: Wrapped the reconcile logic with a secondary reconcile func
This commit wraps the existing reconcile logic for mdb and machinelabel controller with a secondary reconcile func for better logging as rook's logging mechanism is not compatible with controller-runtime logging interface.

Signed-off-by: Ashish Ranjan <aranjan@redhat.com>
2019-09-10 13:28:55 +05:30
Travis Nielsen ba74cc9361 Merge pull request #3806 from travisn/helm-allow-settings-disable
Helm: Always apply boolean settings
2019-09-10 06:58:44 +03:00
travisn 86968c5064 ceph: boolean settings not applied if set to false and default
THe boolean helm settings were only being applied if their value was true.
If the desired value was false, the value would be skipped in the chart
instead of adding it with the value of false.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-09-09 23:27:35 +03:00
Blaine Gardner c91db82cde Merge pull request #3811 from SUSE/fix-ceph-volume-outputs-to-stderr-now
Ceph: use combined output from ceph-volume
2019-09-09 14:09:20 -06:00
Travis Nielsen 3eb4586827 Merge pull request #3808 from Madhu-1/csi-timeout
Increase sidecar timeout from 60s to 150s
2019-09-09 23:06:46 +03:00
Travis Nielsen 6e4b40b842 Merge pull request #3786 from rohantmp/drainFix
Fix: only schedule node drain canaries on nodes with osds
2019-09-09 22:53:15 +03:00