Commit Graph
7974 Commits
Author SHA1 Message Date
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 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
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
Travis Nielsen 2c092ad679 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>
(cherry picked from commit d55669293a)
2021-12-03 18:29:50 +00:00
Blaine Gardner 863e830e8f build: generate CSV from helm charts
In order to generate common.yaml from Helm charts, we have to have a
different way of generating CSV than from meta-comments in common.yaml.
This implementation changes what appears in the CSV's RBAC somewhat, but
these changes could be considered bugs fixed by using the new Helm
generation method.
- a few PSP related resources are removed from CSV
- resources related to 'rook-ceph-purge-osd' Job are added to CSV
- ClusterRoleBinding 'rook-ceph-object-bucket' is added to CSV

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 2c4b66957c)
2021-12-03 16:40:20 +00:00
mergify[bot] 8b8783339d Merge pull request #9302 from rook/mergify/bp/release-1.8/pr-9290
osd: Honor skipUpgradeChecks for OSDs (backport #9290)
2021-12-02 21:58:59 +00:00
mergify[bot] 1a1cfa6874 Merge pull request #9301 from rook/mergify/bp/release-1.8/pr-9280
helm: Use a more explicit value for ingress for K8s 1.18 (backport #9280)
2021-12-02 21:56:29 +00:00
Travis Nielsen 8a334de51c 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>
(cherry picked from commit 32a884ac18)
2021-12-02 21:33:22 +00:00
Tom Hellier ca32fd16a8 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>
(cherry picked from commit 2ca93e547c)
2021-12-02 21:32:07 +00:00
Travis Nielsen 9ad1446dd7 Merge pull request #9291 from travisn/release-1.8.0-beta.0
build: Set release version to v1.8.0-beta.0
v1.8.0-beta.0
2021-12-01 15:58:55 -07:00
Travis Nielsen 7b9b30a7d9 build: set release version to v1.8.0-beta.0
For the new 1.8 branch we create the new v1.8.0-beta.0 manifests
and doc updates.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-01 15:23:28 -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
Tom Hellier caa2c8323b helm: addition of mountOptions into storage class configuration
It should be possible to configure the storage classs mount options, this follows
the helm code used by the ceph-csi project for their ceph-csi-rbd and ceph-csi-cephfs
helm charts.

Signed-off-by: Tom Hellier <me@tomhellier.com>
2021-12-01 10:50:42 +00:00
Humble Chirammal e5f5d9be9f csi: mount host's /etc/selinux in node plugins
This commit introduces a new configuration option for
ceph csi driver to enable hostpath mounting of /etc/selinux
directory from the cluster node where csi plugin pods are
running, which inturn help the csi driver to specify
selinux-related mount options like context.

Ref# https://github.com/ceph/ceph-csi/issues/2295

The default value for this configuration is true and if cluster
nodes are running without selinux enabled, an admin can deploy
csi pods by specifying this option to `false` which skip the
host path mounting for the csi pods.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2021-12-01 11:13:26 +05:30
Sébastien Han 4ec496dd47 Merge pull request #9273 from travisn/upgrade-test-from-1.7
test: Upgrade integration test from 1.7 to master
2021-11-30 17:05:49 +01:00
Blaine Gardner 5e784a73ac Merge pull request #9223 from BlaineEXE/use-yq-v4
build: use yq for RBAC yaml parsing
2021-11-30 08:35:30 -07:00
Sébastien Han 4a5ba05777 Merge pull request #9272 from olivierbouffet/fix9100
object: fix search user in objectstore
2021-11-30 16:23:30 +01:00
Blaine Gardner 51fc36d591 build: prevent parallel build collisions for ceph
Prevent parallel build collisions in the 'ceph' image by building
prerequisites for the builds before running the build targets in
parallel. Build targets can collide and try to create the same target at
nearly the same time, causing failures.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-11-30 08:09:24 -07:00
Blaine Gardner 113e2f849d build: use yq for RBAC yaml parsing
Use yq instead of Python for parsing RBAC from the Helm chart. We need
to use yq v4.14.1 or higher to fix yq's handling of the yaml header
markers ('---'). Update the Makefile's yq version to v4, which also
requires updating the script to update the CRDs. This was quite easy.

It is very difficult, however, to change the version of yq used by the
CSV generating/parsing scripts, which already used their own yq
download. Continue using yq v3 for this.

In order to make sure the scripts are using the right version of yq, add
basic validation to them to verify they are running v3 or v4 as required
for their operation.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-11-30 08:08:08 -07:00
Travis Nielsen d9ac8ce490 test: upgrade integration test from 1.7 to master
The upgrade integration test was from rook v1.6 to the latest master.
This was necessary until we are ready for the v1.8 release, from which
time we want to focus the upgrade testing from v1.7 to the latest
master.

The duplication in the test CRs and other resources is now reduced
by the upgrade calling a thin wrapper to forward a call to the
master version of the resource. When a new feature is added that
needs to be differentiated from the previous version, the method
then can be implemented instead of wrapping the master implementation.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-11-30 08:07:42 -07:00
Sébastien Han decc481d40 Merge pull request #8740 from leseb/examples-layout
core: change directory layout
2021-11-30 16:02:37 +01:00
Sébastien Han c890710b63 core: change directory layout
As per discussion, proposing a new layout for the charts/yaml/olm files.

./deploy
├── charts
│   ├── rook-ceph
│   │   └── templates
│   └── rook-ceph-cluster
│       └── templates
├── examples
│   ├── csi
│   │   ├── cephfs
│   │   └── rbd
│   ├── flex
│   ├── monitoring
│   ├── pre-k8s-1.16
└── olm
    └── assemble

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-11-30 09:12:53 +01:00
Olivier Bouffet 5edeff4df8 object: fix search user in objectstore
avoid failed reconcile when multiple multisite objectstore are configured

Signed-off-by: Olivier Bouffet <olivier.bouffet@infomaniak.com>
2021-11-29 20:38:22 +01:00
Sébastien Han 83f7c2be87 Merge pull request #9259 from parth-gr/deviceClass
osd: update existing OSDs with deviceClass
2021-11-29 18:06:08 +01:00
parth-gr cbe505d122 osd: update existing OSDs with deviceClass
If we apply useAllNodes to false for the current deployment,
the OSDs should get updated with the individual nodes values and config,
The deviceClass was not updating to the existing OSDs because there was
bug in the check.
The check osdInfo.DeviceClass == "" which should be
checked like this osdInfo.DeviceClass == "None"

Updated the code so OSDs can make use of the devices present

Signed-off-by: parth-gr <paarora@redhat.com>
2021-11-29 21:40:02 +05:30
Sébastien Han bf662ec7b9 Merge pull request #9264 from leseb/fix-9151
cephfs-mirror: various fixes for random bootstrap peer import errors
2021-11-29 15:45:14 +01:00
Sébastien Han bd962e3e85 Merge pull request #9104 from BlaineEXE/nfs-restart-with-configmap
nfs: restart nfs servers when configmap is updated
2021-11-26 17:06:16 +01:00
Sébastien Han d8a8b05c1f cephfs-mirror: use combined output to possibly catch peer import error
By adding a combined output to the executor we might be able to fetch more
error messages.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-11-26 15:53:30 +01:00
Sébastien Han 7f7a72d941 core: add the ability to execute ceph commands with a combined output
Sometimes Ceph uses a different standard output to return errors or
merges standard error to standard out. So let's allow some commands to
return both in the output.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-11-26 15:52:49 +01:00