Bug #101478 yum update of mysql-connector-python fails
Submitted: 5 Nov 2020 13:46 Modified: 5 Nov 2020 14:43
Reporter: Marcel Berger Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Package Repos Severity:S2 (Serious)
Version:5.7 OS:Red Hat (Release 7.8)
Assigned to: CPU Architecture:x86

[5 Nov 2020 13:46] Marcel Berger
Description:
yum update of mysql-connector-python-8.0.22-1.el7.x86_64 failed

yum update output:

Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.7.31-1.el7 will be updated
---> Package mysql-community-client.x86_64 0:5.7.32-1.el7 will be an update
---> Package mysql-community-common.x86_64 0:5.7.31-1.el7 will be updated
---> Package mysql-community-common.x86_64 0:5.7.32-1.el7 will be an update
---> Package mysql-community-libs.x86_64 0:5.7.31-1.el7 will be updated
---> Package mysql-community-libs.x86_64 0:5.7.32-1.el7 will be an update
---> Package mysql-community-libs-compat.x86_64 0:5.7.31-1.el7 will be updated
---> Package mysql-community-libs-compat.x86_64 0:5.7.32-1.el7 will be an update
---> Package mysql-community-server.x86_64 0:5.7.31-1.el7 will be updated
---> Package mysql-community-server.x86_64 0:5.7.32-1.el7 will be an update
---> Package mysql-connector-python.x86_64 0:8.0.21-1.el7 will be updated
---> Package mysql-connector-python.x86_64 0:8.0.22-1.el7 will be obsoleting
--> Processing Dependency: mysql-community-client-plugins = 8.0.22 for package: mysql-connector-python-8.0.22-1.el7.x86_64
---> Package mysql-connector-python-cext.x86_64 0:8.0.21-1.el7 will be obsoleted
--> Finished Dependency Resolution
Error: Package: mysql-connector-python-8.0.22-1.el7.x86_64 (mysql-connectors-community)
           Requires: mysql-community-client-plugins = 8.0.22
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

Error: Package: mysql-connector-python-8.0.22-1.el7.x86_64 (mysql-connectors-community)
           Requires: mysql-community-client-plugins = 8.0.22
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Active Yum Repos:

Repo-id      : mysql-connectors-community/x86_64
Repo-name    : MySQL Connectors Community
Repo-revision: 1602801397
Repo-updated : Fri Oct 16 00:36:36 2020
Repo-pkgs    : 175
Repo-size    : 588 M
Repo-baseurl : http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/
Repo-expire  : 21,600 second(s) (last: Thu Nov  5 13:33:21 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/mysql-community.repo

Repo-id      : mysql-tools-community/x86_64
Repo-name    : MySQL Tools Community
Repo-revision: 1603041459
Repo-updated : Sun Oct 18 19:17:39 2020
Repo-pkgs    : 120
Repo-size    : 3.9 G
Repo-baseurl : http://repo.mysql.com/yum/mysql-tools-community/el/7/x86_64/
Repo-expire  : 21,600 second(s) (last: Thu Nov  5 13:33:21 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/mysql-community.repo

Repo-id      : mysql57-community/x86_64
Repo-name    : MySQL 5.7 Community Server
Repo-revision: 1602675845
Repo-updated : Wed Oct 14 13:44:05 2020
Repo-pkgs    : 464
Repo-size    : 17 G
Repo-baseurl : http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/
Repo-expire  : 21,600 second(s) (last: Thu Nov  5 13:33:21 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/mysql-community.repo

How to repeat:
Attempt to yum update
[5 Nov 2020 13:56] MySQL Verification Team
Thank you for the bug report. Duplicate of https://bugs.mysql.com/bug.php?id=101464.
[5 Nov 2020 14:03] Terje Røsten
Hi Marcel!

See referenced bug for workaround.
[5 Nov 2020 14:43] Marcel Berger
Hi terje

Thank you for the fast reply.

In your referenced ticket https://bugs.mysql.com/bug.php?id=101464 a workaround is described. My question now is, what happens if another update of the mysql-connector-python package is delivered in the near future? Will yum update not complain about the same package dependency on mysql-community-client-plugins again and deliver an error?
[3 Dec 2020 23:40] Michael MacDonald
Any chance a new version of mysql-connector-python might be delivered in the future without the same dependency?  The workaround works "rpm -Uvh https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-8.0.22-1.el7.x... --nodeps" but it's kind of annoying to have to do that on every server.

We're trying into it with MySQL 5.6 / 5.7 hosts on RHEL6 and RHEL7