Description of problem: Using the steps from https://access.redhat.com/articles/4977891 and creating a repo on the system, fails when you use file:/// as the baseurl in /etc/leapp/files/leapp_upgrade_repositories.repo Version-Release number of selected component (if applicable): leapp-0.10.0-2.el7_8 How reproducible: Everytime Steps to Reproduce: 1. Making baseos and appstream repos on the RHEL 7 machine - Requires a RHEL 8 system to reposync them both and the repodata 2. # cat /etc/leapp/files/leapp_upgrade_repositories.repo [appstream] name=appstream baseurl=file:///repo/appstream [baseos] name=baseos baseurl=file:///repo/baseos 3. leapp upgrade --no-rhsm Actual results: leapp fails to syncronize cache for the repositories Expected results: leapp uses the repos Additional info: If you put the repo in /var/www/html and use baseurl=http://localhost/<name> then it works.
Hi John, thanks for the report. We will look at it closer.
Thanks John for the info, I'm interested in seeing what errors you were getting because I'm running into slightly different problem -- can you please verify that your local mirror also has `repodata` folder? I did a quick test and here's what I found: * I was testing this with only BASEOS repository being local mirror defined with file:/// - APPSTREAM was too big for my VM disk Nevertheless, it seems like RPMs provided via fille:/// repository are treated as "local RPMs" and DNF somewhat refuses to depsolve those together with non-file:/// repository: ``` 2020-05-28 10:02:09.931819 [ERROR] Actor: dnf_transaction_check Message: DNF execution failed with non zero exit code. STDOUT: Last metadata expiration check: 0:00:48 ago on Thu May 28 10:01:19 2020. Package python-requests-2.6.0-9.el7_8.noarch is already installed. Package python-virtualenv-15.1.0-4.el7_8.noarch is already installed. Package python-urllib3-1.10.2-7.el7.noarch is already installed. Package python-libs-2.7.5-88.el7.x86_64 is already installed. Package python-setuptools-0.9.8-7.el7.noarch is already installed. Package git-1.8.3.1-22.el7_8.x86_64 is already installed. Package python-devel-2.7.5-88.el7.x86_64 is already installed. STDERR: No matches found for the following disable plugin patterns: subscription-manager Warning: Packages marked by Leapp for install not found in repositories metadata: perl-ExtUtils-Command python2-lxml perl-ExtUtils-Miniperl python3-pyOpenSSL gdb-headless perl-Text-Balanced python3-abrt-addon perl-Math-BigInt-FastCalc mariadb-connector-c python3-libreport python3-systemd dnf-plugin-spacewalk python2-pyyaml python3-babel perl-B-Debug perl-PerlIO-via-QuotedPrint perl-Devel-PPPort perl-open postfix-pgsql python2-ipaddress postfix-ldap git-core-doc perl-perlfaq python2-babel perl-IPC-SysV perl-Devel-Peek python3-langtable perl-Attribute-Handlers python3-pycurl perl-Filter-Simple perl-SelfLoader python2-backports python2-six perl-Net-Ping perl-Memoize perl-bignum git-subtree perl-Pod-Html python2-chardet python2-backports-ssl_match_hostname python3-lxml python3-augeas perl-Test perl-Devel-SelfStubber redhat-backgrounds postfix-mysql perl-Unicode-Collate python3-abrt python3-hwdata python36-devel python3-newt perl-Math-BigRat python3-virtualenv Transaction check: Problem 1: conflicting requests - nothing provides python2-six needed by leapp-deps-el8-5.0.0-100.202005261959Z.3a0acf4.master.el8.noarch Problem 2: conflicting requests - nothing provides python3 needed by leapp-repository-deps-el8-5.0.0-100.202005261959Z.3a0acf4.master.el8.noarch Problem 3: conflicting requests Problem 4: package git-1.8.3.1-22.el7_8.x86_64 requires /usr/bin/python, but none of the providers can be installed - conflicting requests ```
Known issue documented in https://access.redhat.com/articles/4977891#repos-known-issues
Until we have a proper fix for this issue, in the next release of leapp, the upgrade won't be allowed if there's a file:/// used in a repo baseurl. Related upstream PR: https://github.com/oamg/leapp-repository/pull/531