-
Notifications
You must be signed in to change notification settings - Fork 95
Improving error message incase of version mismatch between client and server(#1103) #1693
Improving error message incase of version mismatch between client and server(#1103) #1693
Conversation
esx_service/vmdk_ops.py
Outdated
reply_string = err("vSphere Docker Volume Service client version ({}) is newer than server version ({}), " | ||
"please update the server.".format(client_protocol_version, SERVER_PROTOCOL_VERSION)) | ||
reply_string = err("There is a mismatch between vDVS client version ({}) and server version ({}), " | ||
"please make sure vDVS plugin and driver are from the same release version.".format(client_protocol_version, SERVER_PROTOCOL_VERSION)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as far as I recall these are not versions of the product but rather versions of communication protocol.
To avoid confusion with versions (e.g 0.16)I think it's better to say There is a mismatch between vDVS client (Docker plugin) protocol version and server (ESXi) protocol versionm which indicates that different versions of the product are installed on Guest and ESXi sides. Please make sure....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it is communication protocol version. Sure I will improve this in the next diff.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
root@sc-rdops-vm18-dhcp-57-89:~# docker volume create -d vsphere p3
Error response from daemon: create p3: VolumeDriver.Create: There is a mismatch between vDVS client (Docker plugin) protocol version
(2) and server (ESXi) protocol version (3) which indicates different
versions of the product are installed on Guest and ESXi sides,
please make sure vDVS plugin and driver are from the same release version.
root@sc-rdops-vm18-dhcp-57-89:~#
cd4b6cc
to
481d4d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #1103
Please refer #1103 (comment)
Testing done: Yes locally (by changing version)