Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A YUM/DNF repository defined multiple times #66

Closed
atoomic opened this issue Mar 25, 2022 · 2 comments · Fixed by #90
Closed

A YUM/DNF repository defined multiple times #66

atoomic opened this issue Mar 25, 2022 · 2 comments · Fixed by #90
Assignees

Comments

@atoomic
Copy link
Collaborator

atoomic commented Mar 25, 2022

Noticed this issue after updating a VM from MySQL 5.7 to MySQL 8.0

====> * tmp_actor_to_satisfy_sanity_checks
        The actor does NOTHING but satisfy static sanity checks
====> * check_initramfs_tasks
        Inhibit the upgrade if conflicting "initramfs" tasks are detected
==> Processing phase `Reports`
====> * verify_check_results
        Check all dialogs and notify that user needs to make some choices.
====> * verify_check_results
        Check all generated results messages and notify user about them.

============================================================
                     UPGRADE INHIBITED
============================================================

Upgrade has been inhibited due to the following problems:
    1. Inhibitor: A YUM/DNF repository defined multiple times
Consult the pre-upgrade report for details and possible remediation.

============================================================
                     UPGRADE INHIBITED
============================================================


Debug output written to /var/log/leapp/leapp-upgrade.log

============================================================
                           REPORT
============================================================

A report has been generated at /var/log/leapp/leapp-report.json
A report has been generated at /var/log/leapp/leapp-report.txt

============================================================

Extract from the leapp-report

Risk Factor: medium (inhibitor)
Title: A YUM/DNF repository defined multiple times
Summary: The following repositories are defined multiple times inside the "upgrade" container:
    - Mysql-tools-preview
    - Mysql-tools-community
    - Mysql-connectors-community
Remediation: [hint] Remove the duplicate repository definitions or change repoids of conflicting repositories on the system to prevent the conflict.
Key: b8e0ad498e1d4a07ac560407ed814cf00a04b297
[root@elevation-1 ~]# grep -C5 -r Mysql-tools-preview /etc/yum.repos.d/
/etc/yum.repos.d/Mysql57.repo-baseurl=https://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
/etc/yum.repos.d/Mysql57.repo-enabled=0
/etc/yum.repos.d/Mysql57.repo-gpgcheck=1
/etc/yum.repos.d/Mysql57.repo-gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2022
/etc/yum.repos.d/Mysql57.repo-       https://repo.mysql.com/RPM-GPG-KEY-mysql
/etc/yum.repos.d/Mysql57.repo:[Mysql-tools-preview]
/etc/yum.repos.d/Mysql57.repo-name=MySQL Tools Preview
/etc/yum.repos.d/Mysql57.repo-baseurl=https://repo.mysql.com/yum/mysql-tools-preview/el/7/$basearch/
/etc/yum.repos.d/Mysql57.repo-enabled=0
/etc/yum.repos.d/Mysql57.repo-gpgcheck=1
/etc/yum.repos.d/Mysql57.repo-gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2022
--
/etc/yum.repos.d/Mysql80.repo-baseurl=https://repo.mysql.com/yum/mysql-8.0-community/el/7/$basearch/
/etc/yum.repos.d/Mysql80.repo-enabled=1
/etc/yum.repos.d/Mysql80.repo-gpgcheck=1
/etc/yum.repos.d/Mysql80.repo-gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2022
/etc/yum.repos.d/Mysql80.repo-       https://repo.mysql.com/RPM-GPG-KEY-mysql
/etc/yum.repos.d/Mysql80.repo:[Mysql-tools-preview]
/etc/yum.repos.d/Mysql80.repo-name=MySQL Tools Preview
/etc/yum.repos.d/Mysql80.repo-baseurl=https://repo.mysql.com/yum/mysql-tools-preview/el/7/$basearch/
/etc/yum.repos.d/Mysql80.repo-enabled=0
/etc/yum.repos.d/Mysql80.repo-gpgcheck=1
/etc/yum.repos.d/Mysql80.repo-gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2022
@atoomic
Copy link
Collaborator Author

atoomic commented Mar 25, 2022

[root@elevation-1 ~]# cat /etc/yum.repos.d/Mysql57.repo
[Mysql-connectors-community]
name=MySQL Connectors Community
baseurl=https://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2022
       https://repo.mysql.com/RPM-GPG-KEY-mysql
[Mysql-tools-community]
name=MySQL Tools Community
baseurl=https://repo.mysql.com/yum/mysql-tools-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2022
       https://repo.mysql.com/RPM-GPG-KEY-mysql
[Mysql57-community]
name=MySQL 5.7 Community Server
baseurl=https://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2022
       https://repo.mysql.com/RPM-GPG-KEY-mysql
[Mysql-tools-preview]
name=MySQL Tools Preview
baseurl=https://repo.mysql.com/yum/mysql-tools-preview/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2022
       https://repo.mysql.com/RPM-GPG-KEY-mysql
[root@elevation-1 ~]# cat /etc/yum.repos.d/Mysql80.repo
[Mysql-connectors-community]
name=MySQL Connectors Community
baseurl=https://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2022
       https://repo.mysql.com/RPM-GPG-KEY-mysql
[Mysql-tools-community]
name=MySQL Tools Community
baseurl=https://repo.mysql.com/yum/mysql-tools-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2022
       https://repo.mysql.com/RPM-GPG-KEY-mysql
[Mysql80-community]
name=MySQL 8.0 Community Server
baseurl=https://repo.mysql.com/yum/mysql-8.0-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2022
       https://repo.mysql.com/RPM-GPG-KEY-mysql
[Mysql-tools-preview]
name=MySQL Tools Preview
baseurl=https://repo.mysql.com/yum/mysql-tools-preview/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-MySQL-2

@toddr
Copy link
Member

toddr commented Mar 30, 2022

We want elevate to remove the old 5.7 and 5.5 repos since we're blocked from using them anyway.

@sloanebernstein sloanebernstein self-assigned this Apr 7, 2022
sloanebernstein added a commit that referenced this issue Apr 12, 2022
Currently, MySQL repositories are being removed during stage 2, but
MySQL packages are being removed in stage 3 prior to invoking leapp.
This is likely to be causing problems. Instead, defer disabing the repos
until after the packages have been removed.

Fixes #66.
@toddr toddr closed this as completed in #90 Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants