-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Non-existant volume on backend, import should fail on OC and K8s,
On trying to import the volume across array, the PVC is going to bound state and
POD to running state, volume is being created default array,
no error being seen as unable to create,
Tried on docker command, it works fine, same is expected from K8s and OC
[root@cld6b15-openshift-master00 YAMLs for 3.3]# docker volume create -d hpe --name imp-rc -o importVol="SHASHI-FULL" -o backend=3PAR1
Error response from daemon: create imp-rc: Volume:SHASHI-FULL does not exists Error: Not found (HTTP 404) 23 - volume does not exist
Find the yml below
--
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-importvol
spec:
capacity:
storage: 100Gi
accessModes:
- ReadWriteOnce
flexVolume:
driver: hpe.com/hpe
options:
name: IMPORTED-VOLUME
importVol: "SHASHI-FULL"
#importVol: <VOLUME ON 3PAR>
backend: 3PAR1
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: pvc-importvol
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
apiVersion: v1
kind: Pod
metadata:
name: pod-importvol
spec:
containers:
- name: minio
image: minio/minio:latest
args:- server
- /export
env: - name: MINIO_ACCESS_KEY
value: minio - name: MINIO_SECRET_KEY
value: doryspeakswhale
ports: - containerPort: 9000
volumeMounts: - name: export
mountPath: /export
volumes: - name: export
persistentVolumeClaim:
claimName: pvc-importvol