Uploaded image for project: 'OpenStack as Infra'
  1. OpenStack as Infra
  2. OSASINFRA-3952

GH-orc-527: Network resource can't handle more than 32 subnets

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • ORC
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected

      Originally posted on Github: https://github.com/k-orc/openstack-resource-controller/issues/527

      Problem description
      Importing network with more than 32 subnets causes controller errors.
      i have network in openstack named external-network with 49 subnets add resource cant be imported in k8s
      ORC version
      v2.2.0
      Additional information
      Example manifest:
      apiVersion: openstack.k-orc.cloud/v1alpha1
      kind: Network
      metadata:
      name: os-tenant-external-net
      namespace: os-tenant
      spec:
      managementPolicy: unmanaged
      import:
      filter:
      external: true
      name: external-network
      cloudCredentialsRef:
      cloudName: openstack
      secretName: cloud-config

      Relevant log output
      2025-09-30T14:08:10.212335349Z 2025-09-30T14:08:10Z ERROR Reconciler error {"controller": "network", "controllerGroup": "openstack.k-orc.cloud", "controllerKind": "Network", "Network":

      {"name": "os-tenant-external-net","namespace":"os-tenant"}

      , "namespace": "os-tenant", "name": "os-tenant-external-net", "reconcileID": "12345-3b36-4b5e-8361-7bfe26ef5a40", "error": "Network.openstack.k-orc.cl
      oud \"os-tenant-external-net\" is invalid: [status.resource.subnets: Too many: 49: must have at most 32 items, <nil>: Invalid value: \"null\": some validation rules were not checked because the object w
      as invalid; correct the existing errors to complete validation]"}
      2025-09-30T14:08:10.212377242Z sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
      2025-09-30T14:08:10.212385644Z /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.4/pkg/internal/controller/controller.go:347
      2025-09-30T14:08:10.212391792Z sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
      2025-09-30T14:08:10.212397411Z /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.4/pkg/internal/controller/controller.go:294
      2025-09-30T14:08:10.212403043Z sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2
      2025-09-30T14:08:10.212409003Z /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.4/pkg/internal/controller/controller.go:255

              Unassigned Unassigned
              shiftstack OpenShift On OpenStack
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: