Commit Graph
474 Commits
Author SHA1 Message Date
Sébastien Han b8874d7f3f ceph: allow logging control
We now run all the daemon with a new option from Nautilus 14.2.1 which
allows us to tell to a daemon to not log on file. However, we can decide
to activate logging by editing the configuration flag 'log_to_file' via
the centralized config store like this for a particular daemon:

ceph config set mon.a log_to_file true

This is useful when a daemon keeps crashing and we want to collect log
files on the system.

Fixes: https://github.com/rook/rook/issues/2881
Signed-off-by: Sébastien Han <seb@redhat.com>
2019-04-15 10:52:03 +02:00
Alexander Trost 8bc26d9096 k8sclient: Update all operators to use apps/v1
All usages of k8s go client are now also using the versioned `AppsV1() `
call for the client.

Updated MySQL and Wordpress, and Kube Registy examples to use apps/v1
Deployments.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2019-04-12 09:25:42 +02:00
Travis Nielsen 65c0fd878f Merge pull request #2962 from noahdesu/ceph-crypto-link
ceph: add link to ceph docs on encryption details
2019-04-11 12:34:53 -06:00
Travis Nielsen 8f3d62e56b Merge pull request #2936 from SUSE/cautious-osd-node-removal
ceph: remove osd host nodes only when certain
2019-04-11 12:34:24 -06:00
Noah Watkins 21d6c90ed7 ceph: add link to ceph docs on encryption details
fixes: #2926

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-04-11 10:50:22 -07:00
Blaine Gardner a80082988d ceph: remove osds only when certain
Make the Ceph operator more cautious about when it decides to remove
nodes from the Rook-Ceph cluster which are acting as osd hosts.

When `useAllNodes` is set to `true` we assume that the user wants to
have the most hands-off experience. Node removals are allowed when a
node is delted from Kubernetes and when a node has its taints/affinities
modified by the user (but not by automatic k8s modification as much as
possible).

When `useAllnodes` is set to `false` the only time a node is removed is
if it is removed from the Ceph cluster definition.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2019-04-11 09:41:54 -06:00
Madhu Rajanna 149ace57e6 remove manual namespace creation from doc
need to remove the manual namespace creation from
the doc because it will be created as part of
common.yaml deployment.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-04-11 14:32:07 +05:30
Travis Nielsen f52df1aafd Merge pull request #2934 from Madhu-1/csi-doc-update
update ceph-csi rbd snapshot document
2019-04-10 17:28:15 -06:00
Travis Nielsen 38be11936c Merge pull request #2859 from phlogistonjohn/jjm-csi-simplify-1
Simplify Ceph CSI setup
2019-04-10 17:23:41 -06:00
Travis Nielsen 1113688aa8 Merge pull request #2952 from dyusupov/master
support for configurable trlog settings
2019-04-10 17:18:47 -06:00
John Mulligan d46190357a doc: minor csi doc fix
When testing my changes I couldn't successfully deploy without also
creating the contents of common.yaml first.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2019-04-10 17:53:28 -04:00
John Mulligan c0f5557d47 docs: remove instructions for manual ceph csi config maps
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2019-04-10 17:53:28 -04:00
Madhu Rajanna b5001ebfa7 update ceph-csi rbd snapshot document
The current document is too old and it has
a reference to the master branch(earlier
master branch referred to csi-v0.3.0).
This PR updated the snapshot document
wrt to the changes required for csi-v1.0.0

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-04-10 20:30:41 +05:30
Madhu Rajanna d9dd81396c remove attacher statefulset for rbd csi driver
deploy attacher as a container inside  rbd provisioner
stateful set

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-04-10 18:27:08 +05:30
Dmitry Yusupov e1f61219b4 support for configurable trlog settings
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-04-09 15:20:18 -07:00
travisn 5afcf98315 Documentation for the yaml refactor and example crds
Signed-off-by: travisn <tnielsen@redhat.com>
2019-04-04 12:42:08 -06:00
travisn ceb2be1aca refactor the ceph cluster crd and related example yamls
The RBAC is tedious to copy everywhere with the cluster.yaml and is confusing to newcomers.
The common resources are now factored into the operator-common.yaml for the common scenario
of creating a single cluster. Examples are now added for configuration of the operator
and cluster crds to provide a more complete set.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-04-04 12:42:07 -06:00
Alexander Trost ee308ec920 Merge pull request #2911 from noahdesu/dmcrypt-docs
ceph: add docs for encrypted devices
2019-04-02 23:06:04 +02:00
Noah Watkins 0d6c5fe032 ceph: add docs for encrypted devices
fixes: #2779

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-04-01 16:19:16 -07:00
Alexander Trost 0e7dbe4086 Merge pull request #2456 from whereisaaron/patch-1
Document the RBD module prerequisite for Rook Ceph
2019-03-31 15:25:51 +02:00
Aaron Roydhouse b94bbf6f98 Document the RBD module prerequisite for Rook Ceph
The RBD module is an important prerequisite for Rook Ceph. It is mentioned as a possible problem on the Common Issues page, but that is the ambulance at the bottom of the cliff 😄. We should mention the perquisite for new users, tell them how to check, and note any major Kubernetes-as-a-service providers that do not have the RBD module.
https://rook.io/docs/rook/master/common-issues.html#rook-agent-rbd-module-missing-error

Signed-off-by: Aaron Roydhouse <aaron@roydhouse.com>
2019-03-31 02:42:20 -04:00
Travis Nielsen be80c32535 Merge pull request #2457 from whereisaaron/patch-2
Add a Kubernetes Ingress example for dashboard
2019-03-30 18:36:30 -10:00
Dmitry Yusupov 9ad68500fa support for configurable resource profiles
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-03-29 10:33:13 -07:00
Aaron Roydhouse e3bcd5031a Add a Kubernetes Ingress example for dashboard and documentation for it
The examples folder has Service examples but no Ingress examples. This example Ingress is important because it demonstrates how to configure and Ingress that will work with the self-signed certificate the `rook-ceph` installs. The Service name and Namespace matches the default `rook-ceph` install.

Signed-off-by: Aaron Roydhouse <aaron@roydhouse.com>
2019-03-27 12:21:21 -04:00
Alexander Trost db218e42d7 Merge pull request #2879 from sabbot/segments
Edgefs #2878. Add multiple cluster support for CSI driver
2019-03-27 00:13:22 +01:00
Anton Skriptsov a571ed6bd0 Edgefs #2878. Add multiple cluster support for CSI driver
Signed-off-by: Anton Skriptsov <sabbotagge@gmail.com>
2019-03-22 14:01:48 -07:00
Dmitry Yusupov f58fcd0fc5 Support for OpenStack/SWIFT CRD
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-03-21 16:32:28 -07:00
Alexander Trost 2403655cb5 Merge pull request #2837 from sabbot/PR2513-zone-support
Edgefs:2513 Add failure domain and zones
2019-03-21 16:13:11 +01:00
Anton Skriptsov 4f909d86ac Edgefs:2513 Add failure domain and zones
Signed-off-by: Anton Skriptsov <sabbotagge@gmail.com>
2019-03-21 05:02:26 -07:00
Travis Nielsen 233c321103 Merge pull request #2835 from travisn/mon-preferred-count
Increase the number of mons when nodes are added
2019-03-20 15:17:37 -06:00
Dmitry Mishin a9a2840a16 Fixed k8s object names
uppercase is not allowed

Signed-off-by: Dmitry Mishin <dmitry.mishin@gmail.com>
2019-03-20 10:30:42 -07:00
travisn 7548e76bab Increase the number of mons when nodes are added
The desired number of mons could change depending on the number of nodes in a cluster.
For example, three mons would be the min number of mons in a production cluster with at
least three nodes. If there are five or more nodes, the number of mons could increase
to five in order to increase the failure tolerance to two nodes.

This is accomplished by a new setting in the cluster CRD preferredCount. If the number
of hosts exceeds preferredCount, more mons are added to quorum. If the number
of hosts drops below the preferred count, the operator would reduce the quorum size to
the smaller desired count.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-03-19 13:00:37 -06:00
Alexander Trost 64a9308d07 tests/scripts: Added basic k8s-vagrant-multi-node wrapper script
This adds a basic wrapper script around k8s-vagrant-multi-node project.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2019-03-18 15:30:31 +01:00
Dmitry Yusupov 213e440923 support for configurable rtlfs backend
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-03-15 10:14:44 -07:00
Alexander Trost 4816c15d08 Merge pull request #2767 from sabbot/master
EdgeFS CSI for Block interface CRDs, dockumentation and examples
2019-03-14 22:29:13 +01:00
Alexander Trost ea1956c2d3 Merge pull request #2761 from marklester/kubespray-update
docs: add kubespray instructions to flexvolume doc
2019-03-14 14:42:50 +01:00
Anton Skriptsov 8049de452b EdgeFS CSI for Block interface CRDs, dockumentation and examples
Signed-off-by: Anton Skriptsov <anton.skriptsov@nexenta.com>
2019-03-13 14:40:06 -07:00
Mark 44a5f1392b docs: add kubespray instructions to flexvolume doc
updated page to include information about how the flexvolume path is setup in kubespray

Signed-off-by: Mark <mlester@gmail.com>

update docs with suggested pr changes

made recommended change to link text
made kubespray section more clear
added link to where kubespray sets the dir
changed links to k8s docs to the moved location

Signed-off-by: Mark <mlester@gmail.com>
2019-03-13 16:36:53 -04:00
Jose A. Rivera a211a3cd26 Allow Ceph detect version Job to accept placement
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
2019-03-13 11:18:17 -05:00
Travis Nielsen fb4fa464e1 Merge pull request #2726 from Madhu-1/cephfs-csi
Add cephfs csi doc
2019-03-12 14:02:10 -07:00
Travis Nielsen 504bec1dc7 Merge pull request #2783 from emedina/patch-1
Add section to Change Failure Domain
2019-03-08 08:20:08 -07:00
Enrique Medina Montenegro f4e2dc8dd1 Make new rule name more explicit
Signed-off-by: Enrique Medina Montenegro <enrique@medinamontenegro.es>
2019-03-08 09:43:20 +01:00
Enrique Medina Montenegro a4b5b890e9 Updated based on feedback from PR reviewer
Signed-off-by: Enrique Medina Montenegro <enrique@medinamontenegro.es>
2019-03-08 09:42:51 +01:00
Travis Nielsen dcd24d3cca Merge pull request #2738 from SUSE/rgw-all-in-operator
Ceph rgw: configure completely from operator
2019-03-07 14:35:28 -07:00
Enrique Medina Montenegro fa1cfa73ae Add section to Change Failure Domain
Signed-off-by: Enrique Medina Montenegro <enrique@medinamontenegro.es>
2019-03-07 19:59:11 +01:00
Blaine Gardner 086fa8231c rgw: configure entirely in operator
Configure the Ceph rgw daemon completely from the operator a la the
recent changes to the Ceph mon, mgr, and mds operators.

Create the rgw deployment or daemonset first, and then create the
keyring secret for the object store with its owner reference as the
corresponding deployment or daemonset. When the replication controller
is deleted, the secret is also deleted.

The RGW's mime.types file is now stored in a configmap with a different
file created for each object store. This is primarily just a means to
get the mime.types file into the rgw pod, but the added benefit is that
the administrator can modify the configmap, which could reduce
susceptibility to file type execution vulnerabilities (worst case).

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2019-03-07 08:02:42 -07:00
Alexander Trost ec6cd71fd8 docs: sorted flexvolume platform paths alphabetical
Sorted the flexvolume platform specific paths alphabetically.
Added some spacing around code blocks to prevent issues with certain
Markdown renderers.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2019-03-05 07:19:41 +01:00
Alexander Trost feb3b0cac9 Merge pull request #2759 from galexrt/fix_2662
Fix indentation for Rancher Flexvolume docs
2019-03-05 00:07:49 +01:00
Alexander Trost 80ecfd710b Fix indentation in Rancher Flexvolume docs
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2019-03-04 23:52:36 +01:00
Travis Nielsen 322e493422 Merge pull request #2656 from lbogdan/docs/retain
[ceph docs] Add note of RBD image retention after the corresponding PV is deleted
2019-03-04 11:14:43 -07:00