Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-10085

NetworkAttachments not working properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • rhos-18.0.1
    • test-operator
    • None
    • 7
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • No Docs Impact
    • test-operator-container-1.0.2-4
    • ?
    • ?
    • Yes
    • Bug Fix
    • Approved
    • Important

      We introduced a regression into the test-operator with this PR for the networkAttachments field in test-operator [1][2].

      "tempest-tests", "reconcileID": "904177fb-b598-4868-aefe-a75632676cc8"}
      2024-09-06T00:18:18Z	INFO	Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference	{"controller": "tempest", "controllerGroup": "test.openstack.org", "controllerKind": "Tempest", "Tempest": {"name":"tempest-tests","namespace":"openstack"}, "namespace": "openstack", "name": "tempest-tests", "reconcileID": "904177fb-b598-4868-aefe-a75632676cc8"}
      panic: runtime error: invalid memory address or nil pointer dereference [recovered]
      	panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0xc8 pc=0x1709d3a]
      
      goroutine 278 [running]:
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
      	/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:116 +0x1fa
      panic({0x1904ec0, 0x2a429f0})
      	/usr/lib/golang/src/runtime/panic.go:884 +0x213
      github.com/openstack-k8s-operators/lib-common/modules/common/pod.GetPodListWithLabel({0x1dd1d70, 0xc002f8b620}, 0xc0007d68f0, {0xc0012c8326, 0x9}, 0xc002566c00)
      	/remote-source/deps/gomod/pkg/mod/github.com/openstack-k8s-operators/lib-common/modules/common@v0.3.1-0.20240730154700-e526dc22c2bf/pod/pod.go:42 +0x7a
      github.com/openstack-k8s-operators/lib-common/modules/common/networkattachment.VerifyNetworkStatusFromAnnotation({0x1dd1d70, 0xc002f8b620}, 0xc0007d68f0, {0xc0000a18a0, 0x1, 0x0?}, 0x0?, 0x1)
      	/remote-source/deps/gomod/pkg/mod/github.com/openstack-k8s-operators/lib-common/modules/common@v0.3.1-0.20240730154700-e526dc22c2bf/networkattachment/networkattachment.go:112 +0xc5
      github.com/openstack-k8s-operators/test-operator/controllers.(*TempestReconciler).Reconcile(0xc00022e380, {0x1dd1d70, 0xc002f8b620}, {{{0xc0012c8326?, 0x5?}, {0xc0012c8330?, 0xc0007b9d48?}}})
      	/remote-source/app/controllers/tempest_controller.go:275 +0x1525
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x1dd40c0?, {0x1dd1d70?, 0xc002f8b620?}, {{{0xc0012c8326?, 0xb?}, {0xc0012c8330?, 0x0?}}})
      	/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:119 +0xc8
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0003df5e0, {0x1dd1cc8, 0xc00002f1d0}, {0x19a8120?, 0xc00017ce40?})
      	/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:316 +0x3ca
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0003df5e0, {0x1dd1cc8, 0xc00002f1d0})
      	/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:266 +0x1d9
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
      	/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:227 +0x85
      created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2
      	/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:223 +0x587 

      PRs:

      [1] https://github.com/openstack-k8s-operators/test-operator/pull/187

      [2] https://sf.hosted.upshift.rdu2.redhat.com/logs/openstack-uni-jobs-periodic-integration-rhoso18.0-rhel9/gitlab.cee.redhat.com/ci-framework/ci-framework-jobs/main/uni01alpha-rhel9-rhoso18.0/a4041bd/logs/controller-0/ci-framework-data/logs/openstack-k8s-operators-openstack-must-gather/namespaces/openstack/pods/test-operator-controller-manager-5cb7d8f4b5-gk7x7/logs/manager-previous.log

              lpiwowar Lukáš Piwowarski
              lpiwowar Lukáš Piwowarski
              rhos-tempest
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: