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

Multiple matches of cockpit-* package #21035

Open
leomoty opened this issue Sep 23, 2024 · 7 comments
Open

Multiple matches of cockpit-* package #21035

leomoty opened this issue Sep 23, 2024 · 7 comments
Labels
bug page:applications question Further information is requested

Comments

@leomoty
Copy link
Contributor

leomoty commented Sep 23, 2024

Explain what happens

Seems to be the same as #8731.

Multiple matches of cockpit-machines;319-1.el9;noarch;copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview

Interestingly dnf update resolves just fine, as I installed with it, and no custom command/enable repos or anything:

 dnf list installed | grep cockpit-machines
cockpit-machines.noarch                       319-1.el9                           @copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview

Also yes, I acknowledge that a regular user will never hit this, at least not with cockpit packages.

Version of Cockpit

322

Where is the problem in Cockpit?

Software updates

Server operating system

other

Server operating system version

Rocky Linux 9.4

What browsers are you using?

Chrome

System log

No response

@martinpitt
Copy link
Member

Hey @leomoty ! So the "list" view works, but this happens when you try to install a package? Can you please give me the output of

pkcon resolve --filter newest cockpit-machines

? This isn't quite what the Apps page does, but I didn't figure out how to give more than one filter to the pkcon UI (it's not documented, and no Google hits -- seems it supports just one). I guess that this has more than one result, and I'm interested in how it looks like -- perhaps we can tighten the filter more.

Thanks!

@martinpitt martinpitt added the question Further information is requested label Sep 27, 2024
@leomoty
Copy link
Contributor Author

leomoty commented Sep 27, 2024

Hey @leomoty ! So the "list" view works, but this happens when you try to install a package?

Yea, the list seems just fine.

Can you please give me the output of

pkcon resolve --filter newest cockpit-machines
pkcon resolve --filter newest cockpit-machines
Resolving                     [=========================]         
Installed       cockpit-machines-319-1.el9.noarch (installed:copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview)      Cockpit user interface for virtual machines
Available       cockpit-machines-319-1.el9.src (copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview)   Cockpit user interface for virtual machines

@martinpitt
Copy link
Member

Hmm, that actually looks fine -- the real code uses PK.Enum.FILTER_ARCH | PK.Enum.FILTER_NOT_SOURCE | PK.Enum.FILTER_NEWEST | PK.Enum.FILTER_NOT_INSTALLED, so if you do pkcon resolve --filter ~installed cockpit-machines you should not see the "Installed" line again. I was hoping for two "available" lines.

So this is more difficult -- unfortunately the PackageKit API doesn't work well with busctl due to the transient Transaction objects, so this needs some more debugging effort. I'll think about this some more.

If you have a way to reproduce this reliably (we have access to CentOS, RHEL, Fedora, Debian, and Ubuntu), that'd be much appreciated of course.

@leomoty
Copy link
Contributor Author

leomoty commented Sep 27, 2024

If I downgrade cockpit machines to 318, I can replicate the issue again when trying to upgrade to 319:

image

pkcon resolve --filter newest cockpit-machines
Resolving                     [=========================]         
Installed       cockpit-machines-318.1-1.el9.noarch (installed:copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview)    Cockpit user interface for virtual machines
Available       cockpit-machines-319-1.el9.noarch (copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview)        Cockpit user interface for virtual machines
Available       cockpit-machines-319-1.el9.src (copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview)   Cockpit user interface for virtual machines

Also

pkcon resolve --filter ~installed cockpit-machines
Resolving                     [=========================]         
Available       cockpit-machines-318.1-1.el9.noarch (copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview)      Cockpit user interface for virtual machines
Available       cockpit-machines-318.1-1.el9.src (copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview) Cockpit user interface for virtual machines
Available       cockpit-machines-319-1.el9.noarch (copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview)        Cockpit user interface for virtual machines
Available       cockpit-machines-319-1.el9.src (copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview)   Cockpit user interface for virtual machines
Available       cockpit-machines-308.3-1.el9_4.noarch (appstream)               Cockpit user interface for virtual machines

@martinpitt
Copy link
Member

martinpitt commented Sep 27, 2024

A-ha! Do the ".src" ones disappear with pkcon resolve --filter ~source cockpit-machines?

@leomoty
Copy link
Contributor Author

leomoty commented Sep 27, 2024

pkcon resolve --filter ~source cockpit-machines
Resolving                     [=========================]         
Querying                      [=========================]         
Loading cache                 [=========================]         
Installed       cockpit-machines-318.1-1.el9.noarch (installed:copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview)    Cockpit user interface for virtual machines
Available       cockpit-machines-319-1.el9.noarch (copr:copr.fedorainfracloud.org:group_cockpit:cockpit-preview)        Cockpit user interface for virtual machines
Available       cockpit-machines-308.3-1.el9_4.noarch (appstream)               Cockpit user interface for virtual machines

yep, src is gone

@martinpitt
Copy link
Member

OK, thanks -- so either packagekit D-Bus API messes up setting multiple filters at once, and it indeed results in more than one result then, or all of the filters still match two results (same version from COPR and the official repos?). I'm not entirely sure how to fix that on the cockpit side, but I'll try to reproduce it next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug page:applications question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants