Commit Graph
13292 Commits
Author SHA1 Message Date
Sébastien Han e5ce6abac0 core: continue and create an initial cluster info or fail
Let's catch the correct error when no cluster info exists yet. If we
have another error, we fail the orchestration and try again. This could
help up catching small API hiccups for example.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-12-08 17:31:44 +01:00
Sébastien Han 4f1a2d47a4 core: fix error message
Let's have a more accurate and correct error message that reflects what
the failing function tried to do.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-12-08 17:30:49 +01:00
Sébastien Han fdd243d3de core: always return nil on error
We should always return a nil pointer of clusterInfo if
CreateOrLoadClusterInfo() returns an error.

Closes: https://github.com/rook/rook/issues/9314
Signed-off-by: Sébastien Han <seb@redhat.com>
2021-12-08 17:30:07 +01:00
Sébastien Han 0a918814ea core: bump to ceph 16.2.7
ceph 16.2.7 is out so let's use it in our manifests.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-12-08 17:24:56 +01:00
Blaine Gardner e98959cce0 docs: update NFS docs
NFS docs need to be updated to reflect changes between Octopus and
Pacific, how users are affected, how NFS is configured differently
between the Ceph versions, and how to upgrade from one Ceph version to
the other.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-12-08 09:14:53 -07:00
Travis Nielsen 8e55dd9d41 pool: update the desired failure domain when changed
The failure domain is baked into the crush rule that is
created for a pool. To allow for an updated failure domain
on the pool, create a new crush rule specific for that
failure domain and update the pool with the new rule.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-08 08:10:53 -07:00
Sébastien Han 122ff34d11 Merge pull request #9342 from travisn/upgrade-toolbox-spec
test: Upgrade test to update the toolbox spec
2021-12-08 09:13:03 +01:00
Travis Nielsen 1e9d4cc31f test: upgrade test to update the toolbox spec
The toolbox spec changed from 1.7 to 1.8 due to the removal
of tini from the image. The upgrade test was failing on
k8s 1.18 due to this issue.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-07 17:00:22 -07:00
Travis Nielsen 3d69e10ac4 Merge pull request #8452 from subhamkrai/ec-file-layout
mds: create EC pool as secondary pool
2021-12-07 15:47:01 -07:00
Travis Nielsen b79950f726 Merge pull request #9337 from travisn/helm-upgrade-doc
docs: Clarify helm chart version upgrades
2021-12-07 15:07:31 -07:00
Blaine Gardner 7045fd3b69 Merge pull request #9316 from BlaineEXE/generate-common-from-helm
build: generate common.yaml from helm charts
2021-12-07 15:06:28 -07:00
Travis Nielsen 1002c6fd2e docs: clarify helm chart version upgrades
Since the cluster helm chart was created in v1.7, the new helm
chart specifies the ceph image, so we clarify the upgrade
doc with the latest info.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-07 14:09:45 -07:00
Blaine Gardner bcc7d3e541 build: generate common.yaml from helm charts
Generate deploy/examples/common.yaml from Helm charts. There were still
a few differences between common.yaml and the Helm charts. Where there
were differences we assume common.yaml was the most up-to-date.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-12-07 13:54:27 -07:00
Travis Nielsen c953032d09 Merge pull request #8678 from parth-gr/Recommended-labels
core: create rook resources with k8s recommended labels
2021-12-07 11:53:33 -07:00
Blaine Gardner d9806a8ec9 Merge pull request #9317 from BlaineEXE/upgrade-docs
docs: revise upgrade doc for Rook v1.8
2021-12-07 09:30:20 -07:00
Yuval Lifshitz f2b065a3ae rgw: refactor bucket notification code
this should make sure code reuse between the OBC label controller and
the CephBucketNotification controller.
done as part of the cleanup work from:
https://github.com/rook/rook/pull/8426

this also include adding unit tests for:
- topic controller
- notification controller
- obc label controller

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2021-12-07 18:24:46 +02:00
Travis Nielsen 399eb17e84 Merge pull request #9332 from parth-gr/rbac-sort
build: updated locale for rbac generation
2021-12-07 09:24:02 -07:00
Blaine Gardner 922ecbf53a docs: revise upgrade doc for Rook v1.8
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-12-07 09:15:56 -07:00
Sébastien Han 90c063240a Merge pull request #9327 from leseb/check-helm
build: check for the existence of helm
2021-12-07 16:25:02 +01:00
parth-grandBlaine Gardner blaine.gardner@redhat.com 3647dec90f build: updated locale for rbac generation
Currently there was an issue related to sorting
files in Rbac generation in different platforms
Updated the locale to LC_ALL=C so rbac generation
can done correctly

Closes: https://github.com/rook/rook/issues/9331
Co-authored-by: Blaine Gardner blaine.gardner@redhat.com
Signed-off-by: parth-gr <paarora@redhat.com>
2021-12-07 20:32:27 +05:30
parth-gr 0a86d26b2e core: create rook resources with k8s recommended labels
Adding Recommended Labels on the resources created by rook
    and using Recommended Labels in the helm chart,
    for better visuals and management of k8s object

Closes: https://github.com/rook/rook/issues/8400
Signed-off-by: parth-gr <paarora@redhat.com>
2021-12-07 18:16:44 +05:30
Sébastien Han 1f33859048 Merge pull request #9312 from travisn/truncate-job-name
Truncate job name of the osd prepare job further to avoid pod generation failure on K8s 1.22
2021-12-07 10:06:27 +01:00
Sébastien Han 21e9243780 Merge pull request #9315 from yuvalif/ceph-mark-notifications-experimental
rgw: add note that bucket notifications are experimental
2021-12-07 10:03:39 +01:00
Sébastien Han e0fd2a7cb3 build: check for the existence of helm
Let's fail nicely if the helm command is not available.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-12-07 09:52:31 +01:00
Yuval Lifshitz cd0cc8fa1c rgw: add note that bucket notifications are epxerimental
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2021-12-07 10:41:46 +02:00
subhamkrai 5bb29f1a21 mds: create EC pool as secondary pool
When creating EC fs, create replicated pool as primary
pool and ec pool as secondary pool, creating ec pool
as primary is not encouraged and it will lead to failure.

Also, changing the pool name in storageclass-ec file.

Closes: https://github.com/rook/rook/issues/8210
Signed-off-by: subhamkrai <srai@redhat.com>
2021-12-07 07:44:54 +05:30
Travis Nielsen 5f44b1c7e8 Merge pull request #9321 from travisn/mergify-strict
bot: Mergify deprected the strict merge option
2021-12-06 15:49:30 -07:00
Travis Nielsen 1fbe2fcc42 Merge pull request #9319 from b-ranto/wip-rbf
build: run mv outside the OLM_CATALOG_DIR
2021-12-06 15:30:54 -07:00
Travis Nielsen 27ba1467cd bot: mergify deprected the strict merge option
The strict merge option was not being used and anyway
has been depcrecated by the mergify bot.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-06 15:10:00 -07:00
Boris Ranto 4cb8bb3bec build: run mv outside the OLM_CATALOG_DIR
The command needs to be run outside the OLM_CATALOG_DIR as it already
contains that directory in its paths.

Signed-off-by: Boris Ranto <branto@redhat.com>
2021-12-06 22:54:05 +01:00
Travis Nielsen 9d2aa1f6bd test: generate long node name depending on test suite
The generation of a long node name in the integration tests was
being done based on the k8s version. In the past, older K8s versions
did not support the changing name. Now it's more maintainable if
we generate the long name depending on the test suite.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-06 08:03:56 -07:00
Travis Nielsen ee83ca74af osd: truncate osd prepare job names further
In K8s 1.22 there is a bug in the job name generation that
the job name is truncated an additional 10 characters. This can cause an issue
in the generated pod name if it then ends in a non-alphanumeric character. In that case,
we more aggressively generate a hashed job name.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-06 08:02:04 -07:00
Travis Nielsen 117229a6b7 Merge pull request #9282 from travisn/failover-arbiter
mon: Set stretch tiebreaker reliably during failover
2021-12-03 11:28:42 -07:00
Blaine Gardner fc7740489a Merge pull request #9304 from BlaineEXE/debug-ceph-makefile
build: do not use cross build container for ceph
2021-12-03 11:12:58 -07:00
Blaine Gardner 243a47bfc4 build: do not use cross build container for ceph
Do not use the cross build container when building, publishing, and
promoting rook/ceph images. It is no longer needed, and its complexity
can add flakiness.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-12-03 11:06:21 -07:00
Blaine Gardner 130252e8ce Merge pull request #9279 from BlaineEXE/sort-common.yaml
docs: sort common.yaml
2021-12-03 09:27:19 -07:00
Travis Nielsen 2efa571c93 Merge pull request #9280 from TomHellier/test-helm-on-multiple-versions
helm: Use a more explicit value for ingress for K8s 1.18
2021-12-02 14:30:12 -07:00
Travis Nielsen 8c60f6f5f9 Merge pull request #9292 from travisn/backport-mergify-1.8
bot: Enable backports to release-1.8
2021-12-02 14:29:45 -07:00
Blaine Gardner aba199fc4c docs: sort common.yaml example
In anticipation of generating common.yaml from the Helm charts, sort
common.yaml using the same script used to sort the output from Helm
charts.

This was done using the flow here:
```
cat build/rbac/common.yaml.header > new-common.yaml
cat deploy/examples/common.yaml | build/rbac/keep-rbac-yaml.sh >> new-common.yaml
mv new-common.yaml deploy/examples/common.yaml
```

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-12-02 14:24:14 -07:00
Travis Nielsen d55669293a mon: set stretch tiebreaker reliably during failover
The failover of the arbiter mon in a stretch cluster was sometimes
failing due to the new tiebreaker not being set in ceph.
Rook would repeatedly try to remove the old tiebreaker mon
and keep failing because the new tiebreaker had not been set.
Now we make setting the tiebreaker idempotent in case the operator
restarts in the middle of the operation or some other corner
case causes the expected tiebreaker to be set. In that case,
the next reconcile will also ensure the tiebreaker mon is
set as expected.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-02 12:50:07 -07:00
Travis Nielsen f7b9ca966e bot: enable backports to release-1.8
With the creation of the release-1.8 branch we enable
the mergify bot to open the backport PRs automatically
based on the backport-release-1.8 label.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-02 11:51:57 -07:00
Blaine Gardner 67e6220e85 Merge pull request #9200 from BlaineEXE/generate-csv-without-comments
build: generate CSV from helm charts
2021-12-02 10:42:50 -07:00
Jiffin Tony Thottan 7a9a7123a0 test: add more test cases for bucket notfication
Added following test cases for bucket notification integration test
suite:

* different order: OBC - Topic - Notification
* different order: OBC - Notification - Topic
* adding a label to an existing OBC
* deleting a label from an existing OBC

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2021-12-02 23:02:45 +05:30
Satoru Takeuchi bdbb97470d Merge pull request #9290 from travisn/skip-osd-checks
osd: Honor skipUpgradeChecks for OSDs
2021-12-02 09:47:07 +09:00
Tom Hellier 2ca93e547c helm: use a more explicit value for ingress
The networking.k8s.io/v1 api defines the backend differently
to networking.k8s.io/v1beta1 and extensions/v1beta1

Signed-off-by: Tom Hellier <me@tomhellier.com>
2021-12-01 23:39:52 +00:00
Travis Nielsen 32a884ac18 osd: honor skipUpgradeChecks for osds
Skipping upgrade checks was not being honored for OSDs.
Now the flag will be checked and allow the OSDs to be upgraded
without checking for the ok-to-stop condition.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-01 14:41:53 -07:00
Travis Nielsen baa67c8d5a Merge pull request #9287 from TomHellier/9286-add-mount-options-to-helm-chart
helm: addition of mountOptions into storage class configuration
v1.8.0-alpha.0
2021-12-01 10:19:35 -07:00
Sébastien Han 70fab7c042 Merge pull request #9288 from leseb/add-missing-crds
build: add missing topic and notification crd to csv
2021-12-01 18:08:21 +01:00
Travis Nielsen a700ecbfe1 Merge pull request #8547 from humblec/selinux
csi: mount host's /etc/selinux in node plugins
2021-12-01 08:59:45 -07:00
Sébastien Han b4a8b01c0e build: add missing topic and notification crd to csv
Add the missing CRDs as well as a check to prevent missing CRDs from the
CSV file.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-12-01 16:48:42 +01:00