Skip to content

Reproducer single node openshift (SNO)#3129

Draft
danpawlik wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
danpawlik:reproducer-single-node-openshift
Draft

Reproducer single node openshift (SNO)#3129
danpawlik wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
danpawlik:reproducer-single-node-openshift

Conversation

@danpawlik
Copy link
Contributor

@danpawlik danpawlik commented Jul 15, 2025

This commit allows reproducer to create OpenShift cluster using Single Node OpenShift (SNO) feature.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 15, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@softwarefactory-project-zuul
Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch from 759fb06 to 5f8cc00 Compare July 15, 2025 11:11
@softwarefactory-project-zuul
Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch 5 times, most recently from f084fce to e8a0800 Compare July 16, 2025 15:57
@danpawlik danpawlik changed the title Reproducer single node openshift Reproducer single node openshift (SNO) Jul 17, 2025
@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch 3 times, most recently from 30e7632 to bd59400 Compare July 17, 2025 17:43
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/5dc22fa6d6bf4c44bb15fb3bb7940af0

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 35m 59s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 09m 23s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 20m 19s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 38s
cifmw-pod-pre-commit FAILURE in 7m 51s
✔️ build-push-container-cifmw-client SUCCESS in 21m 07s
cifmw-molecule-devscripts FAILURE in 10m 41s
✔️ cifmw-molecule-reproducer SUCCESS in 15m 00s

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch 3 times, most recently from c1aa015 to 4ac17c1 Compare July 18, 2025 12:09
@danpawlik
Copy link
Contributor Author

Still WIP, there is an issue with ingress that raises few issues later.
Even export NODES_PLATFORM="none" does not help. Very helpful would be to make reverse engineering of a CI job that uses SNO_IPV4 scenario, but can not find it.

@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/7e909c7819764fc3a6ece0e75bd495f0

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 41m 20s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 13m 20s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 26m 00s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 55s
cifmw-pod-pre-commit FAILURE in 7m 55s
✔️ build-push-container-cifmw-client SUCCESS in 15m 36s
✔️ cifmw-molecule-devscripts SUCCESS in 10m 05s
✔️ cifmw-molecule-reproducer SUCCESS in 13m 42s

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch 2 times, most recently from 2c89737 to 7a1c6c6 Compare July 22, 2025 09:01
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/58af74d994354186bc474744505368bc

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 39m 02s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 09m 32s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 23m 18s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 13s
cifmw-pod-pre-commit FAILURE in 7m 53s
✔️ build-push-container-cifmw-client SUCCESS in 16m 41s
✔️ cifmw-molecule-devscripts SUCCESS in 10m 43s
✔️ cifmw-molecule-reproducer SUCCESS in 14m 04s

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch from 7a1c6c6 to 80c32c3 Compare July 22, 2025 11:14
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/7b7fc5d03ff34d2cb09473f40f04bdaf

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 45m 19s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 10m 25s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 23m 43s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 54s
cifmw-pod-pre-commit FAILURE in 7m 57s
✔️ build-push-container-cifmw-client SUCCESS in 20m 16s
✔️ cifmw-molecule-devscripts SUCCESS in 10m 03s
✔️ cifmw-molecule-reproducer SUCCESS in 14m 37s

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

This PR is stale because it has been for over 15 days with no activity.
Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Aug 7, 2025
@danpawlik
Copy link
Contributor Author

danpawlik commented Aug 14, 2025

Seems PoC of SNO is almost working, without using reproducer or devscript role.
Example execution using nightly build:

cat << 'EOF' > pre.sh
sudo sed -i 's@metalink=https://mirrors.centos.org/metalink?repo=centos-baseos-$stream&arch=$basearch&protocol=https,http@baseurl=http://mirror.stream.centos.org/9-stream/
BaseOS/$basearch/os/@g' /etc/yum.repos.d/centos.repo

sudo sed -i 's@metalink=https://mirrors.centos.org/metalink?repo=centos-appstream-$stream&arch=$basearch&protocol=https,http@baseurl=http://mirror.stream.centos.org/9-stre
am/AppStream/$basearch/os/@g' /etc/yum.repos.d/centos.repo

sudo dnf update -y
sudo dnf install -y git make wget jq libvirt qemu-kvm tar
# https://github.com/openshift-metal3/dev-scripts/blob/master/agent/README.md
sudo setfacl -m u:qemu:rx /home/zuul
echo 'user = "+0"' | sudo tee -a /etc/libvirt/qemu.conf

# enable nested virt
sudo sed -i 's/#options kvm_intel nested=1/options kvm_intel nested=1/g' /etc/modprobe.d/kvm.conf

echo "Now reboot the host..."
sudo reboot
EOF

cat << 'EOF' > execute.sh
sudo swapoff -a

git clone https://github.com/openshift-metal3/dev-scripts /home/zuul/src/github.com/openshift-metal3/dev-scripts

# workaround for only 8 vcpus
sed -i 's/MASTER_VCPU=8/MASTER_VCPU=20/g' /home/zuul/src/github.com/openshift-metal3/dev-scripts/common.sh

# it should have: ci_token  pull_secret.json
cp -a ~/secrets/* /home/zuul/src/github.com/openshift-metal3/dev-scripts/


cat << 'EOL' > /home/zuul/src/github.com/openshift-metal3/dev-scripts/config_$(whoami).sh


#!/bin/bash

# OpenShift Container Platform configuration template
# Refer https://github.com/openshift-metal3/dev-scripts/blob/master/config_example.sh
#
set +x
export CI_TOKEN=$(cat /home/zuul/src/github.com/openshift-metal3/dev-scripts/ci_token)
set -x

if [ -z $CI_TOKEN ]; then
    echo "no ci token"
    exit 1
fi

export OPENSHIFT_RELEASE_TYPE="ga"
export OPENSHIFT_VERSION="4.18.3"
export CLUSTER_NAME="ocp"
export BASE_DOMAIN="openstack.lab"
export NTP_SERVERS="ntp.nask.pl"
export AGENT_E2E_TEST_SCENARIO=SNO_IPV4
export NUM_MASTERS=1
export NUM_WORKERS=0

export MASTER_VCPU=20
export MASTER_MEMORY=32000
EOL

curl -LO https://downloads-openshift-console.apps.ci.l2s4.p1.openshiftapps.com/amd64/linux/oc.tar
tar xaf oc.tar
sudo mv oc /usr/local/bin/

cd /home/zuul/src/github.com/openshift-metal3/dev-scripts/

echo "Now run `make agent`"
make agent
EOF

then:

pre.sh
# reboot

execute.sh

NOTE: if you are doing that on VM, make sure that the disk is not Virtio, but SCSI virtio. It will give you a lot more performance.

@github-actions github-actions bot removed the Stale label Aug 15, 2025
@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch from 384908c to 519d08a Compare March 16, 2026 10:01
@softwarefactory-project-zuul
Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3129,519d08a00aa82c6404a460e73009cb5a9e919624

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch from 519d08a to c2709d1 Compare March 16, 2026 10:16
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ef6363362ce846a482cb8fe2ebb39cf2

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 47m 22s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 22m 18s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 33m 46s
cifmw-crc-podified-edpm-baremetal-minor-update RETRY_LIMIT in 26m 52s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 51s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 51s
cifmw-pod-pre-commit FAILURE in 8m 55s
✔️ cifmw-molecule-devscripts SUCCESS in 10m 30s
✔️ cifmw-molecule-dnsmasq SUCCESS in 4m 42s
✔️ cifmw-molecule-libvirt_manager SUCCESS in 40m 18s
✔️ cifmw-molecule-reproducer SUCCESS in 15m 07s

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch 2 times, most recently from ffea16a to eba408a Compare March 16, 2026 16:21
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/04285e97cfeb4e62b9ab2721782c1084

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 03m 38s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 20m 03s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 23m 13s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 1h 51m 46s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 46s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 25s
cifmw-pod-pre-commit FAILURE in 7m 55s
✔️ cifmw-molecule-devscripts SUCCESS in 11m 56s
✔️ cifmw-molecule-dnsmasq SUCCESS in 4m 48s
✔️ cifmw-molecule-libvirt_manager SUCCESS in 42m 41s
✔️ cifmw-molecule-reproducer SUCCESS in 15m 22s

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch 2 times, most recently from 11ff469 to 963e0b5 Compare March 17, 2026 11:00
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ce4784e9bd064ebfb7cdf571e64a14a3

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 19m 02s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 23m 32s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 24m 16s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 2h 04m 48s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 27s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 10m 36s
cifmw-pod-pre-commit FAILURE in 10m 04s
✔️ cifmw-molecule-devscripts SUCCESS in 10m 22s
✔️ cifmw-molecule-dnsmasq SUCCESS in 4m 50s
cifmw-molecule-libvirt_manager FAILURE in 12m 59s
✔️ cifmw-molecule-reproducer SUCCESS in 32m 02s

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch 3 times, most recently from 923666c to 5e48556 Compare March 17, 2026 16:48
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/9989bd6f434140da86f5e64bee999a00

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 08m 27s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 22m 07s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 28m 47s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 1h 54m 59s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 49s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 58s
cifmw-pod-pre-commit FAILURE in 8m 14s
✔️ cifmw-molecule-devscripts SUCCESS in 10m 44s
✔️ cifmw-molecule-dnsmasq SUCCESS in 4m 36s
✔️ cifmw-molecule-libvirt_manager SUCCESS in 41m 18s
✔️ cifmw-molecule-networking_mapper SUCCESS in 5m 09s
✔️ cifmw-molecule-reproducer SUCCESS in 35m 36s

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch from 5e48556 to 66b2b81 Compare March 17, 2026 21:07
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/a386dca847044655a941edc31173253a

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 15m 07s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 21m 20s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 33m 31s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 2h 02m 20s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 52s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 03s
cifmw-pod-pre-commit FAILURE in 8m 37s
✔️ cifmw-molecule-devscripts SUCCESS in 11m 22s
✔️ cifmw-molecule-dnsmasq SUCCESS in 4m 52s
✔️ cifmw-molecule-libvirt_manager SUCCESS in 42m 03s
cifmw-molecule-networking_mapper FAILURE in 5m 05s
✔️ cifmw-molecule-reproducer SUCCESS in 15m 02s

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch from 66b2b81 to cef0a47 Compare March 18, 2026 07:14
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/b3e0afb36ace4291860fe78cfe6fedca

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 05m 50s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 18m 50s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 23m 09s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 1h 53m 18s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 06s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 10m 37s
cifmw-pod-pre-commit FAILURE in 9m 35s
✔️ cifmw-molecule-devscripts SUCCESS in 11m 46s
✔️ cifmw-molecule-dnsmasq SUCCESS in 4m 40s
✔️ cifmw-molecule-libvirt_manager SUCCESS in 42m 17s
cifmw-molecule-networking_mapper FAILURE in 4m 54s
✔️ cifmw-molecule-reproducer SUCCESS in 14m 39s

@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch 7 times, most recently from 3395b31 to 6b67fbb Compare March 19, 2026 12:24
The console feature is not used in CI. We can disable it.

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
@danpawlik danpawlik force-pushed the reproducer-single-node-openshift branch from 6b67fbb to 619aa2a Compare March 19, 2026 12:33
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/e2746b6ce09740cbb5736bd8326c084c

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 10m 51s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 23m 16s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 26m 12s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 1h 57m 45s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 40s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 01s
cifmw-pod-pre-commit FAILURE in 8m 55s
✔️ cifmw-molecule-devscripts SUCCESS in 10m 40s
✔️ cifmw-molecule-dnsmasq SUCCESS in 4m 39s
✔️ cifmw-molecule-libvirt_manager SUCCESS in 41m 39s
✔️ cifmw-molecule-reproducer SUCCESS in 14m 37s

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants