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

Misformatted node labels causing origin-tests to panic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 4.15.z
    • 4.16
    • Test Framework
    • None
    • No
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-30604. The following is the description of the original issue:

      Description of problem:

          Panic thrown by origin-tests

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

          

      How reproducible:

          always

      Steps to Reproduce:

          1. Create aws or rosa 4.15 cluster
          2. run origin tests
          3.
          

      Actual results:

          time="2024-03-07T17:03:50Z" level=info msg="resulting interval message" message="{RegisteredNode  Node ip-10-0-8-83.ec2.internal event: Registered Node ip-10-0-8-83.ec2.internal in Controller map[reason:RegisteredNode roles:worker]}"
        E0307 17:03:50.319617      71 runtime.go:79] Observed a panic: runtime.boundsError{x:24, y:23, signed:true, code:0x3} (runtime error: slice bounds out of range [24:23])
        goroutine 310 [running]:
        k8s.io/apimachinery/pkg/util/runtime.logPanic({0x84c6f20?, 0xc006fdc588})
        	k8s.io/apimachinery@v0.29.0/pkg/util/runtime/runtime.go:75 +0x99
        k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc008c38120?})
        	k8s.io/apimachinery@v0.29.0/pkg/util/runtime/runtime.go:49 +0x75
        panic({0x84c6f20, 0xc006fdc588})
        	runtime/panic.go:884 +0x213
        github.com/openshift/origin/pkg/monitortests/testframework/watchevents.nodeRoles(0x0?)
        	github.com/openshift/origin/pkg/monitortests/testframework/watchevents/event.go:251 +0x1e5
        github.com/openshift/origin/pkg/monitortests/testframework/watchevents.recordAddOrUpdateEvent({0x96bcc00, 0xc0076e3310}, {0x7f2a0e47a1b8, 0xc007732330}, {0x281d36d?, 0x0?}, {0x9710b50, 0xc000c5e000}, {0x9777af, 0xedd7be6b7, ...}, ...)
        	github.com/openshift/origin/pkg/monitortests/testframework/watchevents/event.go:116 +0x41b
        github.com/openshift/origin/pkg/monitortests/testframework/watchevents.startEventMonitoring.func2({0x8928f00?, 0xc00b528c80})
        	github.com/openshift/origin/pkg/monitortests/testframework/watchevents/event.go:65 +0x185
        k8s.io/client-go/tools/cache.(*FakeCustomStore).Add(0x8928f00?, {0x8928f00?, 0xc00b528c80?})
        	k8s.io/client-go@v0.29.0/tools/cache/fake_custom_store.go:35 +0x31
        k8s.io/client-go/tools/cache.watchHandler({0x0?, 0x0?, 0xe16d020?}, {0x9694a10, 0xc006b00180}, {0x96d2780, 0xc0078afe00}, {0x96f9e28?, 0x8928f00}, 0x0, ...)
        	k8s.io/client-go@v0.29.0/tools/cache/reflector.go:756 +0x603
        k8s.io/client-go/tools/cache.(*Reflector).watch(0xc0005dcc40, {0x0?, 0x0?}, 0xc005cdeea0, 0xc005bf8c40?)
        	k8s.io/client-go@v0.29.0/tools/cache/reflector.go:437 +0x53b
        k8s.io/client-go/tools/cache.(*Reflector).ListAndWatch(0xc0005dcc40, 0xc005cdeea0)
        	k8s.io/client-go@v0.29.0/tools/cache/reflector.go:357 +0x453
        k8s.io/client-go/tools/cache.(*Reflector).Run.func1()
        	k8s.io/client-go@v0.29.0/tools/cache/reflector.go:291 +0x26
        k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x10?)
        	k8s.io/apimachinery@v0.29.0/pkg/util/wait/backoff.go:226 +0x3e
        k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc007974ec0?, {0x9683f80, 0xc0078afe50}, 0x1, 0xc005cdeea0)
        	k8s.io/apimachinery@v0.29.0/pkg/util/wait/backoff.go:227 +0xb6
        k8s.io/client-go/tools/cache.(*Reflector).Run(0xc0005dcc40, 0xc005cdeea0)
        	k8s.io/client-go@v0.29.0/tools/cache/reflector.go:290 +0x17d
        created by github.com/openshift/origin/pkg/monitortests/testframework/watchevents.startEventMonitoring
        	github.com/openshift/origin/pkg/monitortests/testframework/watchevents/event.go:83 +0x6a5
      panic: runtime error: slice bounds out of range [24:23] [recovered]
      	panic: runtime error: slice bounds out of range [24:23]

      Expected results:

          execution of tests

      Additional info:

          

            rhn-engineering-dgoodwin Devan Goodwin
            openshift-crt-jira-prow OpenShift Prow Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: