{"record":{"id":"bdc5488c659bc9c9","repo":"kubernetes/kops","slug":"error-initializing-scaleway-cloud-w","errorCode":null,"errorMessage":"error initializing Scaleway cloud: %w","messagePattern":"error initializing Scaleway cloud: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/utils.go","lineNumber":181,"sourceCode":"\t\t\tcloudTags := map[string]string{azure.TagClusterName: cluster.ObjectMeta.Name}\n\t\t\tfor k, v := range cluster.Spec.CloudLabels {\n\t\t\t\tcloudTags[k] = v\n\t\t\t}\n\n\t\t\tsubscriptionID := cluster.Spec.CloudProvider.Azure.SubscriptionID\n\t\t\tresourceGroupName := cluster.AzureResourceGroupName()\n\t\t\tazureCloud, err := azure.NewAzureCloud(subscriptionID, resourceGroupName, region, cloudTags)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\n\t\t\tcloud = azureCloud\n\t\t}\n\tcase kops.CloudProviderScaleway:\n\t\t{\n\t\t\tzone, err := scaleway.ParseZoneFromClusterSpec(cluster.Spec)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"error initializing Scaleway cloud: %w\", err)\n\t\t\t}\n\t\t\tregion, err := scaleway.ParseRegionFromZone(zone)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"error initializing Scaleway cloud: %w\", err)\n\t\t\t}\n\n\t\t\tcloudTags := map[string]string{\n\t\t\t\tscaleway.TagClusterName: cluster.ObjectMeta.Name,\n\t\t\t\t\"zone\":                  string(zone),\n\t\t\t\t\"region\":                string(region),\n\t\t\t}\n\t\t\tfor k, v := range cluster.Spec.CloudLabels {\n\t\t\t\tcloudTags[k] = v\n\t\t\t}\n\n\t\t\tscwCloud, err := scaleway.NewScwCloud(cloudTags)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"error initializing Scaleway cloud: %w\", err)","sourceCodeStart":163,"sourceCodeEnd":199,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/utils.go#L163-L199","documentation":"Thrown in BuildCloud when scaleway.NewScwCloud fails for the zone/region and tags computed from the cluster spec. Initialization fails mainly when Scaleway credentials are absent from the environment (the SCW_* variables) or the computed zone is not usable for the API client.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/utils.go:181 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Configure Scaleway credentials (SCW_ACCESS_KEY/SCW_SECRET_KEY or SCW_TOKEN) in the environment","Verify the cluster's zone parses to a valid Scaleway zone (e.g. fr-par-1)","Re-run the operation after credentials and zone are corrected"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}