Commit Graph
7961 Commits
Author SHA1 Message Date
Blaine Gardner 83c05324ce ceph: remove unused crd permission from roles
Remove unused ability to modify CRDs from Rook cluster roles. Rook (as
an operator) should not have the ability to modify CRDs used by the
components it controls.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-09-14 12:52:06 -06:00
subhamkrai 038031ddbd ci: dry-run is deprecated and replaced with --dry-run=client
--dry-run is deprecated and replaced with --dry-run=client

Signed-off-by: subhamkrai <srai@redhat.com>
2021-09-14 16:13:27 +05:30
Santosh Pillai 7480f6ba62 ceph: reconcile osd pdb if allowed disruption is 0
Rook checks for down OSDs by checking the `ReadyReplicas` count
in the OSD deployement. When an OSD pod goes into CBLO due to
disk failure, there is a delay before this `ReadyReplicas` count
becomes 0. The deplay is very small but may result in rook missing
OSD down event. As a result no blocking PDBs will be created and
only default PDB with `AllowedDisruptions` count as 0 is available.
This PR tries to solve this. The OSD pdb reconciler will be
reconciled again if `AllowedDisruptions` count in the main
PDB is 0.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
2021-09-14 15:56:59 +05:30
Travis Nielsen 235d5a384b Merge pull request #8693 from travisn/cleanup-docs
docs: Refactor documentation for ceph provider
2021-09-13 11:25:22 -06:00
Travis Nielsen ac6a6d60ba Merge pull request #8699 from subhamkrai/update-script
build: use pkg/operator/ceph/csi/spec.go for csi images
2021-09-13 10:42:27 -06:00
Travis Nielsen 6b7062eda5 docs: refactor documentation for ceph provider
With the nfs and cassandra providers moving to their own repo
we can simplify the docs a bit. Some obsolete documentation
is also removed.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-09-13 10:40:47 -06:00
Travis Nielsen 661ed66f53 Merge pull request #8694 from travisn/commit-prefixes
bot: Add more ceph commit prefixes
2021-09-13 10:36:15 -06:00
Travis Nielsen a32b11c572 bot: add more ceph commit prefixes
With the storage providers moved to their own repo,
we add more possible prefixes for commits to the
ceph operator, including the ceph daemons and csi
driver.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-09-13 09:29:34 -06:00
Travis Nielsen 99811e52e1 Merge pull request #8267 from lyind/master
ceph: fix lvm osd db device check
2021-09-13 09:07:13 -06:00
subhamkrai 284dbc0a0e build: use pkg/operator/ceph/csi/spec.go for csi images
it has happened more than once that the manifests do not
reflect the images so now reading from `pkg/operator/ceph/csi/spec.go`
as this what code uses.

Closes: https://github.com/rook/rook/issues/8687
Signed-off-by: subhamkrai <srai@redhat.com>
2021-09-13 17:16:52 +05:30
Jonas Zeiger 0e72a7c2bf ceph: fix lvm osd db device check
Signed-off-by: Jonas Zeiger <jonas.zeiger@talpidae.net>
2021-09-13 12:19:16 +02:00
Sébastien Han 1df2e9372e Merge pull request #8685 from BlaineEXE/emphaize-unit-tests-in-contributor-guides
docs: emphasize unit tests in development guide
2021-09-13 10:03:44 +02:00
Travis Nielsen fee7e82416 docs: publish master docs to latest path
Rename the master docs to latest. This will be easier
to understand for users who are new to the project.
The url will also contain latest, which will be more
clear to reference instead of the master path. This
also follows the pattern of the ceph docs site.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-09-10 17:55:14 -06:00
Blaine Gardner dc3c84ef27 docs: emphasize unit tests in development guide
Emphasize unit tests in the development guide, and provide guidelines to
help contributors create good unit tests.

Also clarify that Rook's CI will run integration tests and that users
aren't expected to run integration tests locally.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-09-10 14:30:32 -06:00
Blaine Gardner 94eb4519a0 Merge pull request #8596 from subhamkrai/offline-installation
ci: image list for offline installation
2021-09-09 13:53:49 -06:00
Travis Nielsen 533cb6c07c Merge pull request #8674 from parth-gr/cluster-crd
docs: correct indentation for topologyKey
2021-09-09 12:46:11 -06:00
Travis Nielsen 0cd63aaf29 Merge pull request #8665 from travisn/roadmap-1.8
docs: Update ceph operator roadmap for v1.8
2021-09-09 12:34:24 -06:00
Travis Nielsen c5a55e6a88 docs: storage provider status mentions new repos
With the storage providers all moving to separate repos, we clarify
the status and location of each storage provider. Also, no need to
mention the deprecated storage providers anymore.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-09-09 12:23:48 -06:00
Travis Nielsen d93397ca55 docs: update ceph operator roadmap for v1.8
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-09-09 12:23:47 -06:00
Blaine Gardner eed91efdc2 Merge pull request #8667 from thotz/enhanceusernits
ceph: addressing nits from #8211
2021-09-09 12:10:51 -06:00
Blaine Gardner 91ec1ac4db docs: ceph: add peer spec migration to upgrade doc
Add a section to the upgrade doc instructing users to (and how to)
migrate `CephRBDMirror` `peers` spec to individual `CephBlockPools`.
Adjust the pending release notes to refer to the upgrade section now,
and clean up a few references in related docs to make sure users don't
miss important documentation.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-09-09 11:46:29 -06:00
Travis Nielsen d193a23f7e Merge pull request #8677 from leseb/fix-arrray
ci: fix pod list
2021-09-09 11:05:22 -06:00
Sébastien Han 3c1c3409b1 Merge pull request #8668 from Muyan0828/fix/osd-full-alert-query
ceph: fix CephOSDCriticallyFulla and CephOSDNearFull Alert Query
2021-09-09 19:01:06 +02:00
Travis Nielsen af63a36647 Merge pull request #8666 from hall/master
ceph: add networking.k8s.io/v1 Ingress chart compatability
2021-09-09 10:59:58 -06:00
Sébastien Han 0e961c4bdc ci: stop build 3 times
This time for real.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-09-09 17:51:03 +02:00
Sébastien Han 73c340ded7 ci: fix pod list
We should not use .items[0].metadata.name if the array length is 0. This
is the case when nothing has been initialized yet. Instead, we should
use .items[*].metadata.name, the wildcard ensures to always return 0
even if nothing is present yet.

Fixes: https://github.com/rook/rook/issues/8676
Signed-off-by: Sébastien Han <seb@redhat.com>
2021-09-09 17:24:56 +02:00
Sébastien Han 031be4be19 Merge pull request #8675 from subhamkrai/ok-continue
ceph: modify the log info when ok to continue fails
2021-09-09 17:22:13 +02:00
subhamkraiandZeaone 0657804491 ceph: modify the log info when ok to continue fails
correct typo in logging, it was showing `ok-to-stop`
instead of `ok-to-continue` when 'continueUpgradeAfterChecksEvenIfNotHealthy' is true

Co-Authored-by: Zeaone <zeaone@ZeaonedeMacBook-Pro.local>
Signed-off-by: subhamkrai <srai@redhat.com>
2021-09-09 19:42:06 +05:30
parth-grandFabio Nitto fdae56dd3b docs: correct indentation for topologyKey
fixed the incorrect indentation for topologyKey
in ceph-cluster-crd doc and storage-class-device-set doc

Co-authored-by: Fabio Nitto
Signed-off-by: parth-gr <paarora@redhat.com>
2021-09-09 19:33:50 +05:30
chengli f2c9793fca ceph: fix CephOSDCriticallyFulla and CephOSDNearFull Alert Query
Add hostname to CephOSDCriticallyFull and CephOSDNearFull rules's expr

Signed-off-by: chengli <chengli@alauda.io>
2021-09-09 21:58:14 +08:00
Travis Nielsen 3e14dbbb85 Merge pull request #8670 from leseb/print-output
ceph: print the output on errors
2021-09-09 07:32:21 -06:00
Bryton Hall 5e4ed30bc9 ceph: add networking.k8s.io/v1 Ingress chart compatability
Kubernetes cluster versions 1.22+ must use the v1 Ingress version.

Signed-off-by: Bryton Hall <email@bryton.io>
2021-09-09 09:11:49 -04:00
Sébastien Han b7f55362b2 ceph: print the output on errors
Sometimes the error does not tell much, so as `exit status 1` and
printing the output along returning the error is useful.

For instance, I saw a job failing with no osd and the prepare job had
those lines:

```
exec: Running command: lsblk /dev/sdb1 --bytes --nodeps --pairs ....
inventory: skipping device "sdb1". exit status 1
```

We need to understand more about the lsblk issue.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-09-09 12:42:01 +02:00
Jiffin Tony Thottan 50ecff8f13 ceph: addressing nits from #8211
Addressing remaining nits from the PR #8211

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2021-09-09 12:57:32 +05:30
Blaine Gardner 5b0785dde0 Merge pull request #8211 from thotz/enhancecephuser
ceph: add options for cephobjectstore user
2021-09-08 11:57:25 -06:00
Travis Nielsen af8b4c116b Merge pull request #8653 from JrCs/externalip-failover
ceph: use node externalIP if no internalIP defined
2021-09-08 09:07:25 -06:00
Sébastien Han f9e50d09b2 Merge pull request #8659 from leseb/fix-pool-deletion-multus
ceph: fix pool deletion when running on multus
2021-09-08 16:49:49 +02:00
JrCs c606f4c488 ceph: use node externalIP if no internalIP defined
In some cases node internalIP is not defined. Then use externalIP if it
exists.

Signed-off-by: JrCs <90z7oey02@sneakemail.com>
2021-09-08 16:26:05 +02:00
subhamkrai 7bc9a138f2 ci: image list for offline installation
create file tests/scripts/rook-ceph-image.txt which
will have list of images required for offline installation.

Closes: https://github.com/rook/rook/issues/6406
Signed-off-by: subhamkrai <srai@redhat.com>
2021-09-08 19:52:05 +05:30
Sébastien Han 4cb9b53487 ceph: fix pool deletion when running on multus
The ceph-block-pool controller was missing the network spec from the
cephcluster that contains all the details about networking.
So when the pool was deleting on multus the controller was not proxying
the rbd command to the mgr pod but executed the command in the operator
pod which does not have the network annotation and then connect to the
ceph cluster.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-09-08 16:10:31 +02:00
Sébastien Han 97155af393 Merge pull request #8655 from leseb/ci-failfast
ci: add failfast go flag to stop tests sooner (optional)
2021-09-08 15:36:28 +02:00
Sébastien Han 53ad7c73a1 ci: add failfast go flag to stop tests sooner (optionnal)
With the -failfast flag the tests will not continue when one of them
fails. This allows us to log in the runner and observe the exact state
of any failure.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-09-08 11:24:58 +02:00
Travis Nielsen 2983319b39 Merge pull request #8652 from anmolsachan/fix_cephMonQuorumAtRisk
ceph: fix CephMonQuorumAtRisk Alert Query
2021-09-07 11:39:21 -06:00
Jiffin Tony Thottan ca43800119 ceph: add options for cephobjectstore user
Adding options for quota, bucket limit, caps for the
`cephobjectstoreuser`.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2021-09-07 22:43:09 +05:30
Anmol Sachan a1efcd7617 ceph: fix CephMonQuorumAtRisk Alert Query
The updated query will work for single mon deployment and will work better for
deployments with five or more mons.

Signed-off-by: Anmol Sachan <anmol13694@gmail.com>
2021-09-07 21:27:45 +05:30
Sébastien Han 507c51baaa Merge pull request #8624 from leseb/debug-object
ci: fix object store test
2021-09-07 17:57:40 +02:00
Sébastien Han 8f42bee563 ci: fix object store test
We just need to wait longer when the status is not ready. We needed
another sleep otherwise the status was never nil and the loop went too
fast. See:

```
2021-09-02 16:29:11.372249 I | integrationTest:
2021-09-02 16:29:11.374427 I | integrationTest:
2021-09-02 16:29:11.377764 I | integrationTest:
2021-09-02 16:29:11.379950 I | integrationTest:
2021-09-02 16:29:11.382084 I | integrationTest:
2021-09-02 16:29:11.385383 I | integrationTest:
2021-09-02 16:29:11.388499 I | integrationTest:
2021-09-02 16:29:11.391301 I | integrationTest:
2021-09-02 16:29:11.393545 I | integrationTest:
2021-09-02 16:29:11.396249 I | integrationTest:
```

Signed-off-by: Sébastien Han <seb@redhat.com>

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-09-07 17:15:20 +02:00
Satoru Takeuchi d0366dc18a Merge pull request #8650 from kubealex/fix-versions-ref
fixed typo on version reference in comment
2021-09-06 15:43:35 +09:00
injninja fd158de68d docs: fix typo on cluster crd in kubernetes example
I fixed a generic version typo (v14 instead of v16) to keep the CRD description up to date

Signed-off-by: kubealex <al.rossi87@gmail.com>
2021-09-05 17:58:00 +02:00
Travis Nielsen 5d136ac13d Merge pull request #8636 from travisn/allow-even-mons
ceph: Allow an even number of mons
2021-09-03 09:00:15 -06:00