Skip to content
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

Non-existant volume on backend, import should fail on OC and K8s #738

Open
c-raghav opened this issue Sep 23, 2019 · 1 comment
Open

Non-existant volume on backend, import should fail on OC and K8s #738

c-raghav opened this issue Sep 23, 2019 · 1 comment
Assignees

Comments

@c-raghav
Copy link

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
@c-raghav
Copy link
Author

Find hpe.conf file as well

[DEFAULT]
host_etcd_ip_address=10.50.0.156
hpe3par_username=3paradm
hpe3par_password=3pardata
hpe3par_cpg=SHASHI-CPG
hpedockerplugin_driver=hpedockerplugin.hpe.hpe_3par_iscsi.HPE3PARISCSIDriver
host_etcd_port_number=23790
ssh_hosts_key_file=/root/.ssh/known_hosts
logging=DEBUG
san_ip=10.50.3.9
san_login=3paradm
san_password=3pardata
hpe3par_api_url=https://10.50.3.9:8080/api/v1
hpe3par_iscsi_ips=10.50.3.59,10.50.3.60
[3PAR1]
host_etcd_ip_address=10.50.0.156
hpe3par_username=3paradm
hpe3par_password=3pardata
hpe3par_cpg=FC_r1
hpedockerplugin_driver=hpedockerplugin.hpe.hpe_3par_fc.HPE3PARFCDriver
host_etcd_port_number=23790
ssh_hosts_key_file=/root/.ssh/known_hosts
san_ip=10.50.3.24
san_login=3paradm
san_password=3pardata
hpe3par_api_url=https://10.50.3.24:8080/api/v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants