If the restored volume already has a namespace, restore it to that namespace.

The Namespace field is already restored with volume.
Actually we already have this feature. You are using batch operation (the button on the top) hence there won't contain a default value here. If you create PV/PVC via the button on the right of the volume then check Use Previous PVC, the restored Namespace value will be applied to this blank automatically.

The
Namespacefield is already restored with volume.Actually we already have this feature. You are using batch operation (the button on the top) hence there won't contain a default value here. If you create PV/PVC via the button on the right of the volume then check
Use Previous PVC, the restoredNamespacevalue will be applied to this blank automatically.
It would have to be individually done to a few hundred volumes?
@ainiml We will support it in the batch operation too.
Validation: Partially Failed
wangsiye/longhorn-ui:661911dSteps to test:
kubectl create ns ns1ns1 namespace using:kubectl apply -n ns1 -f https://raw.githubusercontent.com/longhorn/longhorn/master/examples/statefulset.yaml3 using kubectl scale statefulset -n ns1 web --replicas=30 using kubectl scale statefulset -n ns1 web --replicas=0Expected Result: volumes should be restored successfully,
PV/PVCfield should beBound, andNamespacefield should bens1(PASS)
- Scale StatefulSet back to
3
Expected Result: volumes gets attached to newly created StatefulSet pods. (PASS)- In Backup page, restore each volume using the different volume name than its original volume name.
- In volume page, select 2 volumes, and click
Create PV/PVCbutton.- check
Use Previous PVCand clickOK.
Expected Result: a new PV/PVC will be created for each volume inns1namespace. (PASS)- for the 3rd restored volume, using the
Operationmenu on the right, clickCreate PV/PVC
An empty page with the following error on console (FAILED)

Validation: Partially Failed
wangsiye/longhorn-ui:9787bfbSteps to test:
kubectl create ns ns1ns1 namespace using:kubectl apply -n ns1 -f https://raw.githubusercontent.com/longhorn/longhorn/master/examples/statefulset.yaml3 using kubectl scale statefulset -n ns1 web --replicas=30 using kubectl scale statefulset -n ns1 web --replicas=0Restore Latest Backup for each volume using a different volume name than its original volume name.Operation menu on the right, click Create PV/PVCUse Previous PVC, and clic OKExpected Result: a new PV will be created, and a new PVC will be created using the old PVC name. (PASS)
- Select other two volumes, and click on
Create PV/PVCbutton.- Check
Use Previous PVC, and clicOK
Expected Result: for each volume, a new PV will be created, and a new PVC will be created using the old PVC name (FAILED)
Error: a new PVC is created with different name than the original PVC.
Validation: Passed
Longhorn UI version: wangsiye/longhorn-ui:d629ffe