Bug #97652 mysql-shell Util.checkForServerUpgrade complains about not being the latest
Submitted: 15 Nov 2019 11:01 Modified: 15 Nov 2019 17:29
Reporter: Hrvoje Matijakovic Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Shell Upgrade Checker Severity:S3 (Non-critical)
Version:8.0.18 OS:Linux
Assigned to: CPU Architecture:Any

[15 Nov 2019 11:01] Hrvoje Matijakovic
Description:
Trying one of the examples from mysql-shell --help: 
$ mysqlsh -- util check-for-server-upgrade root@localhost --output-format=JSON

results in an error:
ERROR: Util.checkForServerUpgrade: Detected MySQL server version is 8.0.18, but this tool supports server versions up to 8.0.17. You must upgrade MySQL Shell to the latest version to be able to check this server

Installed packages are latest version available from the community repos:

[root@centos7 ~]# rpm -qa | grep mysql
mysql80-community-release-el7-1.noarch
mysql-community-common-8.0.18-1.el7.x86_64
mysql-community-client-8.0.18-1.el7.x86_64
mysql-community-libs-compat-8.0.18-1.el7.x86_64
mysql-community-libs-8.0.18-1.el7.x86_64
mysql-community-server-8.0.18-1.el7.x86_64
mysql-shell-8.0.18-1.el7.x86_64

How to repeat:
Running:
mysqlsh -- util check-for-server-upgrade root@localhost --output-format=JSON

will result in:
ERROR: Util.checkForServerUpgrade: Detected MySQL server version is 8.0.18, but this tool supports server versions up to 8.0.17. You must upgrade MySQL Shell to the latest version to be able to check this server
[15 Nov 2019 17:29] Konrad Olesinski
This is expected behavior. checkForServerUpgrade is expected to verify if server can be upgraded, so the tool released with version 8.0.18 can only verify servers older than 8.0.18. To be able to check version 8.0.18 Shell version 8.0.19 is needed.