kubernetes/kops · error
error listing volumes %v: %v
Error message
error listing volumes %v: %v
What it means
Listing Cinder volumes with the given filters failed at the API level. Reads are retried with backoff; persistent failure indicates credentials, endpoint, or block-storage service problems in the wrapped error.
Source
Thrown at upup/pkg/fi/cloudup/openstack/volume.go:40
cinder "github.com/gophercloud/gophercloud/v2/openstack/blockstorage/v3/volumes"
"github.com/gophercloud/gophercloud/v2/openstack/compute/v2/volumeattach"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/klog/v2"
"k8s.io/kops/util/pkg/vfs"
)
func (c *openstackCloud) ListVolumes(opt cinder.ListOptsBuilder) ([]cinder.Volume, error) {
return listVolumes(c, opt)
}
func listVolumes(c OpenstackCloud, opt cinder.ListOptsBuilder) ([]cinder.Volume, error) {
var volumes []cinder.Volume
done, err := vfs.RetryWithBackoff(readBackoff, func() (bool, error) {
allPages, err := cinder.List(c.BlockStorageClient(), opt).AllPages(context.TODO())
if err != nil {
return false, fmt.Errorf("error listing volumes %v: %v", opt, err)
}
vs, err := cinder.ExtractVolumes(allPages)
if err != nil {
return false, fmt.Errorf("error extracting volumes from pages: %v", err)
}
volumes = vs
return true, nil
})
if err != nil {
return volumes, err
} else if done {
return volumes, nil
} else {
return volumes, wait.ErrWaitTimeout
}
}
View on GitHub (pinned to 4c8573c808)
Solutions
- Inspect the wrapped Cinder error
- Verify the block-storage endpoint and credentials
- Retry after service restoration
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/openstack/volume.go:40 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/1ace5433b67afe57.
Report an issue: GitHub.