hpe-storage / python-hpedockerplugin

HPE Native Docker Plugin
Apache License 2.0
36 stars 64 forks source link

Docker 3.2: Incorrect error message when Share is created without any CPG #681

Closed sonawane-shashikant closed 5 years ago

sonawane-shashikant commented 5 years ago

Summary - If we don't specify CPG in hpe.conf, and if we try to create share without passing -o cpg parameter, then share creation fails which is expected. But if we inspect the failed share, we see the incorrect error message as below.

"cpg": "OpenStack", "detailedStatus": "Share creation failed: Share creation on new FPG failed. Reason: FPG creation failed: Create new FPG DockerFpg_6 failed. Msg: Share backend exception: Failed to create FPG DockerFpg_6 on the backend. Reason CPG OpenStack doesn't exist on array",

[root@cld13b5 ~ ] # docker volume create -d hpe -o help=backends Error response from daemon: create ed5efd617e14a4bcc1df42b1c0cba8794e08acb597275b9e17e6592b391656d5:

NAME STATUS

DEFAULT FAILED [root@cld13b5 ~]# docker volume create -d hpe -o help=backends -o filePersona Error response from daemon: create 4941e2517b0d1f715733dd857f83e137ad630660a70f1042f300172d27fd896c:

NAME STATUS

DEFAULT_FILE OK [root@cld13b5 ~]# Incorrect Error message [root@cld13b5 ~]# docker volume create -d hpe -o help=backends -o filePersona Error response from daemon: create cf821ec4efa01e81d847f5b2ee7fd2005311ae2a359d173b218b4a3a32b50fe4:

NAME STATUS

DEFAULT_FILE OK [root@cld13b5 ~]# docker volume create -d hpe -o help=backends Error response from daemon: create 4ebd8a4f35281a84f028690e41dba522004c4f42aeeffa44d06b7aa2e54fcc4a:

NAME STATUS

DEFAULT FAILED [root@cld13b5 ~]# docker volume create -d hpe -o filePersona ff2be5987d768fc90f38b7fd674c8b6cff5a33dbe6936acd4b6575f775b9d16a [root@cld13b5 ~]# docker volume inspect ff2be5987d768fc90f38b7fd674c8b6cff5a33dbe6936acd4b6575f775b9d16a [ { "CreatedAt": "0001-01-01T00:00:00Z", "Driver": "hpe:latest", "Labels": {}, "Mountpoint": "", "Name": "ff2be5987d768fc90f38b7fd674c8b6cff5a33dbe6936acd4b6575f775b9d16a", "Options": { "filePersona": "" }, "Scope": "global", "Status": { "backend": "DEFAULT_FILE", "clientIPs": [], "cpg": "OpenStack", "detailedStatus": "Share creation failed: Share creation on new FPG failed. Reason: FPG creation failed: Create new FPG DockerFpg_6 failed. Msg: Share backend exception: Failed to create FPG DockerFpg_6 on the backend. Reason CPG OpenStack doesn't exist on array", "fpg": null, "fsMode": null, "fsOwner": null, "name": "ff2be5987d768fc90f38b7fd674c8b6cff5a33dbe6936acd4b6575f775b9d16a", "protocol": "nfs", "sharePath": null, "size": "1024 GiB", "status": "FAILED", "vfs": null } } ]

sonawane-shashikant commented 5 years ago

This is verified as FIXED. Please see attached console output for verification details.

FINAL-TEST-SCENARIO-5_681_VERIFICATION.docx