I've opened an issue: https://github.com/openshift/origin/issues/7104
I'm thinking it would be suitable that if the PVC already exists, this existent PVC was the one used when the template is launching. El vie., 5 feb. 2016 a las 15:41, Clayton Coleman (<[email protected]>) escribió: > The create flow should still work, especially if nothing changed. If it > doesn't, please file a bug > > On Feb 5, 2016, at 5:59 AM, Alejandro Nieto Boza <[email protected]> > wrote: > > But if I don't delete the PVC, when I launch the template > mysql-persistent-template again with the same name to use the same volume, > this error appears: > > Cannot create persistentvolumeclaims. persistentvolumeclaims "same-name" > already exists. > > > Is there any way to launch an application named "Gandalf" from > mysql-persistent-template, delete this application, and launch again the > same application with the same name "Gandalf" for using the same PVC > "Gandalf"? > > El lun., 1 feb. 2016 a las 14:30, Mark Turansky (<[email protected]>) > escribió: > >> Yes, you can re-use the same volume by not deleting the PVC. The >> lifecycle of a claim is independent of a pod's lifecycle. You can create >> and delete pods all day long using the same claim, but once you delete the >> claim, you are relinquishing your hold on that volume, hence it is Released. >> >> Mark >> >> On Mon, Feb 1, 2016 at 8:08 AM, Alejandro Nieto Boza <[email protected]> >> wrote: >> >>> Hi, >>> >>> I create the following NFS PV in Openshift: >>> >>> apiVersion: "v1" >>> kind: "PersistentVolume" >>> metadata: >>> name: "pv01" >>> spec: >>> capacity: >>> storage: "5Gi" >>> accessModes: >>> - "ReadWriteOnce" >>> nfs: >>> path: "/mnt" >>> server: "..." >>> >>> Then, I create a pod with mysql-persistent-template and the pod uses >>> correctly the PV and the PV appears "Bound". >>> Now I delete the pod and the PVC. When I delete the PVC the PV appears >>> "Released". >>> Now I want to launch the same template mysql-persistent and I want the >>> new pod uses the same PV but the PV doesn't appear "Available" again. >>> Is there any way to use the same volume? >>> >>> Thanks. >>> >>> _______________________________________________ >>> users mailing list >>> [email protected] >>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >>> >>> >> _______________________________________________ > users mailing list > [email protected] > http://lists.openshift.redhat.com/openshiftmm/listinfo/users > >
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
