Commit Graph
8003 Commits
Author SHA1 Message Date
Blaine Gardner dad8a7ef3b docs: add instructions to upgrade admission controller
In 1.8, the admission controller has merged with the operator and the
operator needs an emptyDir and a volume mount to store the webhook
certificates.

Co-authored-by: Blaine Gardner <blaine.gardner@redhat.com>
Co-authored-by: Sébastien Han <seb@redhat.com>

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 6c09de619f)
2021-12-09 19:41:55 +00:00
mergify[bot] 934a5755e2 Merge pull request #9371 from rook/mergify/bp/release-1.8/pr-9169
test: add more test cases for bucket notfication (backport #9169)
2021-12-09 16:18:36 +00:00
Jiffin Tony Thottan 971f9b6435 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>
(cherry picked from commit 7a9a7123a0)
2021-12-09 15:55:02 +00:00
mergify[bot] 1469c3c3b4 Merge pull request #9369 from rook/mergify/bp/release-1.8/pr-9357
helm: rook-ceph chart: Set up webhook cert volume (backport #9357)
2021-12-09 14:10:18 +00:00
Omar Pakker fbe102d5ef helm: rook-ceph chart: Set up webhook cert volume
The 1.8 (beta) relies on a volume when using the admission controller,
which is missing from the Helm chart.
This change sets up the volume so the operators starts properly
when set up to run the admission controller.

Closes: https://github.com/rook/rook/issues/9349
Signed-off-by: Omar Pakker <Omar007@users.noreply.github.com>
(cherry picked from commit 5841077549)
2021-12-09 13:41:11 +00:00
mergify[bot] 6e3e479c41 Merge pull request #9367 from rook/mergify/bp/release-1.8/pr-8776
ceph: removing fs_name arg from daemon status cmd (backport #8776)
2021-12-09 13:19:01 +00:00
parth-gr bdd9032f59 mds: removing fs_name arg from daemon status cmd
If cephVersion>= 16.2.7, we run
ceph fs snapshot mirror daemon status
otherwise we run
ceph fs snapshot mirror daemon status <fs_name>

Updating the cmd so both the ceph version can run successfully

Closes: https://github.com/rook/rook/issues/8458
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit f7082c9efa)
2021-12-09 12:53:24 +00:00
mergify[bot] 4f2eb1dc54 Merge pull request #9364 from rook/mergify/bp/release-1.8/pr-9362
nfs: make rados.namespace optional (backport #9362)
2021-12-09 07:18:23 +00:00
Blaine Gardner bbcc1f2a5f nfs: make rados.namespace optional
Fix the CephNFS spec.rados API specifiation to be clear that spec.rados
is optional for all Ceph v16 versions, including that
spec.rados.namespace is optional.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 0bbab6dfc9)
2021-12-09 00:00:24 +00:00
mergify[bot] 976bf46aa1 Merge pull request #9360 from rook/mergify/bp/release-1.8/pr-9150
ceph: bucket notifications refactoring work (backport #9150)
2021-12-08 23:41:47 +00:00
Yuval Lifshitz 83529d5cf1 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>
(cherry picked from commit f2b065a3ae)
2021-12-08 23:12:31 +00:00
mergify[bot] 6f4fc0ef0d Merge pull request #9361 from rook/mergify/bp/release-1.8/pr-9356
nfs: remove poolConfig (backport #9356)
2021-12-08 23:09:27 +00:00
Blaine Gardner 400e39e994 nfs: remove poolConfig
Remove the poolConfig in CephNFS to prevent different CephNFS CRs from
contending to change the replication spec of the default NFS pool.

Resolves #9355

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit aaecc93315)
2021-12-08 22:35:47 +00:00
Travis Nielsen bf7a6d6e5b Merge pull request #9354 from rook/mergify/bp/release-1.8/pr-9347
core: always return nil clusterInfo on failure (backport #9347)
2021-12-08 11:22:42 -07:00
mergify[bot] 3ceaaaaff0 Merge pull request #9352 from rook/mergify/bp/release-1.8/pr-9343
core: bump to ceph 16.2.7 (backport #9343)
2021-12-08 17:31:44 +00:00
mergify[bot] f2fd2b7d6c Merge pull request #9350 from rook/mergify/bp/release-1.8/pr-9214
pool: Update the desired failure domain when changed (backport #9214)
2021-12-08 17:28:42 +00:00
Sébastien Han e58939a2a0 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>
(cherry picked from commit e5ce6abac0)
2021-12-08 17:08:43 +00:00
Sébastien Han 0e28e48c8d 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>
(cherry picked from commit 4f1a2d47a4)
2021-12-08 17:08:42 +00:00
Sébastien Han 60fb7f0ae9 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>
(cherry picked from commit fdd243d3de)
2021-12-08 17:08:42 +00:00
Blaine Gardner f0e19ea309 Merge pull request #9351 from rook/mergify/bp/release-1.8/pr-9281
docs: update NFS docs (backport #9281)
2021-12-08 10:05:37 -07:00
Sébastien Han 87cca6f63c 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>
(cherry picked from commit 0a918814ea)
2021-12-08 17:04:20 +00:00
Blaine Gardner 1894d9afd7 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>
(cherry picked from commit e98959cce0)
2021-12-08 17:01:10 +00:00
Travis Nielsen 00eaccbd48 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>
(cherry picked from commit 8e55dd9d41)
2021-12-08 17:00:25 +00:00
Sébastien Han 5d39b55d8e Merge pull request #9338 from rook/mergify/bp/release-1.8/pr-9316
build: generate common.yaml from helm charts (backport #9316)
2021-12-08 11:56:36 +01:00
Sébastien Han 1f123ff06c Merge pull request #9346 from rook/mergify/bp/release-1.8/pr-9342
test: Upgrade test to update the toolbox spec (backport #9342)
2021-12-08 11:56:09 +01:00
Sébastien Han 1f7786a9aa Merge pull request #9341 from rook/mergify/bp/release-1.8/pr-8452
mds: create EC pool as secondary pool (backport #8452)
2021-12-08 11:55:06 +01:00
Sébastien Han dc3b41222e Merge pull request #9333 from rook/mergify/bp/release-1.8/pr-9332
build: updated locale for rbac generation (backport #9332)
2021-12-08 10:01:49 +01:00
mergify[bot] 09cb6cff84 Merge pull request #9340 from rook/mergify/bp/release-1.8/pr-9337
docs: Clarify helm chart version upgrades (backport #9337)
2021-12-08 08:33:56 +00:00
Travis Nielsen 0d9edd6566 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>
(cherry picked from commit 1e9d4cc31f)
2021-12-08 08:13:22 +00:00
subhamkrai 81df284a6d 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>
(cherry picked from commit 5bb29f1a21)
2021-12-07 22:47:23 +00:00
Travis Nielsen 5641d10f3a 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>
(cherry picked from commit 1002c6fd2e)
2021-12-07 22:07:55 +00:00
Blaine Gardner 757960ba28 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>
(cherry picked from commit bcc7d3e541)
2021-12-07 22:07:09 +00:00
mergify[bot] 56857393b3 Merge pull request #9335 from rook/mergify/bp/release-1.8/pr-8678
core: create rook resources with k8s recommended labels  (backport #8678)
2021-12-07 19:21:16 +00:00
parth-gr f8a7c5bcb4 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>
(cherry picked from commit 0a86d26b2e)
2021-12-07 18:54:28 +00:00
mergify[bot] 8022734bac Merge pull request #9328 from rook/mergify/bp/release-1.8/pr-9315
rgw: add note that bucket notifications are experimental (backport #9315)
2021-12-07 16:54:43 +00:00
Blaine Gardner 0ca9928471 Merge pull request #9334 from rook/mergify/bp/release-1.8/pr-9317
docs: revise upgrade doc for Rook v1.8 (backport #9317)
2021-12-07 09:37:25 -07:00
Blaine Gardner bc187217dd docs: revise upgrade doc for Rook v1.8
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 922ecbf53a)
2021-12-07 16:30:34 +00:00
parth-gr bf19a68b49 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>
(cherry picked from commit 3647dec90f)
2021-12-07 16:24:30 +00:00
mergify[bot] 25e1f967f4 Merge pull request #9330 from rook/mergify/bp/release-1.8/pr-9312
Truncate job name of the osd prepare job further to avoid pod generation failure on K8s 1.22 (backport #9312)
2021-12-07 14:51:04 +00:00
Travis Nielsen 9d6e09616c 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>
(cherry picked from commit 9d2aa1f6bd)
2021-12-07 09:06:45 +00:00
Travis Nielsen 661d7be29e 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>
(cherry picked from commit ee83ca74af)
2021-12-07 09:06:44 +00:00
Yuval Lifshitz a4ccaba18f rgw: add note that bucket notifications are epxerimental
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
(cherry picked from commit cd0cc8fa1c)
2021-12-07 09:04:08 +00:00
Travis Nielsen c58765b527 Merge pull request #9323 from travisn/backport-olm-build
build: Run mv outside the OLM_CATALOG_DIR (backport #9319)
2021-12-06 15:56:48 -07:00
Boris Ranto dfe97b3d2f 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>
(cherry picked from commit 4cb8bb3bec)
2021-12-06 15:53:12 -07:00
Blaine Gardner 1292df0d9d Merge pull request #9311 from rook/mergify/bp/release-1.8/pr-9304
build: do not use cross build container for ceph (backport #9304)
2021-12-03 14:06:25 -07:00
Blaine Gardner db73c699e1 Merge pull request #9310 from BlaineEXE/bp-9279-to-1.8
docs: sort common.yaml example (Backport #9279)
2021-12-03 14:06:12 -07:00
Blaine Gardner 7506567b27 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>
(cherry picked from commit 243a47bfc4)
2021-12-03 20:51:11 +00:00
Blaine Gardner ee02199292 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-03 13:45:29 -07:00
Blaine Gardner 2044733610 Merge pull request #9307 from rook/mergify/bp/release-1.8/pr-9200
build: generate CSV from helm charts (backport #9200)
2021-12-03 13:31:30 -07:00
mergify[bot] 67587e0450 Merge pull request #9309 from rook/mergify/bp/release-1.8/pr-9282
mon: Set stretch tiebreaker reliably during failover (backport #9282)
2021-12-03 18:57:47 +00:00