Skip to content

Conversation

steveb
Copy link
Contributor

@steveb steveb commented Mar 20, 2025

This change adapts the IPv6 lab Single-node-Openshift script to support being installed in an IPv4-only environment which is as similar as possible to CRC. This allows development to occur against a SNO environment when required without bringing up a whole IPv6 lab.

Not counting download time SNO installs in 37 minutes vs 7 for CRC, so we can't simply switch to SNO in all scenarios, but making it easier to develop with is desirable in some circumstances.

CRC actually supports microshift OKD variants too. This change also adds a CRC_PRESET variable to allow switching CRC variants but this is left undocumented because microshift is missing components such as OLM which the development workflow requires.

This change adapts the IPv6 lab Single-node-Openshift script to support
being installed in an IPv4-only environment which is as similar as
possible to CRC. This allows development to occur against a SNO
environment when required without bringing up a whole IPv6 lab.

Not counting download time SNO installs in 37 minutes vs 7 for CRC, so
we can't simply switch to SNO in all scenarios, but making it easier to
develop with is desirable in some circumstances.

CRC actually supports microshift OKD variants too. This change also
adds a CRC_PRESET variable to allow switching CRC variants but this is
left undocumented because microshift is missing components such as OLM
which the development workflow requires.
@openshift-ci openshift-ci bot requested review from abays and karelyatin March 20, 2025 22:06
Copy link
Contributor

openshift-ci bot commented Mar 20, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: steveb
Once this PR has been reviewed and has the lgtm label, please assign olliewalsh for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@steveb steveb requested review from dprince and hjensas March 20, 2025 22:07
get_rhcos_live_iso
create_install_iso
create_dnsmasq_config
if [ "${IP_VERSION}" = "v6" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to set up something for DNS still?

When I tried this, I get this error:

INFO Waiting up to 20m0s (until 11:46AM CET) for the Kubernetes API at https://api.sno.lab.example.com:6443... 
ERROR Attempted to gather ClusterOperator status after wait failure: listing ClusterOperator objects: Get "https://api.sno.lab.example.com:6443/apis/config.openshift.io/v1/clusteroperators": dial tcp: lookup api.sno.lab.example.com on 127.0.0.53:53: no such host 
INFO Use the following commands to gather logs from the cluster 
INFO openshift-install gather bootstrap --help    
ERROR Bootstrap failed to complete: Get "https://api.sno.lab.example.com:6443/version": dial tcp: lookup api.sno.lab.example.com on 127.0.0.53:53: no such host 
ERROR Failed waiting for Kubernetes API. This error usually happens when there is a problem on the bootstrap host that prevents creating a temporary control plane. 

I think we just set for the IPv4 case?

address=/apps.sno.lab.example.com/${SNO_HOST_IP}
host-record=api.sno.lab.example.com,${SNO_HOST_IP}
host-record=api-int.sno.lab.example.com,${SNO_HOST_IP}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants