Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Improving error message incase of version mismatch between client and server(#1103) #1693

Conversation

shuklanirdesh82
Copy link
Contributor

@shuklanirdesh82 shuklanirdesh82 commented Aug 4, 2017

Fixes #1103

Please refer #1103 (comment)

Testing done: Yes locally (by changing version)

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:~#

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))
Copy link
Contributor

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....

Copy link
Contributor Author

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!

Copy link
Contributor Author

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:~#

@shuklanirdesh82 shuklanirdesh82 force-pushed the protolMismatchError.shuklanirdesh82 branch from cd4b6cc to 481d4d2 Compare August 4, 2017 02:05
Copy link
Contributor

@msterin msterin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@lipingxue lipingxue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shuklanirdesh82 shuklanirdesh82 merged commit e99700d into vmware-archive:master Aug 4, 2017
@shuklanirdesh82 shuklanirdesh82 deleted the protolMismatchError.shuklanirdesh82 branch August 5, 2017 04:29
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants