Commit Graph
571 Commits
Author SHA1 Message Date
travisn 6a335ebe8a mon: refactor mon naming for use by other daemons
Signed-off-by: travisn <tnielsen@redhat.com>
2018-09-06 11:46:45 -06:00
Blaine Gardner 4be911c5b1 Ceph: include daemons as <dmn>daemon
To help with code readability, include daemons from `pkg/daemon/ceph`
as `<dmn>daemon "github.com/rook/rook/pkg/daemon/ceph/<dmn>`. This will
make it easier to understand code lines without needing to scroll up to
check the includes, as there are mon/mds/mgr/osd/rgw packages for
daemons as well as operator and cmd.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-09-06 09:40:00 -06:00
Travis Nielsen 02accb5d62 Merge pull request #2081 from SUSE/ceph-refactor-mon-config
Ceph: Refactor daemon/mon module's config and keyring generation into cephconfig module
2018-09-05 22:03:06 -06:00
Blaine Gardner 3731f06176 Ceph: Refactor mon config/keyring to cephconfig
Create a cephconfig module in Ceph's daemon pkg source, and refactor the
config and keyring generation that exists in the mon package into the
new cephconfig package. The config/keyring generation code is used by
most all daemons and not just mon, so a new package is a more
appropriate place for this.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-09-05 10:17:11 -06:00
Alexander Trost 408ef6315a Merge pull request #2086 from arm64b/alignment-size-of-the-PV
Align the size of the PV to the actual one
2018-09-05 14:36:01 +02:00
travisn c0af417b00 osd: delete legacy deployment with -id in the name
Signed-off-by: travisn <tnielsen@redhat.com>
2018-09-04 14:15:18 -05:00
Sage Weil 8e773612ca Remove unnecessary "-id" from OSD pod names
The -id portion of the name is unnecessary and inconsistent with the other
pod names.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-09-04 14:15:18 -05:00
Dennis Chen 7dce5c004f Align the size of the PV to the actual one
We maybe roundup the size to the next `MB` boundary in some cases
when creating the volume, thus we need to make sure the size of
the PV generated is consistent with the actual one.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-09-04 16:27:19 +08:00
travisn f840e3574e mon: start a deployment instead of replicaset
Signed-off-by: travisn <tnielsen@redhat.com>
2018-09-01 00:12:42 -06:00
travisn 5f01178e83 mon: set names based on chars instead of integers
Signed-off-by: travisn <tnielsen@redhat.com>
2018-08-30 22:18:53 -06:00
Dennis Chen 25086c01ad Roundup the size of the RBD volume image
Current code will truncate the generated RBD image in some cases,
this PR will round up the size to make sure the final RBD image
generated can cover all the required data space.

Also, corresponding unit test cases added to verify the change.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-08-29 11:10:07 +08:00
Alexander Trost 4ccaea654a Updated DefaultClusterName to match rook-ceph
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-08-27 14:51:29 +02:00
Travis Nielsen 6976364e80 Merge pull request #2070 from SUSE/ceph-runasnonroot-allow-false
ceph osd operator: Allow explicit runAsNonRoot=false
2018-08-24 17:38:18 -06:00
Blaine Gardner 406067788d ceph osd oper: Allow explicit runAsNonRoot=false
Rook no longer supports Kubernetes < 1.7
Remove a workaround for k8s < 1.6.4 where `runAsNonRoot` could not be
explicitly set to false.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-08-24 15:11:45 -06:00
travisn 1a86a8cb7b metered loading of flex drivers
Signed-off-by: travisn <tnielsen@redhat.com>
2018-08-24 13:28:57 -06:00
Alexander Trost 614fef7fce Merge pull request #2055 from arm64b/remove-unused-volume-mgr
Remove unused volume manager parameters
2018-08-24 16:40:40 +02:00
travisn 51e60b7b4d tests: upgrade integration test from 0.8.1 to master
Signed-off-by: travisn <tnielsen@redhat.com>
2018-08-23 16:43:10 -06:00
rohan47 9aec1d3002 nfs: Documentation, user guides, examples
Signed-off-by: rohan47 <rohanrgupta1996@gmail.com>
2018-08-22 11:57:44 +00:00
rohan47 41ab581b76 nfs: operator/controller implementation
Signed-off-by: rohan47 <rohanrgupta1996@gmail.com>
2018-08-22 10:34:40 +00:00
rohan47 4a7274d35d nfs: generated clientset code
Signed-off-by: rohan47 <rohanrgupta1996@gmail.com>
2018-08-22 10:34:40 +00:00
rohan47 d09bf3d62e nfs: CRD types and specs
Signed-off-by: rohan47 <rohanrgupta1996@gmail.com>
2018-08-22 10:34:40 +00:00
Dennis Chen 4a15529db5 Remove unused volume manager parameters
We don't use volume manager argument in NewClusterController()
and NewFlexvolumeServer() functions, so remove the unused volume
manager parameter from those functions.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-08-22 09:49:02 +08:00
Alexander Trost 2080330539 Add dataPool parameter to StorageClass
This change allows block storage to use a given Ceph pool for it's data.

Fixes #1733

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-08-17 16:28:08 +02:00
Bogdan Luca 22757663d1 Set application name to "rbd" when creating a RBD pool
Signed-off-by: Bogdan Luca <luca.bogdan@gmail.com>
2018-08-10 15:13:44 +03:00
Jared Watts 90fdea4ddd Merge pull request #1947 from arm64b/ceph-volmgr-err-handling
Enhancement of Ceph volume manager kmod detection
2018-08-09 06:25:32 -07:00
Travis Nielsen d331a3e6a4 Merge pull request #1999 from jcsp/wip-mds-caps
Fix client.admin's default MDS capabilities
2018-08-08 08:00:24 -06:00
John Spray 78a53870d1 Reduce mgr mon caps to "profile mgr"
This has been the correct style since luminous.  The
"allow *" version works fine but is more power than
needed.

Signed-off-by: John Spray <john.spray@redhat.com>
2018-08-07 12:53:18 +01:00
John Spray b6eab78d92 Grant mgr OSD and MDS caps
While the mgr can mostly do its job with just
mon caps, modules expect to also have access
to OSD and MDS daemons at will (e.g. for the dashboard
to display the MDS session list)

This change matches what other Ceph deployment tools do.

Signed-off-by: John Spray <john.spray@redhat.com>
2018-08-07 12:53:12 +01:00
John Spray a57434017d Fix client.admin's default MDS capabilities
Signed-off-by: John Spray <john.spray@redhat.com>
2018-08-07 12:46:29 +01:00
Dennis Chen ec84e6543c Return immediately when no valid node to run osd
We don't need to handle other osd(s) related tasks if there's
no valid nodes available in the cluster to run osd(s), log a
warning message to help user identify the cause of the issue.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-08-07 10:09:14 +08:00
travisn 1d928ecd36 osd: init container to initialize config at startup
Signed-off-by: travisn <tnielsen@redhat.com>
2018-07-31 14:39:53 -06:00
Dennis Chen 9cfafaa0a7 Enhancement of Ceph volume manager kmod detection
Current Ceph volume manager code doesn't take the builtin
kernel module into the account, so the `modinfo` will fail
in this case. Also, we need to add error handling code to
make sure the volume manager does work when proceeding to
continue, otherwise we will encounter the `rbd` related issue
in the following step even we have an artificial `agent` pod
in running state.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-07-31 16:56:40 +08:00
Blaine Gardner 3dbe54e7cc Undo spell fixes to generated code
Fixes #1962

I missed this change intended for PR #1952. Generated code should not be
modified.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-07-31 00:20:20 -06:00
Travis Nielsen 5e4fba2aec Merge pull request #1952 from SUSE/simple-linting
Fix spellcheck and trailing space/newline issues
2018-07-27 14:02:00 -06:00
Travis Nielsen add4bd2fd2 Merge pull request #1926 from galexrt/fix_1920
operator/osd: Use UpdateStrategy Recreate
2018-07-26 14:45:56 -06:00
Blaine Gardner fe5fb394c7 Fix spellcheck and trailing space/newline issues
Fix some basic spellcheck errors. Also remove trailing spaces and make
sure files have a newline (my editor does automatically).

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-07-26 11:36:09 -06:00
Huamin Chen c6f463d0e7 validate storage nodes before preparing osds
Signed-off-by: Huamin Chen <hchen@redhat.com>
2018-07-26 17:18:47 +00:00
Alexander Trost 56544c51d4 operator/osd: Use UpdateStrategy Recreate
This fixes issues with a new OSD Pod in the same Deployment coming up and
directly entering CrashLoopBackOff because the old OSD Pod hasn't been fully
terminated yet (released it's locks).

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-07-21 12:10:09 +02:00
Travis Nielsen cd3d85e1e3 Merge pull request #1908 from galexrt/fix_1907
osd: Truncate too long name for prepare job
2018-07-20 11:29:00 -06:00
Alexander Trost faddfb0184 Truncate too long name for ObjectMeta.Name
Resolves #1907

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-07-20 10:35:20 +02:00
Alexander Trost a7d002fe5c operator: Set min_size to dataChunkCount for ec pools
Resolves #1795

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-07-19 23:51:26 +02:00
Travis Nielsen 363e5ee58a Merge pull request #1892 from jcsp/wip-osd-remove-idempotent
Fix retry of OSD deletion
2018-07-17 15:47:00 -06:00
John Spray bed1d01e9c Fix retry of OSD deletion
Previously, if this failed mid-way it would then throw
an exception at the first operation when retrying (because it's
trying to reweight an OSD that might not be in the map any more)

Signed-off-by: John Spray <john.spray@redhat.com>
2018-07-17 14:08:23 +01:00
Alexander Trost cdb708f6a1 Apply placement to OSD Pod Spec
Resolves #1895

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-07-17 14:01:08 +02:00
Travis Nielsen d93bd7603f Merge pull request #1878 from travisn/mgr-ownerref
Set the OwnerReference on the mgr deployment
2018-07-13 08:35:48 -06:00
travisn dc6f3c099c mgr: set the ownerreference to the crd
Signed-off-by: travisn <tnielsen@redhat.com>
2018-07-12 16:40:01 -06:00
Huamin Chen ac2c949cae omit empty osd objectstore
Signed-off-by: Huamin Chen <hchen@redhat.com>
2018-07-11 17:25:10 -04:00
Travis Nielsen f06fee6d3c Merge pull request #1874 from travisn/osd-health-debug
Debug logging for the osd health check
2018-07-11 13:07:48 -06:00
Jared Watts 5331907c6d Merge pull request #1857 from jbw976/ceph-beta
Rook project versioning and status update, Ceph graduates to Beta
2018-07-11 10:29:15 -07:00
Jared Watts a7ce7a361b Merge pull request #1766 from galexrt/1708
osd: skip wait loop when initial PGs is 0
2018-07-11 09:38:22 -07:00