Commit Graph
2080 Commits
Author SHA1 Message Date
Travis Nielsen d69fcfcd8a Merge pull request #2202 from mickymiek/integrations-tests-k8s1.12
Add Kubernetes 1.12 to Jenkins tests
2018-10-10 14:00:16 -06:00
mickymiek f93128b2d9 make sure integration tests works on k8s 1.12
Signed-off-by: mickymiek <meunie_m@etna-alternance.net>
2018-10-10 17:12:51 +02:00
Travis Nielsen 7683277e54 Merge pull request #2191 from travisn/rgw-init-container
Generate config in init container for RGW
2018-10-10 01:07:25 -04:00
travisn b43f0056ed rgw: generate config in init container
Signed-off-by: travisn <tnielsen@redhat.com>
2018-10-09 21:43:24 -06:00
Travis Nielsen 7de9624e91 Merge pull request #2153 from SUSE/ceph-mds-use-init-container
Ceph mds/file: Set up config in init container
2018-10-08 11:24:14 -06:00
Alexander Trost eed927ec96 Merge pull request #2093 from danielcb/update-documentation
docs: add documentation about imagePullSecrets #1713
2018-10-08 16:12:54 +02:00
Alexander Trost fb55786871 Merge pull request #2194 from galexrt/fix_merge_resources
Fix MergeResourceRequirements() func
2018-10-08 14:11:12 +02:00
Alexander Trost 34be9cf79e Merge pull request #2195 from solidnerd/fix-quickstart-link
Fix quickstart link in kubernetes examples
2018-10-07 15:54:17 +02:00
solidnerd 98d527fadc Fix quickstart link in kubernetes examples
Signed-off-by: solidnerd <niclas@mietz.io>
2018-10-07 15:50:22 +02:00
Alexander Trost 010c6747ab Fix MergeResourceRequirements() func
Resources are now correctly merged when "not set".

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-10-06 17:49:03 +02:00
Blaine Gardner ce803fbf9d Ceph mds/file: Set up config in init container
Progress toward issue #2003.
Includes design from design doc PR #1578

Use init containers to create configuration for Ceph mgrs. There is only
one init container in this design. The init container calls the Rook
binary to create Ceph config files which are then shared with the mds
daemon main container.

Once this init is run, the main mds daemon is run. Leaving room to use
the Ceph-versioned image in the future, call `ceph-mds --foreground ...`
to run the Ceph mds.

The refactor to using an init container also necessitated refactoring
the mdses replicaset implementation to a deployment-per-pod
implementation due to a chicken-egg problem. With a single container (in
the before times) the Rook binary was able to call the ceph-mds daemon
with an id generated from the pod name. Since the pod name is not known
before runtime, and the id is one of the few params that must be
specified to Ceph daemons on run, it is necessary to know the id
beforehand; thus the move to a deployment architecture following the
likes of the mon and mgr daemons.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-10-05 19:01:12 -06:00
Travis Nielsen 8b018f6df4 Merge pull request #2180 from rootfs/no-log-flex
don't print console logs during flex driver call
2018-10-05 10:29:59 -06:00
Travis Nielsen 24112c4f04 Merge pull request #2166 from travisn/remove-toolbox-image
Start toolbox pod with the ceph image and stop building the toolbox image
2018-10-04 13:54:38 -06:00
Huamin Chen 97d20f9833 don't print console logs during flex driver call
Signed-off-by: Huamin Chen <hchen@redhat.com>
2018-10-03 08:46:28 -04:00
travisn efadffda82 docs: update usage of ceph toolbox
Signed-off-by: travisn <tnielsen@redhat.com>
2018-10-02 16:42:55 -06:00
travisn efd581e7ed start toolbox pod with the ceph image instead of a separate image
Signed-off-by: travisn <tnielsen@redhat.com>
2018-10-02 15:43:53 -06:00
Bassam Tabbara d7b03a59c1 Merge pull request #2179 from bassam/pr-readme
update CNCF level in README
2018-10-02 07:56:58 -07:00
Bassam Tabbara 43358f9e6b update cncf level in README
Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-10-02 07:55:38 -07:00
Travis Nielsen 1e1ccd4aa7 Merge pull request #2163 from slayerjain/2148
ceph: Update operator to use node hostname rather than name-name.
2018-10-01 13:19:41 -06:00
Bassam Tabbara 84561c0469 Merge pull request #2172 from bassam/pr-vendor
add vendor checks
2018-10-01 10:51:37 -07:00
Jared Watts 09fc6430e8 Merge pull request #2150 from davidkarlsen/patch-1
Fix invalid claim name
2018-10-01 10:14:30 -07:00
travisn 7d97b6ad76 osd: use the node hostname labels instead of node names
Signed-off-by: travisn <tnielsen@redhat.com>
2018-10-01 08:09:06 -06:00
Bassam Tabbara eabc9bde1a simplify dependencies and add vendor.update target
remove all cosntraints that are not really needed from Gopkg.toml.
we should only be adding constraints that are direct dependencies
of the project and we require a specific version/revision of.

added a vendor.update makefile target that can be used to update
dependencies to the latest.

Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-09-30 16:01:43 -07:00
Bassam Tabbara 727f46d124 ensure all vendor deps have constraints
all vendor dependencies in Gopkg.toml now have constraints. this will
ensure that they do not float as people run `make vendor`. if you need
a new package be sure to change the contraint explicitly.

Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-09-30 09:56:46 -07:00
Bassam Tabbara 2464e32857 add vendor checks
this commit updates dep to version 0.5, and adds a check during
CI runs that enforces that the vendor dependencies have not changed.
There is a now a makefile target `make vendor.check` that performs
this check. Also removed the requirement that PR run make vendor as
this will be done by CI.

Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-09-30 08:10:42 -07:00
Alexander Trost 70cbd4a675 Merge pull request #2167 from asm72/master
docs: fix typo
2018-09-28 20:19:18 +02:00
Andrea Simonini 2ce2d8f771 docs: fix typo
Signed-off-by: Andrea Simonini <andrea.simonini@gmail.com>
2018-09-28 15:22:20 +02:00
Travis Nielsen d2ab770bcc Merge pull request #2059 from rootfs/csi-doc
add ceph csi driver proposal
2018-09-26 13:20:49 -06:00
Travis Nielsen 9c46d1da26 Merge pull request #1800 from ajarr/design-nfs-ganesha-crd
Add Ceph NFS-Ganesha CRD design doc
2018-09-26 13:19:29 -06:00
Travis Nielsen 6f63d16e69 Merge pull request #2146 from travisn/osd-run-with-daemon-image
Enable filestore on device scenario to run with ceph image
2018-09-26 13:19:08 -06:00
Travis Nielsen 19da8856f0 Merge pull request #2159 from rootfs/no-logging
Revert "log the output of blkid to see if device should be formatted"
2018-09-26 11:03:10 -06:00
travisn 08f795f8b3 sanitize underscores in the volume name
Signed-off-by: travisn <tnielsen@redhat.com>
2018-09-26 10:36:36 -06:00
travisn 15f6ee5b14 osd: enable filestore on device scenario to run with ceph image
update osd specs to be consistent with other daemons

Signed-off-by: travisn <tnielsen@redhat.com>
2018-09-26 10:36:16 -06:00
Huamin Chen 3832708c4f Revert "log the output of blkid to see if device should be formatted"
This reverts commit c67542829b.

Signed-off-by: Huamin Chen <hchen@redhat.com>
2018-09-26 12:42:49 +00:00
Daniel Bross 96fe5521c1 docs: add documentation about imagePullSecrets
Adds documentation about applying an imagePullSecret to a service
account to allow all pods spawned by the operator to have this
imagePullSecret. This is necessary to access an image
(e.g. ceph-agent) from a private/authenticated docker registry
without changing the current operator code.

Signed-off-by: Daniel Bross <daniel.c.bross@gmail.com>
2018-09-25 13:58:26 +02:00
Travis Nielsen aae5c97de3 Merge pull request #2145 from ganeshmaharaj/enable-glog
Enable glog logging
2018-09-24 23:04:28 -06:00
Travis Nielsen 2d315e7392 Merge pull request #2120 from noahdesu/expose-node-info-to-ceph
ceph: expose node,pod,ns names to ceph daemons
2018-09-24 17:11:30 -06:00
David J. M. Karlsen 338b404bfd Fix invalid claim name
Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
2018-09-24 22:47:45 +02:00
Noah Watkins e015a21cbd ceph: expose node,pod,ns names to ceph daemons
Ceph expects to be able to reason about physical hardware / nodes.
Before this patch the NODE_NAME that was available referred to the pod
name. This patch exposes the underlying node name, pod, and pod
namespace for the ceph daemons to consume.

fixes: #2078

Signed-off-by: Noah Watkins <nwatkins@redhat.com>
2018-09-24 13:26:24 -07:00
Ganesh Maharaj Mahalingam 30dcd26da9 Enable glog logging
Change enables glog logging and also make default flag values
configurable.

Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2018-09-24 13:17:25 -07:00
Ramana Raja 7d748b0210 Add Ceph NFS-Ganesha CRD design doc
The NFS-Ganesha CRD will orchestrate highly available, scalable
Ganesha server pods as NFS gateways to the Ceph filesystem and
object stores already setup by rook.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2018-09-24 20:36:18 +05:30
Huamin Chen d179d83d56 add ceph csi driver proposal
Signed-off-by: Huamin Chen <hchen@redhat.com>
2018-09-24 14:40:51 +00:00
Travis Nielsen 896ff184b5 Merge pull request #2121 from travisn/k8s-1.11-dependency
Update client-go dependency to K8s 1.11
2018-09-21 17:14:37 -06:00
travisn dd9d68cf4b update generated code for go-client 1.11.3
Signed-off-by: travisn <tnielsen@redhat.com>
2018-09-21 15:39:29 -06:00
travisn 9416fa8c65 update client-go to 1.11.3
Signed-off-by: travisn <tnielsen@redhat.com>
2018-09-21 15:39:29 -06:00
Travis Nielsen d65713cc15 Merge pull request #2114 from SUSE/ceph-mgr-decouple-w-init-container
Ceph mgr: initialize mgr config in init container
2018-09-21 15:37:44 -06:00
Blaine Gardner ca71b7a311 Ceph mgr: Set up config in init container
Progress toward issue #2003.
Includes design from design doc PR #1578

Use init containers to create configuration for Ceph mgrs. There is only
1 init container in this design:
 1. Using the Rook image, call the Rook binary to create Ceph config
files shared with the mgr daemgr container.

Once this init is run, the main mgr daemgr is run. Leaving room to use
the Ceph-versioned image in the future, call `ceph-mgr --foreground ...`
to run the Ceph mgr.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-09-21 13:11:08 -06:00
Blaine Gardner 7a5fe8498c Ceph op: Add test package, container tests
Add a 'test' package to the Ceph operator and define a test to verify
that containers produced by Rook-Ceph match what is expected. Because
this is for 'containers' and not strictly for 'ceph containers', this
could be moved a level up to the operator test package; however, if
other backends wish to use the container tests, they will likely need to
make modifications, and there is concern that this might make the Ceph
tests brittle.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-09-21 09:58:32 -06:00
Blaine Gardner e3d24106d9 Ceph op: Add spec package, shared vol/mnt defns
Add a package called 'spec' to the Ceph operator to store resource
definition specs that are shared by all Ceph daemons.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-09-21 09:58:32 -06:00
Blaine Gardner 78c2cec1ad Add k8s volume/mount tests to operator test pkg
Add functions for helping test Kubernetes volumes and volume mounts.

- Create functions for testing the existence of volumes/mounts by
name in a list of vols/mounts without needing to know the index of
the vol/mount in the list.

- Create functions for printing vols/mounts in a human-readable format
so that tests may output more useful errors.

- Create a test definition for ensuring that all the volumes a pod
provides and all the mounts from each pod container match. For each
volume, there must be at least one container which mounts the volume,
and for each mount, there must be a source volume.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-09-21 09:58:31 -06:00