Bug 1515172

Summary: cannot upgrade with a custom download directory
Product: [Fedora] Fedora Reporter: Domenico Ferrari <domfe>
Component: dnf-plugins-extrasAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 26CC: dmach, extras-orphan, ignatenko, jkadlcik, jmracek, mblaha, rpm-software-management, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-30 10:01:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Domenico Ferrari 2017-11-20 10:19:48 UTC
Description of problem:
dnf system-upgrade doesn't upgrade if packages are downloaded with "--downloaddir" 

Steps to Reproduce:
1. dnf system-upgrade --releasever 27 --downloaddir /mnt/disk1/sysup --downloadonly
2. dnf system-upgrade reboot

Actual results:
Upgrade starts but after a few seconds the system reboots and starts in Fedora 26

Expected results:
System completes upgrade and starts in Fedora 27

Additional info:
dnf system-upgrade log doesn't show any logs and I can't find other logs.
I modified the systemd startup script to remove "reboot" after the process complete and I saw an error about connecting to mirror site.
I proceeded by adding "-C" to the script and I saw a bunch of errors about checksum failures cause system-upgrade is searching for packages in the default location and not in the directory provided on the command line.
On the same system I was able to upgrade using default download directory, not using --downloaddir and --downloadonly options

Comment 1 Marek Blaha 2017-11-30 10:01:00 UTC

*** This bug has been marked as a duplicate of bug 1513823 ***