-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restoring GCP Regional pv error #1183
Comments
Thanks for the bug report! Would you mind also providing the output of |
apiVersion: v1
|
Thanks for that, @christianlafleur. I've managed to replicate the issue and have a fixed that I've tested locally. I'm going to clean up the code, add some tests, then push up a PR. |
To create a regional disk, the URLs for the zones in which the disk is replicated must be provided to the GCP API.A Fixes vmware-tanzu#1183 Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
To create a regional disk, the URLs for the zones in which the disk is replicated must be provided to the GCP API. Fixes vmware-tanzu#1183 Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
To create a regional disk, the URLs for the zones in which the disk is replicated must be provided to the GCP API. Fixes vmware-tanzu#1183 Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
Description
Restore for regional storage class on GCP fail with this error : Invalid value for field 'resource.replicaZones[0]': ''. Exactly 2 replica zones must be set for regional disks
Standard storage class restore is working.
The output of the following commands will help us better understand what's going on:
ark create restore test2 --from-backup full01-20190204180049 --include-namespaces chris-test
Restore request "test2" submitted successfully.
ark describe restore test2
Name: test2
Namespace: heptio-ark
Labels:
Annotations:
Backup: full01-20190204180049
Namespaces:
Included: chris-test
Excluded:
Resources:
Included: persistentvolumes
Excluded: nodes, events, events.events.k8s.io, backups.ark.heptio.com, restores.ark.heptio.com
Cluster-scoped: auto
Namespace mappings:
Label selector:
Restore PVs: auto
Phase: Completed
Validation errors:
Warnings:
Ark:
Cluster:
Namespaces:
Errors:
Ark:
Cluster: error executing PVAction for /tmp/878522100/resources/persistentvolumes/cluster/pvc-0c5099ee-289f-11e9-bbb9-42010aa20034.json: rpc error: code = Unknown desc = googleapi: Error
400: Invalid value for field 'resource.replicaZones[0]': ''. Exactly 2 replica zones must be set for regional disks., invalid
Namespaces:
Anything else you would like to add:
kubectl get pv pvc-5d8cb4c0-28bf-11e9-bbb9-42010aa20034 --show-labels
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE LABELS
pvc-5d8cb4c0-28bf-11e9-bbb9-42010aa20034 10Gi RWO Delete Bound chris-test/pvc-regional regional 56s failure-domain.beta.kubernetes.io/region=northamerica-northeast1,failure-domain.beta.kubernetes.io/zone=northamerica-northeast1-a__northamerica-northeast1-b
Environment:
ark version
): 0.10.1kubectl version
): v1.10.7The text was updated successfully, but these errors were encountered: