Skip to content

On Openshift, pods in CrashLoopBackOff due to timeout getting SR image #212

@opstalj

Description

@opstalj

Hi,
I am trying to deploy clabernetes on Openshift (4.16.9).
The manager got deployed nicely and now I am using clabverter to deploy a clab.

I faced some issue with privileged access, so I do upfront:

  1. create clab namespace (in my case: c9s-sros-sros)
  2. give full privileged access (oc adm policy add-scc-to-user privileged -z clabernetes-launcher-service-account -n c9s-sros-sros)

I have a harbor repo server and have uploaded the Nokia SR-OS image there.
However, whatever I tried to get the pod to download the image, it always failed and then it goes into CrashLoopBackOff.
Typical log that I see:

    INFO |              containerlab | time="2025-09-19T06:14:00Z" level=info msg="Pulling harbor.antwerplab.com/sr-images/nokia_srsim:25.7.R1 Docker image"

    INFO |              containerlab | Error: Error response from daemon: Get "https://harbor.antwerplab.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

I have tried many other things as well:

  1. download the image onto the worker node where my srsim pod will land:

oc adm policy [root@worker20 run]# crictl image |grep nokia
harbor.antwerplab.com/sr-images/nokia_srsim 25.7.R1 8c69dafa63f8d 1.98GB

-> same issue as before

  1. tagged the image and renamed it as a local image on the worker node (and adapted the clab topology file accordingly):
[root@worker20 run]# crictl image |grep nokia
harbor.antwerplab.com/sr-images/nokia_srsim                                                       25.7.R1             8c69dafa63f8d       1.98GB
localhost/nokia_srsim                                                                             25.7.R1             8c69dafa63f8d       1.98GB

-> same issue as before

  1. I thought maybe an imagePullSecret was needed and tried that as well ... no luck.
    Now, the crictl pull on the worker node worked without secret ... so I guess this is not needed...

Any idea what I can try next?

Note: this is also strange: I could not use the kind 'nokia_srsim':

INFO | containerlab | Error: error constructing node "srsim10": kind "nokia_srsim" is not supported. Supported kinds are "arista_ceos, arista_veos, aruba_aoscx, bridge, c8000, ceos, checkpoint_cloudguard, cisco_c8000, cisco_c8000v, cisco_cat9kv, cisco_csr1000v, cisco_ftdv, cisco_iol, cisco_n9kv, cisco_xrd, cisco_xrv, cisco_xrv9k, crpd, cumulus_cvx, cvx, dell_ftosv, dell_sonic, ext-container, fortinet_fortigate, freebsd, generic_vm, host, huawei_vrp, ipinfusion_ocnos, juniper_crpd, juniper_vjunosevolved, juniper_vjunosrouter, juniper_vjunosswitch, juniper_vmx, juniper_vqfx, juniper_vsrx, k8s-kind, keysight_ixia-c-one, linux, mikrotik_ros, nokia_srlinux, nokia_sros, openbsd, ovs-bridge, paloalto_panos, rare, sonic-vm, sonic-vs, srl, vr-aoscx, vr-arista_veos, vr-aruba_aoscx, vr-cisco_csr1000v, vr-cisco_n9kv, vr-cisco_xrv, vr-cisco_xrv9k, vr-csr, vr-dell_ftosv, vr-ftosv, vr-juniper_vmx, vr-juniper_vqfx, vr-juniper_vsrx, vr-mikrotik_ros, vr-n9kv, vr-nokia_sros, vr-paloalto_panos, vr-pan, vr-ros, vr-sros, vr-veos, vr-vmx, vr-vqfx, vr-vsrx, vr-xrv, vr-xrv9k, xrd"

-> so I am using the kind = nokia_sros instead of nokia_srsim in my clab topology file

Kind regards,

Jan

Oh, the pod logs show this version of ContainerLab:

INFO | containerlab | time="2025-09-19T06:13:59Z" level=info msg="Containerlab v0.64.0 started"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions