kubernetes/kops · error

Failed to retrieve loadbalancers for name %s: %v

Error message

Failed to retrieve loadbalancers for name %s: %v

What it means

Listing Octavia load balancers filtered by name failed at the API level while discovering the LB task's actual state. The wrapped error identifies the transport/API failure.

Source

Thrown at upup/pkg/fi/cloudup/openstacktasks/lb.go:158

		find.PortID = actual.PortID
		find.VipSubnet = actual.VipSubnet
		find.Provider = actual.Provider
		find.FlavorID = actual.FlavorID
	}
	return actual, nil
}

func (s *LB) Find(context *fi.CloudupContext) (*LB, error) {
	if s.Name == nil {
		return nil, nil
	}

	cloud := context.T.Cloud.(openstack.OpenstackCloud)
	lbPage, err := loadbalancers.List(cloud.LoadBalancerClient(), loadbalancers.ListOpts{
		Name: fi.ValueOf(s.Name),
	}).AllPages(context.Context())
	if err != nil {
		return nil, fmt.Errorf("Failed to retrieve loadbalancers for name %s: %v", fi.ValueOf(s.Name), err)
	}
	lbs, err := loadbalancers.ExtractLoadBalancers(lbPage)
	if err != nil {
		return nil, fmt.Errorf("Failed to extract loadbalancers : %v", err)
	}
	if len(lbs) == 0 {
		return nil, nil
	}
	if len(lbs) > 1 {
		return nil, fmt.Errorf("Multiple load balancers for name %s", fi.ValueOf(s.Name))
	}

	return NewLBTaskFromCloud(cloud, s.Lifecycle, &lbs[0], s)
}

func (s *LB) Run(context *fi.CloudupContext) error {
	return fi.CloudupDefaultDeltaRunMethod(s, context)
}

View on GitHub (pinned to 4c8573c808)

Solutions

  1. Inspect the wrapped Octavia error
  2. Verify the load-balancer endpoint and credentials
  3. Retry after service restoration
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at upup/pkg/fi/cloudup/openstacktasks/lb.go:158 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05). Data as JSON: /api/errors/ed00d08f83372626. Report an issue: GitHub.