kubernetes/kops · error

GetFloatingIP: fetching floating IP (%s) failed: %v

Error message

GetFloatingIP: fetching floating IP (%s) failed: %v

What it means

getL3FloatingIP wraps the l3floatingip.Get Extract failure when fetching a Neutron layer-3 floating IP by ID. It fires when the Neutron API call fails (not found, auth, network) and is retried with backoff before surfacing.

Source

Thrown at upup/pkg/fi/cloudup/openstack/floatingip.go:36

import (
	"context"
	"fmt"

	l3floatingip "github.com/gophercloud/gophercloud/v2/openstack/networking/v2/extensions/layer3/floatingips"
	"k8s.io/apimachinery/pkg/util/wait"
	"k8s.io/kops/util/pkg/vfs"
)

func (c *openstackCloud) GetL3FloatingIP(id string) (fip *l3floatingip.FloatingIP, err error) {
	return getL3FloatingIP(c, id)
}

func getL3FloatingIP(c OpenstackCloud, id string) (fip *l3floatingip.FloatingIP, err error) {
	done, err := vfs.RetryWithBackoff(readBackoff, func() (bool, error) {
		fip, err = l3floatingip.Get(context.TODO(), c.NetworkingClient(), id).Extract()
		if err != nil {
			return false, fmt.Errorf("GetFloatingIP: fetching floating IP (%s) failed: %v", id, err)
		}
		return true, nil
	})
	if !done {
		if err == nil {
			err = wait.ErrWaitTimeout
		}
		return fip, err
	}
	return fip, nil
}

func (c *openstackCloud) CreateL3FloatingIP(opts l3floatingip.CreateOpts) (fip *l3floatingip.FloatingIP, err error) {
	return createL3FloatingIP(c, opts)
}

func createL3FloatingIP(c OpenstackCloud, opts l3floatingip.CreateOpts) (fip *l3floatingip.FloatingIP, err error) {
	done, err := vfs.RetryWithBackoff(writeBackoff, func() (bool, error) {

View on GitHub (pinned to 4c8573c808)

Solutions

  1. Verify the floating IP ID exists in the project
  2. Check Neutron API credentials and connectivity
  3. Retry; the operation already runs inside RetryWithBackoff
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at upup/pkg/fi/cloudup/openstack/floatingip.go:36 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/8f7548df70cfbfdd. Report an issue: GitHub.