wso2 / wso2/open-cloud-datacenter
bootstrap: switch internet-connectivity probe to actual HTTPS endpoints
@HiranAdikari is already working on this.
Since Apr 7, 2026.
- Dominant language
- HCL
- Stars
- 19
- Forks
- 15
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 4
Description
Summary
The internet-readiness loop in modules/bootstrap/templates/cloud-init.yaml.tpl currently probes http://1.1.1.1 (plain HTTP), but the bootstrap flow immediately depends on HTTPS access to https://get.rke2.io and https://dl.k8s.io.
Using a plain HTTP probe makes the gate too narrow for the real dependency and can either hang unnecessarily (e.g. if plain HTTP is blocked but HTTPS is fine) or pass too early (e.g. if only plain HTTP is reachable but HTTPS endpoints are not).
Proposed change
Replace the current until loop with one that probes the actual HTTPS endpoints the bootstrap script needs:
until curl -fsSL --connect-timeout 5 https://get.rke2.io > /dev/null && \
curl -fsSL --connect-timeout 5 https://dl.k8s.io > /dev/null; do
echo "Still waiting for internet (https://get.rke2.io / https://dl.k8s.io)..." > /dev/console
sleep 5
done
This ensures the loop exits only when the endpoints the script actually depends on are reachable.
References
- PR: https://github.com/wso2/open-cloud-datacenter/pull/33
- Review comment: https://github.com/wso2/open-cloud-datacenter/pull/33#discussion_r3046575121
- Requested by: @HiranAdikari
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.