bhouse-nexthop commented on PR #14914:
URL: https://github.com/apache/cloudstack/pull/14914#issuecomment-7258106916

   Tested on a KVM lab running a main (24.0) build. Primary storage is Ceph 
RBD. Each CKS cluster is Kubernetes 1.33.1 from an ISO built by 
`create-kubernetes-binaries-iso.sh` (it carries the v3.0.0 `manifest.yaml`), 1 
control and 1 worker node, created with `enablecsi=true`. The first cluster 
used the packaged `k8s-control-node.yml`. The second used the same file plus 
this change, and nothing else differed.
   
   Result: both runs passed all of their checks, 13 of 13 each. The control 
reproduces the bug, and the change fixes it.
   
   | Check | Without the change | With the change |
   |---|---|---|
   | `/opt/csi/manifest.yaml` on the control node has `apiGroup: 
rbac.authorization.k8s.io---` | yes | no |
   | `kubectl get csidriver csi.cloudstack.apache.org` | NotFound | found |
   | `kubectl get clusterrolebinding cloudstack-csi-snapshotter-binding` | 
NotFound | found |
   | Management server logged "CSI files missing. Adding them now" (first 
`deploy-csi-driver` run failed) during the create | yes | no |
   | Cluster state | Running | Running |
   | CSI controller (7/7) and node (3/3) pods | Running | Running |
   | PVC on a StorageClass with a custom disk offering bound, pod with it 
mounted | Running | Running |
   | VolumeSnapshot with class `cloudstack-snapshot` | readyToUse | readyToUse |
   
   The snapshot works in both runs, as the corrected description says: 
`cloudstack-csi-controller-role` already grants the snapshot permissions to the 
same ServiceAccount. Without the change the cluster reaches Running even though 
the CSI deploy failed.
   
   Rendered control node user data: 25,809 bytes before, 26,138 bytes with the 
change.
   
   Both clusters, with their volumes and snapshots, were deleted afterwards.
   
   Not tested: 4.22, and an ISO without the CSI files (the download fallback in 
`deploy-csi-driver`, which this change doesn't touch).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to