Tridentctl import volume not allowing me to map pvc to existing trident volume

10/3/2019

I lost my kubernetes cluster and am rebuilding. I'd like to recover the volumes that trident had mapped so I can reclaim them when starting my apps back up.

I believe that the import volume is what I am after but it's not working and I am not seeing much informationg: https://netapp.io/2019/04/29/volume-import/

I can see my volume:

$ ./tridentctl get volumes -n trident

|    NAME             |  SIZE   |  STORAGE CLASS   | STATE  |   
| cicd-jenkins-034fd  | 8.0 GiB | solidfire-bronze | online |   

But I am not able to import it:

/tridentctl import volume solidfire_MY_IP cicd-jenkins-034fd -f jenkins-pvc.yaml -n trident

Error: could not import volume: frontend failed to import volume: PV cicd-jenkins-09159 already exists for volume cicd-jenkins-034fd (400 Bad Request) command terminated with exit code 1

I would hope it would bind.

-- Alizkat
kubernetes
netapp
trident

0 Answers