Skip to content

Instantly share code, notes, and snippets.

View ngopalak-redhat's full-sized avatar

Neeraj Krishna Gopalakrishna ngopalak-redhat

View GitHub Profile
make image
hack/build-image
No previous build
HEAD commit: adb087cee869e7e1c1efc33aab6a5766eaa7233b
podman build -t localhost/machine-config-operator:latest --no-cache . --label=io.openshift.build.commitauthor= --label=io.openshift.build.commitdate= --label=io.openshift.build.commitid= --label=io.openshift.build.commitmessage= --label=io.openshift.build.commitref= --label=vcs-ref=adb087cee869e7e1c1efc33aab6a5766eaa7233b --label=vcs-type=git --label=vcs-url=
[1/3] STEP 1/7: FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.20 AS rhel9-builder
[1/3] STEP 2/7: ARG TAGS=""
--> afbca5b1523c
[1/3] STEP 3/7: WORKDIR /go/src/github.com/openshift/machine-config-operator
--> e7f3075a685a
@ngopalak-redhat
ngopalak-redhat / gist:4d865f05539d0de671e05d8dee43517a
Created September 30, 2025 12:55
Test run for PSI with burstable pods
CONTAINER_RUNTIME_ENDPOINT="unix:///var/run/crio/crio.sock" FOCUS="\[Feature:KubeletPSI\]" SKIP="\[Flaky\]|\[Benchmark\]|\[Feature:Eviction\]|\[Feature:NodeSwap\]|\[Feature:DynamicResourceAllocation\]|\[Feature:HugePages\]|\[Feature:PodLevelResources\]" TEST_ARGS='--kubelet-flags="--fail-cgroupv1=true --cgroup-driver=systemd --cgroups-per-qos=true --cgroup-root=/ --runtime-cgroups=/system.slice/crio.service --kubelet-cgroups=/system.slice/kubelet.service --feature-gates=MemoryQoS=true" --service-feature-gates=MemoryQoS=true --kubelet-flags="--feature-gates=MemoryQoS=true" --extra-log="{\"name\": \"crio.log\", \"journalctl\": [\"-u\", \"crio\"]}"' PARALLELISM=1 make test-e2e-node^C
core@ngopalak-fedora-e2e-sep17-20250930-011332:~/go/src/k8s.io/kubernetes$ vim test/e2e_node/summary_test.go
core@ngopalak-fedora-e2e-sep17-20250930-011332:~/go/src/k8s.io/kubernetes$ CONTAINER_RUNTIME_ENDPOINT="unix:///var/run/crio/crio.sock" FOCUS="\[Feature:KubeletPSI\]" SKIP="\[Flaky\]|\[Benchmark\]|\[Feature:Eviction\]|\[Featur
CONTAINER_RUNTIME_ENDPOINT="unix:///var/run/crio/crio.sock" FOCUS="\[Feature:KubeletPSI\]" SKIP="\[Flaky\]|\[Benchmark\]|\[Feature:Eviction\]|\[Feature:NodeSwap\]|\[Feature:DynamicResourceAllocation\]|\[Feature:HugePages\]|\[Feature:PodLevelResources\]" TEST_ARGS='--kubelet-flags="--fail-cgroupv1=true --cgroup-driver=systemd --cgroups-per-qos=true --cgroup-root=/ --runtime-cgroups=/system.slice/crio.service --kubelet-cgroups=/system.slice/kubelet.service" --extra-log="{\"name\": \"crio.log\", \"journalctl\": [\"-u\", \"crio\"]}"' PARALLELISM=1 make test-e2e-node
go: downloading go1.24.6 (linux/amd64)
go: download go1.24.6: golang.org/toolchain@v0.0.1-go1.24.6.linux-amd64: verifying module: checksum database disabled by GOSUMDB=off
go version go1.24.6 linux/amd64
+++ [0917 05:11:49] Building go targets for linux/amd64
github.com/onsi/ginkgo/v2/ginkgo (non-static)
go: downloading go1.24.6 (linux/amd64)
go: download go1.24.6: golang.org/toolchain@v0.0.1-go1.24.6.linux-amd64: verifying module: checksum databa
{"auditID":"a8f98cf6-3833-4a61-9b8d-fafa6e5c1e0f","cmdLine":"/usr/bin/ovs-appctl -t /var/run/openvswitch/ovs-vswitchd.1096.ctl memory/show ","executable":"/usr/bin/ovnkube","gid":0,"node":{"name":"ip-10-0-68-88.ec2.internal"},"pid":90576,"resource":{"container":"ovnkube-controller","namespace":"openshift-ovn-kubernetes","pod":"ovnkube-node-9dh7h"},"syscalls":["execve"],"timestamp":"2025-05-29T10:33:52.000Z","uid":0,"version":"spo/v1_alpha"}
{"auditID":"543959d8-b090-4f7d-b7d0-824454400d47","cmdLine":"/usr/bin/ovs-appctl --timeout=15 dpctl/dump-dps ","executable":"/usr/bin/ovnkube","gid":0,"node":{"name":"ip-10-0-68-88.ec2.internal"},"pid":90577,"resource":{"container":"ovnkube-controller","namespace":"openshift-ovn-kubernetes","pod":"ovnkube-node-9dh7h"},"syscalls":["execve"],"timestamp":"2025-05-29T10:33:52.000Z","uid":0,"version":"spo/v1_alpha"}
{"auditID":"c3c17796-941f-45c4-83ac-1fd9aa83ea5d","cmdLine":"/usr/bin/ovs-appctl -t /var/run/openvswitch/ovs-vswitchd.1096.ctl coverage/show ","executable":"/usr/bi
@ngopalak-redhat
ngopalak-redhat / jump_host_aws.sh
Created May 22, 2025 07:39
Create a Jump Host in AWS to reach the nodes of OpenShift OCP cluster on AWS
#!/bin/bash
# This script will create a Jump Host on AWS and setup security rules to connect to the nodes of OpenShift
# There will be a public IP used up in the process. Each time you run this script it will delete the old Jump host and
# create a new one
#
# Prereqs:
# 1. An OCP cluster created using openshift-installer (https://github.com/openshift/installer?tab=readme-ov-file) on AWS. Recommended to prefix the cluster with $USER
# 2. Generally $USER is set on your system. If not set $USER to the prefix or name of the cluster
# 3. Set $SSH_KEY_NAME to point to id_rsa public key file that you used while creating the cluster. The same will be used for jump host
I0508 04:46:26.254254 22188 jsonenricher.go:91] "Starting audit JSON logging on node: ip-10-0-39-111.ec2.internal" logger="json-enricher"
I0508 04:46:26.254289 22188 jsonenricher.go:102] "Setting up caches with expiry of 1h0m0s" logger="json-enricher"
I0508 04:46:26.255072 22188 jsonenricher.go:138] "Reading from file /var/log/audit/audit.log" logger="json-enricher"
I0508 04:48:23.466870 14496 container.go:178] "container ID is still empty, retrying" logger="json-enricher" podName="my-pod" containerName="nginx"
{"auditID":"fed8396a-20dc-4ddb-b782-70d95d2cfb74","cmdLine":"","executable":"/bin/dash","gid":0,"node":{"name":"ip-10-0-95-97.ec2.internal"},"pid":15196,"resource":null,"syscalls":["execve"],"timestamp":"2025-05-08T04:48:23.000Z","uid":0,"version":"spo/v1_alpha"}
{"auditID":"65fa6924-6178-458c-98f2-017b352c720a","cmdLine":"","executable":"/bin/dash","gid":0,"node":{"name":"ip-10-0-95-97.ec2.internal"},"pid":15195,"resource":null,"syscalls":["execve"],"timestamp":"2025-05-08T04:48:23.000Z","uid"
export GOPATH=~/go
ubuntu@foo:~/source/k8s.io/kuberentes/kubernetes$ make test-e2e-node
+++ [0402 05:36:26] Building go targets for linux/arm64
github.com/onsi/ginkgo/v2/ginkgo (non-static)
KUBE_ROOT is /home/ubuntu/source/k8s.io/kuberentes/kubernetes
+++ [0402 05:36:27] Set GOMAXPROCS automatically to 1
Creating artifacts directory at /tmp/_artifacts/250402T053627
Test artifacts will be written to /tmp/_artifacts/250402T053627
No need to refresh sudo credentials
I0402 05:36:37.879910 12012 build.go:59] Building k8s binaries...