Bug 891910

Summary: The 'cmdline-instrepo' repo was rejected by yum as invalid.
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: fedupAssignee: Will Woods <wwoods>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: tflink, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-04 17:02:53 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 Kamil Páral 2013-01-04 12:31:55 UTC
Description of problem:
> # fedup-cli --network 18 --debuglog fedup.log --instrepo http://dl.fedoraproject.org/pub/alt/stage/18-TC4/Fedora/x86_64/os
> setting up repos...
> fedora/18/x86_64/metalink                                                                                                      |  24 kB     00:00     
> fedora/18/x86_64                                                                                                               | 4.2 kB     00:00     
> fedora/primary_db                                                                                                              |  17 MB     00:10     
> updates/18/x86_64/metalink                                                                                                     |  30 kB     00:00     
> updates/18/x86_64                                                                                                              | 2.6 kB     00:00     
> updates/primary_db                                                                                                             | 1.2 kB     00:00     
> Error: can't get boot images.
> The 'cmdline-instrepo' repo was rejected by yum as invalid.

But this works:

> # fedup-cli --network 18 --debuglog fedup.log --instrepo http://dl.fedoraproject.org/pub/fedora/linux/development/18/x86_64/os

I think fedup now doesn't work with repositories that doesn't contain a package repository. It used to work before, it's even mentioned in the test case:
https://fedoraproject.org/wiki/QA:Testcase_upgrade_fedup_cli_previous_desktop
" The URL needs to point to the initrd.img and vmlinuz, but not necessarily all rpm packages. "

Is that an intentional change or a bug?

Version-Release number of selected component (if applicable):
fedup-0.7.2-1.fc17.noarch

Comment 1 Tim Flink 2013-01-04 16:24:24 UTC
(In reply to comment #0)
> Description of problem:
> > # fedup-cli --network 18 --debuglog fedup.log --instrepo http://dl.fedoraproject.org/pub/alt/stage/18-TC4/Fedora/x86_64/os

I'll check with rel-eng but I'm pretty sure this is NOTABUG. IIRC, the TC/RC dirs on secondary01 (dl.fedoraproject/pub/alt/) are not made into repos which is required for fedup.

> But this works:
> 
> > # fedup-cli --network 18 --debuglog fedup.log --instrepo http://dl.fedoraproject.org/pub/fedora/linux/development/18/x86_64/os

This is expected and is updated with every TC/RC - this is repo-ized and will work with fedup.

> I think fedup now doesn't work with repositories that doesn't contain a
> package repository. It used to work before, it's even mentioned in the test
> case:
> https://fedoraproject.org/wiki/QA:Testcase_upgrade_fedup_cli_previous_desktop
> " The URL needs to point to the initrd.img and vmlinuz, but not necessarily
> all rpm packages. "

Some of that change was made yesterday due to a misunderstanding but it was never very clear, I'll fix it today.

Comment 2 Tim Flink 2013-01-04 16:58:24 UTC
(In reply to comment #0)
> But this works:
> 
> > # fedup-cli --network 18 --debuglog fedup.log --instrepo http://dl.fedoraproject.org/pub/fedora/linux/development/18/x86_64/os

This is updated with whatever is in stable when a push is done - it's generated by pungi. So it should generally have close to an up-to-date upgrade.img in it (at the moment fedup-dracut-0.7.1-1 is stable, so it's not quite up to date, though)

Comment 3 Tim Flink 2013-01-04 17:02:53 UTC
I confirmed with rel-eng that the TC/RC dirs are not supposed to be valid repos. That makes this expected behavior for now and I'm closing as NOTABUG. If we want to test fedup-dracut builds that aren't yet in stable, we'll have to figure out another method of building/distributing them (fedorapeople, smoke builds etc.)