kubernetes/kops · error
error listing zones: %v
Error message
error listing zones: %v
What it means
Wraps the compute Zones().List failure in allZones (GCE status discovery). Fires when enumerating zones for the project errors — permissions, quota, or connectivity — blocking etcd status discovery which is zone-scoped.
Source
Thrown at upup/pkg/fi/cloudup/gce/status.go:34
package gce
import (
"context"
"fmt"
"strings"
compute "google.golang.org/api/compute/v1"
"k8s.io/klog/v2"
"k8s.io/kops/pkg/apis/kops"
"k8s.io/kops/pkg/etcd"
"k8s.io/kops/upup/pkg/fi"
)
func (c *gceCloudImplementation) allZones() ([]string, error) {
zones, err := c.compute.Zones().List(context.Background(), c.project)
if err != nil {
return nil, fmt.Errorf("error listing zones: %v", err)
}
var zoneNames []string
for _, zone := range zones {
regionName := LastComponent(zone.Region)
if regionName == c.region {
zoneNames = append(zoneNames, zone.Name)
}
}
return zoneNames, nil
}
// FindClusterStatus discovers the status of the cluster, by inspecting the cloud objects
func (c *gceCloudImplementation) FindClusterStatus(cluster *kops.Cluster) (*kops.ClusterStatus, error) {
etcdClusters, err := c.findEtcdStatus(cluster)
if err != nil {
return nil, errView on GitHub (pinned to 4c8573c808)
Solutions
- Verify credentials and compute.zones.list permission
- Check API quota
- Retry after transient API failures
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/gce/status.go:34 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/c17b1fe2dca477b0.
Report an issue: GitHub.