Commit Graph
8201 Commits
Author SHA1 Message Date
mergify[bot] 17fa2ca577 Merge pull request #9737 from rook/mergify/bp/release-1.8/pr-9734
rgw: fix variable assignment (backport #9734)
2022-02-14 14:45:21 +00:00
Sébastien Han d233fd2293 rgw: fix variable assignment
We need to explicitly assign the ceph version within each scope since
one function returns a pointer and one is not.
Previously, the `desiredCephVersion` was recreated in the scope of the
`else` and thus a new variable `desiredCephVersion` was initialized (see
the `:=`).
Now, each scope creates and assign to clusterInfo a `desiredCephVersion`
value.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 7f32461b8f)
2022-02-14 14:18:55 +00:00
Sébastien Han c6a69a53bb Merge pull request #9730 from rook/mergify/bp/release-1.8/pr-9724
object: do not check for upgrade on external mode (backport #9724)
2022-02-14 11:03:34 +01:00
Sébastien Han dfe0601005 object: do not check for upgrade on external mode
The object child controller should not compare versions if the object
store is external. The current version comparison is using the
cmdreporter to check the ceph version of the image in the CephCluster spec.
In external mode, this image is not set so the cmdreporter fails.
Also, this check is only valid for converged mode, so external mode
should be skipped.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 856b14e60a)
2022-02-11 08:33:44 +00:00
Travis Nielsen 33ab3f1cb3 Merge pull request #9726 from travisn/release-1.8.5
build: Update release version to v1.8.5
v1.8.5
2022-02-10 12:11:25 -07:00
Travis Nielsen e41e081427 build: update release version to v1.8.5
With the patch release the example manifests and docs are
updated to v1.8.5

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-02-10 11:08:24 -07:00
Travis Nielsen 34971277a4 Merge pull request #9723 from rook/mergify/bp/release-1.8/pr-9702
csi: bump registar image to v2.5.0 (backport #9702)
2022-02-10 10:26:36 -07:00
mergify[bot] fa6f6cb119 Merge pull request #9725 from rook/mergify/bp/release-1.8/pr-9715
core: do not dereference a non-pointer (backport #9715)
2022-02-10 17:25:12 +00:00
Sébastien Han 6cfe02e0e3 core: do not dereference a non-pointer
In this case `oldMappingToGo` and `newMappingToGo` were not pointers so
there is nothing to dereference.
This happens when the monitors endpoints configmap is updated, but only
on the pool and file controllers. They are watching for changes on that
configmap so that they can reconcile and upate the bootstrap peers token
when replication is enabled.

Closes: https://github.com/rook/rook/issues/9714
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 32998cbda4)
2022-02-10 16:56:49 +00:00
mergify[bot] e54ae30dd5 Merge pull request #9722 from rook/mergify/bp/release-1.8/pr-9720
osd: add namespace in vault client (backport #9720)
2022-02-10 16:13:58 +00:00
Mathieu Parent 6c7235943a csi: bump registar image to v2.5.0
Upgrades image:

- k8s.gcr.io/sig-storage/csi-node-driver-registrar: v2.4.0 -> v2.5.0

Detailed changelog:

- https://github.com/kubernetes-csi/node-driver-registrar/blob/v2.5.0/CHANGELOG/CHANGELOG-2.5.md

Signed-off-by: Mathieu Parent <mathieu.parent@insee.fr>
(cherry picked from commit 405dcaadac)
2022-02-10 15:59:48 +00:00
Sébastien Han 1da2b827ec osd: add namespace in vault client
If the KMS connection details for Vault have a VAULT_NAMESPACE we must
use it when building the vault client to auto-detect the KV internal
version.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 23832c8cc7)
2022-02-10 15:47:49 +00:00
mergify[bot] 79cf1a9455 Merge pull request #9717 from rook/mergify/bp/release-1.8/pr-9624
doc: Adds doc for implementation of csi-addons (backport #9624)
2022-02-09 16:50:53 +00:00
yati1998 c63f6101d4 docs: adds doc for implementation of csi-addons
This commit adds the documentation for implementation
of csi-addons.

Signed-off-by: yati1998 <ypadia@redhat.com>
(cherry picked from commit 045cc87e03)
2022-02-09 16:22:37 +00:00
mergify[bot] 2c0fb1434e Merge pull request #9708 from rook/mergify/bp/release-1.8/pr-9696
object: Update object pool properties during reconcile (backport #9696)
2022-02-07 15:02:09 +00:00
Travis Nielsen f2f7dc7bad object: update pool properties during reconcile
The reconcile was skipping updating most pool properties for
object stores. The implementation of pools between the file,
object, and pool controllers had some duplicate code, so
this change also factors out the common code for better
reuse in a single place. Anytime a pool is created or updated,
it will now consistently update all the pool properties
that are expected to be modifiable.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 221b3dfb72)
2022-02-07 14:34:48 +00:00
mergify[bot] 9c90c89c6b Merge pull request #9707 from rook/mergify/bp/release-1.8/pr-9703
csi: make create and get process separate for csi users (backport #9703)
2022-02-07 10:55:48 +00:00
parth-gr cf2a30d746 csi: make create and get process separate for csi users
Currently if we run external-script and user already exit,
it fails to create/run same user again if the caps are upgraded,
so we need to check first if user is already present.
And for upgrading user we can do upgrade after this
PR: https://github.com/rook/rook/pull/9609 will get merged.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2048458

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 4f43f2d93e)
2022-02-07 10:31:11 +00:00
Satoru Takeuchi 9d2d208906 Merge pull request #9704 from rook/mergify/bp/release-1.8/pr-9643
docs: add CSI section to Multus design doc (backport #9643)
2022-02-05 18:39:18 +09:00
Blaine Gardner 08cd6be85b docs: add CSI section to Multus design doc
Add a section detailing a design to handle the volume-operations-blocked
on CSI restart issue when running with Multus.

See: https://github.com/rook/rook/issues/8085

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 2bf1e1f07b)
2022-02-04 18:19:56 +00:00
Travis Nielsen 30be214db8 Merge pull request #9700 from travisn/release-1.8.4
build: Set release version to v1.8.4
v1.8.4
2022-02-03 16:25:10 -07:00
Travis Nielsen 176c10f7ad build: set release version to v1.8.4
With the patch release we update the example manifests to v1.8.4.
At the same time the upgrade tests are updated to use the latest
v1.7.11.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-02-03 15:46:30 -07:00
Travis Nielsen d085aca824 Merge pull request #9676 from rook/mergify/bp/release-1.8/pr-9672
csi: skip validation when installing snapshotter (backport #9672)
2022-02-03 15:32:46 -07:00
mergify[bot] 5da1a481ca Merge pull request #9699 from rook/mergify/bp/release-1.8/pr-9694
subvolumegroup: handle external mode (backport #9694)
2022-02-03 17:28:27 +00:00
Sébastien Han fccec1af0b subvolumegroup: handle external mode
If the cluster is external, users might still want to take advantage of
the ceph-csi configmap configuration for ceph filesystem subvolume
group. This configuration is handled by the controller whenever a
cephFilesystemSubVolumeGroup CR is created or deleted.
If the present cluster CephCluster is external, the controller
(cephFilesystemSubVolumeGroup) won't handle creation nor deletion of sub volume groups.
It just assumes that the given name is correct and the controller goes ahead with the
ceph-csi configuration.

Closes: #9551
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 49f75c8ec3)
2022-02-03 17:00:37 +00:00
Travis Nielsen 8fc67f7dbb Merge pull request #9677 from rook/mergify/bp/release-1.8/pr-9578
rgw: gateway deployment strategy RollingUpdate on Pacific (backport #9578)
2022-02-01 13:22:51 -07:00
mergify[bot] 27cbe17fe8 Merge pull request #9683 from rook/mergify/bp/release-1.8/pr-9680
csi: fix snapshot tests (backport #9680)
2022-01-31 15:33:09 +00:00
Madhu Rajanna f6a3417bf4 csi: fix snapshot CRD and controller cleanup oder
cleanup the CRD and controller in defer
to make sure the CRD and controller are
removed as filesystem/block test also
install CRD and controller separately.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 44353167d7)
2022-01-31 15:02:56 +00:00
Madhu Rajanna 53ea431695 csi: cover error cases in snapshot ready check
Currently, we sleep only if the snapshot is not ready
and try again, this covers only the happy path.
the checks might fail to get the snapshot object
or the `.status.readyToUse` might not be set yet.
First sleep and then try to check snapshot is
ready or not, if we do this we cover all the cases
when checking the snapshot ready status.
Changed sleep internal to do incremental sleep to
give more time for tests.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 97e5b78c11)
2022-01-31 15:02:55 +00:00
Sébastien Han e2957e284c Merge pull request #9674 from rook/mergify/bp/release-1.8/pr-9663
core: dereference pointer before trying to compare with deepequal (backport #9663)
2022-01-28 16:15:13 +01:00
micalgenus e3e070ca51 rgw: gateway deployment strategy rolling on Pacific
When the strategy type of deployment is Recreate, from the moment the end is
started until the new pod is normally running, there is no pod in the
kubernetes service endpoints, so it goes to the service unavailable state.

Therefore, it is necessary to change it to `type: RollingUpdate` instead of
`type: Recreate` so that rolling updates can be made without downtime.

Before Pacific, creating a deployment as much as the instance was okay,
but after Pacific, the replicas was increased in one deployment, so rolling
updates were set up one by one as in the previous version.

Signed-off-by: micalgenus <micalgenus@gmail.com>
(cherry picked from commit a68151e2f2)
2022-01-28 15:12:57 +00:00
Madhu Rajanna 9b217884ac csi: skip validation when installing snapshotter
in kubernetes 1.18 we are seeing CRD validation
errors when installing with kubectl, adding
validate=false to skip the validation and
to make tests works with kubernetes 1.18

closes: #9670

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit c40ff24410)
2022-01-28 14:47:51 +00:00
Sébastien Han ce9b3ee2f2 core: dereference pointer before trying to compare with deepequal
Prior to this, we were comparing a pointer (the memory address) with a
struct. This was obviously always failing and returned false. We must
dereference the pointer to access the data contained at that memory
location.

Closes: https://github.com/rook/rook/issues/9544
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 5404ec13a2)
2022-01-28 10:20:40 +00:00
Travis Nielsen 4c41b5ea07 Merge pull request #9662 from rook/mergify/bp/release-1.8/pr-9658
osd: Merge all osd resources including custom (backport #9658)
2022-01-27 13:10:44 -07:00
Travis Nielsen ddc86b8416 Merge pull request #9666 from rook/mergify/bp/release-1.8/pr-9665
csi: bump csi snapshotter image to v5 (backport #9665)
2022-01-27 13:08:31 -07:00
mergify[bot] fb05bc2c80 Merge pull request #9668 from rook/mergify/bp/release-1.8/pr-9661
helm: add annotations and labels for VSC (backport #9661)
2022-01-27 19:20:23 +00:00
Travis Nielsen 6ca7da2bb2 csi: add patch permission to volumesnapshotcontents
The update to the snaphots 5.0 controller requires
rbac for patching the volumesnapshotcontents.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 3e4edc0f1d)
2022-01-27 12:14:05 -07:00
Madhu Rajanna 8885db9b86 csi: check deployment for snapshot controller
The external-snapshotter was deployed as statefulset
in 4.x and now its deployed as a deployment. updated
the check in CI to make sure deployment is created.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 53e12d687f)
2022-01-27 12:13:54 -07:00
Madhu Rajanna 954624b5fa helm: add annotations and labels for VSC
add support to specify annotations and
labels for the volumesnapshotclass.

closes: #9655

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 08dadaa486)
2022-01-27 18:52:22 +00:00
Madhu Rajanna 1d7fea8f52 csi: bump csi snapshotter image to v5
updating the csi-snapshotter and dependencies
to v5.0.1 released version.

Co-authored-by: Mathieu Parent <mathieu.parent@insee.fr>
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit cf46615688)
2022-01-27 09:32:45 -07:00
Travis Nielsen 0645de1d08 Merge pull request #9664 from rook/mergify/bp/release-1.8/pr-9651
Bump csi resizer and volume replication images (backport #9651)
2022-01-27 09:30:28 -07:00
Mathieu Parent 2cd55d7bd6 csi: bump csi resizer and volume replication images
Upgraded images:

- k8s.gcr.io/sig-storage/csi-resizer: v1.3.0 -> v1.4.0
- quay.io/csiaddons/volumereplication-operator: v0.1.0 -> v0.3.0

Detailed changelogs:

- https://github.com/kubernetes-csi/external-resizer/blob/release-1.4/CHANGELOG/CHANGELOG-1.4.md
- https://github.com/csi-addons/volume-replication-operator/tree/v0.2.0
- https://github.com/csi-addons/volume-replication-operator/tree/v0.3.0

Signed-off-by: Mathieu Parent <mathieu.parent@insee.fr>
(cherry picked from commit 88a449d09c)
2022-01-27 09:05:16 -07:00
Travis Nielsen 83f627a2e3 osd: merge all osd resources including custom
The merging of OSD resource limits and requests assumed
that only the cpu and memory resources needed to be merged.
It is also possible to set custom resource properties such
as intel.com/sriov_net_in: '1' for use with multus, so
the merging needs to be more general.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit f9ac966048)
2022-01-27 09:09:51 +00:00
mergify[bot] 560231ad14 Merge pull request #9657 from rook/mergify/bp/release-1.8/pr-9647
osd: allow for injecting extra env. variables via ConfigMap (backport #9647)
2022-01-26 16:53:38 +00:00
Radoslaw Zarzynski 98e9fe0fbc osd: allow for injecting extra env. variables via ConfigMap
This patch brings a mechanism to define arbitrary environment
variables in OSD containers (both prepare and main ones).
It bases on idea proposed by Sebastien Han to use an optional
`ConfigMap` instance named `aook-ceph-daemon-env-override`
as the source of these settings.

The need for the patch comes from the fact that, although
crimson finally exposes the same CLI interface as the classical
OSD, the broadly used development builds have ASan built in.
As ASan, by default, complains if it isn't the very first loaded
DSO, we need a way to set the `ASAN_OPTIONS` environment variable
to `verify_asan_link_order=0` to mitigate the early aborts.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit 17ca41f557)
2022-01-26 16:27:51 +00:00
mergify[bot] 46293b5fad Merge pull request #9656 from rook/mergify/bp/release-1.8/pr-9654
core: fix some nits  (backport #9654)
2022-01-26 15:34:52 +00:00
Sébastien Han 50d240234e core: add a break line before printing the ceph config
It's easier to read the config if there is a new line before instead
having a truncated version like:

```
2022-01-26 06:39:41.421373 D | cephclient: config file @ /etc/ceph/ceph.conf: [global]
fsid                = 0650a1d5-d688-4575-97fc-7b3052a8a3dd
mon initial members = a
mon host            = [v2:10.104.192.209:3300,v1:10.104.192.209:6789]

[client.admin]
keyring = /var/lib/rook/rook-ceph/client.admin.keyring
```

Now we have:

```
2022-01-26 06:39:41.421373 D | cephclient: config file @ /etc/ceph/ceph.conf:
[global]
fsid                = 0650a1d5-d688-4575-97fc-7b3052a8a3dd
mon initial members = a
mon host            = [v2:10.104.192.209:3300,v1:10.104.192.209:6789]

[client.admin]
keyring = /var/lib/rook/rook-ceph/client.admin.keyring
```

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 58c175de47)
2022-01-26 15:07:30 +00:00
Sébastien Han d6fd12e999 core: print the stdout on errors
If we fail fetching the ceph version let's also print the stdout since
ceph tends to put the error here too.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit e31e4b49b0)
2022-01-26 15:07:30 +00:00
mergify[bot] 9568850d3a Merge pull request #9650 from rook/mergify/bp/release-1.8/pr-9649
pool: Check for application already being set (backport #9649)
2022-01-25 23:03:12 +00:00
Travis Nielsen f35da8d9c4 pool: check for application already being set
If the pool application is already set, skip setting it again
to avoid a warning message being logged that it is already
set.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit e0cfb4fce6)
2022-01-25 22:39:48 +00:00