Commit Graph
8211 Commits
Author SHA1 Message Date
mergify[bot] 9bf7e3510e Merge pull request #9744 from rook/mergify/bp/release-1.8/pr-9690
test: update bucket notification integration test with http server (backport #9690)
2022-02-16 13:07:00 +00:00
Jiffin Tony Thottan b32014dc34 test: update bucket notification integration test with http server
Add test cases to check notification is received by http server. For
this a sample http server https://github.com/thotz/pythonwebserver is
used.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 438cf6abf1)
2022-02-16 17:28:12 +05:30
mergify[bot] ada4e6d5db Merge pull request #9752 from rook/mergify/bp/release-1.8/pr-9728
object: fix backend path for transit engine for rgw kms (backport #9728)
2022-02-16 09:48:38 +00:00
Jiffin Tony Thottan 54ae1b1789 object: fix backend path for transit engine for rgw kms
The backend path was added with additional `transit` to it.
Also added PR test case to check transit engine

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 0b4cdb992b)
2022-02-16 09:21:49 +00:00
mergify[bot] 012c802df0 Merge pull request #9745 from rook/mergify/bp/release-1.8/pr-9718
osd: Write log message when node is being skipped (backport #9718)
2022-02-15 15:42:39 +00:00
Travis Nielsen 27a2d34b39 osd: write log message when node is being skipped
When a node is being skipped for creation of OSDs, log a message
that indicates whether it was from the node being unschedulable,
the node is not ready, or the node does not meet the placement
criteria specified in the cluster CR.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 4570204a1d)
2022-02-15 15:15:19 +00:00
mergify[bot] 3dba59e426 Merge pull request #9739 from rook/mergify/bp/release-1.8/pr-9713
csi: cleanup csi driver resources when zero cephclusters exist (backport #9713)
2022-02-15 05:31:43 +00:00
Rakshith R 2027e7f8ef csi: cleanup csi driver resources when zero cephclusters exist
This commit modifies ceph-csi controller to be able to cleanup
ceph-csi deployment,daemonset,services & csidriver objects
when no cephcluster exists.

It makes the following changes:
- redundant check for tp.DriverNamePrefix is removed.
- retry to start drivers within reconcile loop is removed,
  controller will retry in case of error now.
- stopDrivers() will now return error in case of failure.
- predicate delete func will now respond to cephcluster deletion.
- CSI resources will be cleaned up when cephcluster does not exist.

Fixes: #9697

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 1e9920fb85)
2022-02-14 20:31:41 +00:00
mergify[bot] 44a324f834 Merge pull request #9738 from rook/mergify/bp/release-1.8/pr-9735
csi: add comment after namespace (backport #9735)
2022-02-14 16:44:57 +00:00
subhamkrai ea20e13bc7 csi: add comment after namespace
adding comment after namespace to identify if
it cluster namespace or operator namespace.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 5b49d36167)
2022-02-14 16:16:59 +00:00
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