Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-7874

nats.io doesn't work on microshift

XMLWordPrintable

    • No
    • uShift Sprint 233
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      *Cause*: CRI-O was not configured with the right default path to the pause container executable.
      *Consequence*: Pods with shareProcessNamespace set to true could not start.
      *Fix*: CRI-O is configured explicitly with the right path.
      *Result*: Bug doesn’t present anymore.
      Show
      *Cause*: CRI-O was not configured with the right default path to the pause container executable. *Consequence*: Pods with shareProcessNamespace set to true could not start. *Fix*: CRI-O is configured explicitly with the right path. *Result*: Bug doesn’t present anymore.
    • Bug Fix

      Description of problem:

      nats.io helm charts deploys but pods fail to start, showing the following error in oc describe pod my-nats-0 :
      Warning  FailedCreatePodSandBox  0s    kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = container create failed: time="2023-02-22T06:37:47-05:00" level=error msg="runc create failed: unable to start container process: exec: \"/pause\": stat /pause: no such file or directory"

      Version-Release number of selected component (if applicable):

      # microshift version
      MicroShift Version: 4.12.2
      Base OCP Version: 4.12.2
      
      on SNO reproducer : 
      # oc version
      Client Version: 4.12.1
      Kustomize Version: v4.5.7
      Server Version: 4.12.3
      Kubernetes Version: v1.25.4+a34b9e9

      How reproducible:

      Always

      Steps to Reproduce:

      1. helm repo add nats https://nats-io.github.io/k8s/helm/charts/ && helm repo update
      2. oc create namespace nats
      3. helm install my-nats nats/nats --namespace nats
      4. oc describe pod my-nats-0 -n nats 

      Actual results:

      Events:
        Type     Reason                  Age                   From               Message
        ----     ------                  ----                  ----               -------
        Normal   Scheduled               92m                   default-scheduler  Successfully assigned nats/my-nats-0 to microlab.local
        Warning  FailedCreatePodSandBox  92m                   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = container create failed: time="2023-02-22T06:36:06-05:00" level=error msg="runc create failed: unable to start container process: exec: \"/pause\": stat /pause: no such file or directory"
        Warning  FailedCreatePodSandBox  92m                   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = container create failed: time="2023-02-22T06:36:08-05:00" level=error msg="runc create failed: unable to start container process: exec: \"/pause\": stat /pause: no such file or directory"
        Warning  FailedCreatePodSandBox  91m                   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = container create failed: time="2023-02-22T06:36:22-05:00" level=error msg="runc create failed: unable to start container process: exec: \"/pause\": stat /pause: no such file or directory"

      Expected results:

      Events:
        Type    Reason          Age    From               Message
        ----    ------          ----   ----               -------
        Normal  Scheduled       6m45s  default-scheduler  Successfully assigned nats/my-nats-0 to ocp4-master1.rhacm.example.com
        Normal  AddedInterface  6m44s  multus             Add eth0 [10.128.1.150/23] from ovn-kubernetes
        Normal  Pulling         6m44s  kubelet            Pulling image "nats:2.9.14-alpine"
        Normal  Pulled          6m37s  kubelet            Successfully pulled image "nats:2.9.14-alpine" in 7.104375746s
        Normal  Created         6m36s  kubelet            Created container nats
        Normal  Started         6m36s  kubelet            Started container nats
        Normal  Pulling         6m36s  kubelet            Pulling image "natsio/nats-server-config-reloader:0.9.3"
        Normal  Pulled          6m31s  kubelet            Successfully pulled image "natsio/nats-server-config-reloader:0.9.3" in 5.004495029s
        Normal  Created         6m31s  kubelet            Created container reloader
        Normal  Started         6m31s  kubelet            Started container reloader
        Normal  Pulling         6m31s  kubelet            Pulling image "natsio/prometheus-nats-exporter:0.10.1"
        Normal  Pulled          6m27s  kubelet            Successfully pulled image "natsio/prometheus-nats-exporter:0.10.1" in 4.407002785s
        Normal  Created         6m26s  kubelet            Created container metrics
        Normal  Started         6m26s  kubelet            Started container metrics

      Additional info:

       

              zshi@redhat.com Zenghui Shi
              rhn-gps-hmontenon Henry Geay de Montenon
              John George John George
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: