snapshot related cephfs and rbd provisioner error messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Gabriel de Araújo Cabral |
Bug Description
Brief Description
-----------------
The platform-integ-apps snapshotter containers throw error messages, about 8,000 times per day per node.
Severity
--------
Minor
Steps to Reproduce
------------------
Apply platform-integ-apps and see the error logs of csi-snapshotter container.
Use the command "kubectl logs -n kube-system <cephFS or RBD pod> -c csi-snapshotter"
Expected Behavior
------------------
No error messages
Actual Behavior
----------------
Error messages
Reproducibility
---------------
100% reproducible
System Configuration
-------
One node system, Two node system, Multi-node system, Dedicated storage
Branch/Pull Time/Commit
-------
Timestamp/Logs
--------------
I1112 20:51:36.080907 1 reflector.go:255] Listing and watching *v1.VolumeSnaps
E1112 20:51:36.081694 1 reflector.go:138] github.
I1112 20:52:26.660060 1 reflector.go:255] Listing and watching *v1.VolumeSnaps
Workaround
----------
Create the CRDs and the snapshot-controller manually
Changed in starlingx: | |
assignee: | nobody → Gabriel de Araújo Cabral (g-cabral) |
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.9.0 stx.storage |
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/902811 /opendev. org/starlingx/ ansible- playbooks/ commit/ 99d1b973269fbe8 05596c80d25a101 57855cde3c
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 99d1b973269fbe8 05596c80d25a101 57855cde3c
Author: Gabriel de Araújo Cabral <email address hidden>
Date: Wed Dec 6 16:35:22 2023 -0300
Enable support for PVC snapshots by default during bootstrap
Previously, the “enable_ volume_ snapshot_ support” variable was false
by default. As a result, when running the bootstrap playbook, the
CRDs, and the snapshot-controller were not created to support taking
snapshots of PVCs.
With the change, when running the bootstrap playbook, the CRDs and
the snapshot-controller will be created by default according to the
K8s version on the system.
The main benefit of this change is that CSI apps will not need to
worry about creating CRDs and the snapshot-controller to be able to
take snapshots of PVCs, in addition to avoiding possible problems,
since the resource creation process and the version used will be in
common for all CSI apps.
Furthermore, if the user is not going to use these resources, he can
choose to run the bootstrap manually by passing the variable to
false as a parameter to not create.
Currently, the version of the CRDs and snapshot-controller present controller: v2.0.0- rc2' image. Due to this, the creation of
in the system is very old, referring to k8s 1.19 with the
'snapshot-
VolumeSnapshots does not occur correctly with new versions of some
CSI apps.
Therefore, the current change depends on the review below, where
the CRDs and snapshot-controller are updated according to the
K8s version, working as expected.
Depends-On: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/887797
Test Plan:
PASS: Build an image with the code change
PASS: AIO-SX fresh install + Check if the CRDs
and snapshot-controller are created
PASS: AIO-DX fresh install + Check if the CRDs
and snapshot-controller are created
Closes-bug: 2045897
Change-Id: I81c34bd8745a7c 06b0fce5fd20a43 bd8be73d982
Signed-off-by: Gabriel de Araújo Cabral <email address hidden>