bhouse-nexthop commented on PR #14598: URL: https://github.com/apache/cloudstack/pull/14598#issuecomment-7259618537
Tested on a KVM lab running a main (24.0) build that includes this change. Primary storage is Ceph RBD. The CKS cluster is Kubernetes 1.34.7, 1 control and 2 worker nodes, created without the CSI driver and without autoscaling. The PR targets 4.22; the three scripts are the same on both branches apart from this change. On the control node I ran the 4.22 versions of `autoscale-kube-cluster` and `deploy-csi-driver` first, then the versions from this PR, as root, the way CloudStack runs them. Result: 21 of 21 checks passed (gates included). | Case | 4.22 script | This PR | |---|---|---| | `autoscale-kube-cluster --disable`, no autoscaler deployed | `ERROR: no such option --disable`, exit 1 | exit 0 | | `autoscale-kube-cluster -d`, no autoscaler deployed | `deployments.apps "cluster-autoscaler" not found`, exit 1 | exit 0 | | `autoscale-kube-cluster` with neither `-e` nor `-d` | | `one of -e/--enable or -d/--disable is required`, exit 1 | | `deploy-csi-driver`, release URL that returns 404 | the 9-byte `Not Found` page saved as `/opt/csi/snapshot-crds.yaml` and applied | `curl: (22) ... 404`, the download error, exit 1; no file and no temporary file left | | `deploy-csi-driver`, no files under `/opt/csi` | downloads only `snapshot-crds.yaml`, then fails: `the path "/opt/csi/manifest.yaml" does not exist` | | | `deploy-csi-driver` run after that, with only `snapshot-crds.yaml` left behind | | downloads `manifest.yaml` too (18 KB) and applies both; the CSI controller deployment is created | The apply of the v3.0.0 `manifest.yaml` still exits 1 with `CSIDriver in version "v1" cannot be handled as a CSIDriver: strict decoding error: unknown field "roleRef", unknown field "subjects"`. That comes from a missing line break before a `---` separator in the published manifest (#14913), not from this PR: the rest of the manifest is applied. The CSI objects were deleted afterwards and `/opt/csi` was put back as it was. Not tested: `deploy-provider` (same download change) and enabling autoscaling, which needs the autoscaler manifest from the internet; the enable path only changed its download handling. -- 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]
