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

Runtime error when creating NodeSet if the gateway for controlplane is missing is NetConfig

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • rhos-18.0.1
    • rhos-18.0.1
    • openstack-operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • None
    • Low

      If there is a configuration missed in the netconfig CR and you attempt to create a nodeset, the process will fail, and the logs will not provide a detailed error message explaining the failure.

      Example:
      In the netconfig if the gateway for controlplane is missing, the nodeset creation fails

      oc logs dataplane-operator-controller-manager-7667899dc8-cgmn4 -n openstack-operators
      penstack.org", "controllerKind": "OpenStackDataPlaneNodeSet", "OpenStackDataPlaneNodeSet": {"name":"openstack-edpm-ipam","namespace":"openstack"}, "namespace": "openstack", "name": "openstack-edpm-ipam", "reconcileID": "ab9bd9b0-59f9-465c-8f39-80e94ceab062"}
      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=0x0 pc=0x1a13f5d]
      
      goroutine 418 [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.5/pkg/internal/controller/controller.go:116 +0x1fa
      panic({0x1c67ca0, 0x311ac50})
              /usr/lib/golang/src/runtime/panic.go:884 +0x213
      github.com/openstack-k8s-operators/dataplane-operator/pkg/deployment.DeployBaremetalSet.func1()
              /remote-source/app/pkg/deployment/baremetal.go:74 +0x55d
      sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.mutate(0x1c49aa0?, {{0xc003d36fa6?, 0x1f2db4c?}, {0xc0037f1308?, 0x220fe20?}}, {0x22280e8, 0xc001971500})
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/controller/controllerutil/controllerutil.go:340 +0x4f
      sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrPatch({0x220fe20, 0xc0029a1ef0}, {0x221a5c0, 0xc00078cb40}, {0x22280e8?, 0xc001971500}, 0xc000e11160)
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/controller/controllerutil/controllerutil.go:275 +0x4cf
      github.com/openstack-k8s-operators/dataplane-operator/pkg/deployment.DeployBaremetalSet({0x220fe20, 0xc0029a1ef0}, 0xc000286420, 0xc0029e6900, 0xc002f94f00, {0x0, 0x0, 0x0})
              /remote-source/app/pkg/deployment/baremetal.go:53 +0x1d8
      github.com/openstack-k8s-operators/dataplane-operator/controllers.(*OpenStackDataPlaneNodeSetReconciler).Reconcile(0xc000aa3e30, {0x220fe20, 0xc0029a1ef0}, {{{0xc003bde056?, 0x5?}, {0xc004b7e060?, 0xc000e11d08?}}})
              /remote-source/app/controllers/openstackdataplanenodeset_controller.go:380 +0x11a7
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x22125c0?, {0x220fe20?, 0xc0029a1ef0?}, {{{0xc003bde056?, 0xb?}, {0xc004b7e060?, 0x0?}}})
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/internal/controller/controller.go:119 +0xc8
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0005520a0, {0x220fd78, 0xc000a9c8c0}, {0x1d32320?, 0xc0005180a0?})
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/internal/controller/controller.go:316 +0x3ca
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0005520a0, {0x220fd78, 0xc000a9c8c0})
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/internal/controller/controller.go:266 +0x1c5
      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.5/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.5/pkg/internal/controller/controller.go:223 +0x587 

            rhn-engineering-faguiard Fabricio Aguiar de Oliveira
            asyedham@redhat.com Asma Suhani Syed Hameed
            rhos-dfg-df
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: