Commit Graph
2119 Commits
Author SHA1 Message Date
travisn 6cfd2ee11a port 7000 for the luminous dashboard and 8443 for mimic and above
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:49:37 -06:00
travisn 906add05ce consume the ceph images from the ceph/ceph repo
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:49:37 -06:00
travisn f5b09a5ca5 enable the orchestrator modules on nautilus
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:49:37 -06:00
travisn f2d59bedaa reject unsupported versions and allow overriding the version
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:49:37 -06:00
travisn 06a2461cac cleanup some errors in integration tests
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:49:36 -06:00
travisn b2a0dc77fa automatically detect the major version of the Ceph image
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:49:36 -06:00
travisn 39117a7a0b mgr: configure a self-signed cert and admin user for the dashboard
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:49:36 -06:00
travisn 272f0e9a39 document the new cluster crd attributes for versioning
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:49:36 -06:00
travisn ceb47f260d set default ceph version to luminous
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:49:36 -06:00
travisn 94a7a0d4bc run daemons with the ceph image instead of rook
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:49:35 -06:00
travisn 77171fa2e2 operator: crd updates to support decoupled ceph version
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:48:45 -06:00
travisn c43b95ef83 base the operator docker image on ceph/ceph
Signed-off-by: travisn <tnielsen@redhat.com>
2018-11-01 11:48:45 -06:00
Travis Nielsen bf2759e317 Merge pull request #2247 from SUSE/ceph-err-to-stderr
ceph: log to stderr - fix #2239
2018-10-30 08:39:49 -06:00
Travis Nielsen 3bc529c832 Merge pull request #2245 from travisn/touch-flex-driver
Periodically refresh the flex drivers
2018-10-29 14:00:58 -06:00
Blaine Gardner 7454ae38e4 ceph: log to stderr - fix #2239
Fixes #2239

Set Ceph logging to `/dev/stderr`, and run rgw setup commands without
combined output so that logging (no on stderr) isn't captured as part of
the result of commands.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-10-29 13:59:22 -06:00
travisn 6d04ed325b periodically refresh the flex drivers
Signed-off-by: travisn <tnielsen@redhat.com>
2018-10-29 12:49:47 -06:00
Travis Nielsen 6b07497315 Merge pull request #2244 from travisn/minikube-1-12
Start minikube with k8s 1.12.2 by default
2018-10-29 12:01:31 -06:00
travisn b5862ca062 minikube: start version 1.12.2 by default
Signed-off-by: travisn <tnielsen@redhat.com>
2018-10-26 15:17:05 -06:00
Jared Watts 9ba4fcc450 Merge pull request #2225 from jbw976/upgrade-doc-format
docs: restore deleted metdata/format syntax to upgrade user guide
2018-10-17 23:26:01 -07:00
Travis Nielsen a2bbb67c0b Merge pull request #2211 from travisn/initialize-mons-on-restart
Allow mons to scale up or down
2018-10-17 21:48:25 -06:00
Jared Watts 1997697495 docs: restore deleted metdata/format syntax to upgrade user guide
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-10-17 19:40:32 -07:00
Jared Watts 537c40b3d1 Merge pull request #2156 from ganeshmaharaj/doc-update-pvc-delete
Add doc changes for upgrade with incomplete PVCs
2018-10-17 19:36:57 -07:00
Travis Nielsen 224330764c Merge pull request #2190 from johnae/support-alternate-libmodules-dir
Support alternate libmodules dir
2018-10-17 15:22:06 -06:00
John Axel Eriksson dd7860fb8e Support additonal agent mounts and alternate lib/modules host path.
The background is that there are at least two distributions with very
different host fs layouts. Those would be NixOS and GNU Guix.

For example, on NixOS, /lib/modules does not exist, it can instead
be found at /run/current-system/kernel-modules/lib/modules where
/run/current-system/kernel-modules is a symlink into /nix/store.

Within the modules directory, again on NixOS, there are more links
into the /nix store.

So to support alternate host fs layouts it is now possible to specify
the lib/modules host path and in addition specify extra mounts.

Signed-off-by: John Axel Eriksson <john@insane.se>
2018-10-17 21:03:44 +02:00
travisn b02cd099f1 mons: allow scaling up or down the size of quorum
Signed-off-by: travisn <tnielsen@redhat.com>
2018-10-17 11:00:05 -06:00
travisn cfa0f43f61 check available nodes for mons only when necessary
Signed-off-by: travisn <tnielsen@redhat.com>
2018-10-17 10:59:43 -06:00
Travis Nielsen a69396af5b Merge pull request #2222 from travisn/discover-devices-interval
Reduce frequency of device discovery
2018-10-17 10:57:48 -06:00
travisn 01dc5656f3 reduce frequency of device discovery
Signed-off-by: travisn <tnielsen@redhat.com>
2018-10-17 09:56:47 -06:00
Alexander Trost f322b9fa9e Merge pull request #2218 from anguslees/fmtfix
Don't misinterpret command output as string format
2018-10-17 10:19:48 +02:00
Alexander Trost 6f6f474b9e Merge pull request #2200 from MartinForReal/master
use "COPY" instead of "ADD" in Dockerfile
2018-10-16 12:45:31 +02:00
Fan, Shang Xiang 3d7c650492 build: comply with docker best practice.
Signed-off-by: Fan, Shang Xiang <sxfan@alauda.io>
2018-10-16 13:10:02 +08:00
Angus Lees 9c95ed5f6f Don't misinterpret command output as string format
Previous code tried to interpret the string output as a `fmt.Sprintf`
string formatter, mangling `%` into `%!(MISSING)`, etc.

Thanks to go, I don't belive these are exploitable (unlike the similar
error in C).

Since this seemed to be a common error in the codebase, I did a quick
audit by visually inspecting the results of `git grep 'f([^"]'`.  I
don't have a good suggestion for automated tests to prevent this in
future :(

Example error (look for `(MISSING)`):
```
E0927 05:31:07.618429   11227 driver-call.go:237] Failed to unmarshal output for command: unmount, output: "2018-09-27 05:31:07.191711 I | exec: Running command: df --type ceph /var/lib/kubelet/pods/95461479-c216-11e8-bcf0-02030782ac80/volumes/ceph.rook.io~rook/oe-scratch\n2018-09-27 05:46:43.808596 I | Filesystem                                                 1K-blocks     Used Available Use%!M(MISSING)ounted on\n2018-09-27 05:46:43.808659 I | 10.107.25.147:6790,10.109.173.79:6790,10.104.85.255:6790:/ 151678976 49410048 102268928  33%!/(MISSING)var/lib/kubelet/pods/95461479-c216-11e8-bcf0-02030782ac80/volumes/ceph.rook.io~rook/oe-scratch\n{\"status\":\"Success\"}\n", error: invalid character '-' after top-level value
```

Signed-off-by: Angus Lees <gus@inodes.org>
2018-10-15 15:59:13 +11:00
Travis Nielsen 0c32013739 Merge pull request #2210 from SUSE/ceph-mds-enable-downsizing
ceph mds: allow mds deployment scale-down
2018-10-13 07:45:39 -06:00
Blaine Gardner 96f9a9c4ad ceph mds: allow mds deployment scale-down
fix #2193

Fix regression introduced by PR allowing MDS config creation in init
container. This allows the new deployment-based mds clusters to scale
down where currently they can only remain constant or scale up.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-10-12 14:53:08 -06:00
Ganesh Maharaj Mahalingam fbe2ac0f14 Add doc changes for upgrade with incomplete PVCs
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2018-10-12 13:38:41 -07:00
Travis Nielsen ce66b38fc6 Merge pull request #2212 from jtlayton/rook-cluster-name-env
Ensure that $ROOK_CLUSTER_NAME is set for mgr daemon
2018-10-11 13:35:45 -06:00
Jeff Layton 6bab32b6f9 Ensure that $ROOK_CLUSTER_NAME is set for mgr daemon
We need this environment variable in the main container, not the init
container, as it's used by the rook ceph-mgr module.

Also fix up the env var counts in the testcase.

Fixes: ca71b7a311 (Ceph mgr: Set up config in init container)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2018-10-11 12:46:36 -04:00
Travis Nielsen 0f229c72a6 Merge pull request #2204 from jtlayton/nfs-f28
nfs: rebase nfs image onto fedora 28
2018-10-10 18:37:01 -06:00
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
Jeff Layton 522949e55f nfs: rebase nfs image onto fedora 28
f26 has been EOL'ed for a while now, so we shouldn't be relying on it.

Update to fedora 28. This necessitates installing libnsl2 for ganesha,
which is not installed in the base image these days.

Long term, we should probably find some way to keep this in sync with
the Fedora release cadence, or rebase onto something more stable like
Centos.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2018-10-09 10:10:50 -04: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