Skip to content

Invalid GlobalnetCidrRange during subctl deploy-broker #1668

@jinglina

Description

@jinglina

What happened:
errros when deploy broker using subctl (version: 0.10.1)

E1119 01:53:34.223223       1 controller.go:267] controller-runtime/manager/controller/broker "msg"="Reconciler error" "error"="invalid GlobalnetCidrRange: invalid CIDR address: " "name"="submariner-broker" "namespace"="submariner-operator" "reconciler group"="submariner.io" "reconciler kind"="Broker"

when globalnet is desabled, globalnetInfo.GlobalnetCidrRange is empty,
when check net.parse(), it reports an error

if globalnetInfo != nil {
		if err = IsValidCIDR(globalnetInfo.GlobalnetCidrRange); err != nil {
			return fmt.Errorf("invalid GlobalnetCidrRange: %s", err)
		}
	}

What you expected to happen:
the error not occurs again.
How to reproduce it (as minimally and precisely as possible):
subctl deploy-broker
Anything else we need to know?:

Environment:

  • Diagnose information (use subctl diagnose all):
  • Gather information (use subctl gather)
  • Cloud provider or hardware configuration:
  • Install tools:
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions