wso2 / wso2/open-cloud-datacenter

bootstrap: switch internet-connectivity probe to actual HTTPS endpoints

Open
#34 0 comments 0 reactions 1 assignee View on GitHub

@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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.