Bug 1951514 - Fedora 34 containers are still in rawhide branch
Summary: Fedora 34 containers are still in rawhide branch
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: toolbox
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Debarshi Ray
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-20 10:31 UTC by Łukasz Posadowski
Modified: 2021-06-16 16:37 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-06-16 16:37:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Łukasz Posadowski 2021-04-20 10:31:32 UTC
Hello.
I picked toolbox and version 34 above, since they are making the most sense, but I feel the problem exists elsewhere.

Description of problem:
When I create container based on Fedora 34, it pulls packages from Rawhide branch.

Version-Release number of selected component (if applicable):
It's on every distro, that uses toolbox.

How reproducible:
Always

Steps to Reproduce:
1. toolbox create --distro fedora --release 34 --container test34
2. toolbox enter test34
3. sudo su -
4. dnf repolist

Actual results:
fedora-cisco-openh264
rawhide
rawhide-modular

Expected results:
Resitories from 34 branch.

Additional info:
Packages from Rawhide are available and they are installing fine, but F34 containers doesn't have Rawhide gpg keys installed.

Comment 1 Debarshi Ray 2021-04-27 00:05:56 UTC
I suspect that you had an old fedora-toolbox:34 image cached locally on your system from the time when Fedora 34 was Rawhide. See 'toolbox list'.

I'd suggest deleting the image and re-creating the container, which will pull a new image as part of the process.

Comment 2 Łukasz Posadowski 2021-04-27 11:13:03 UTC
Thanks for a suggestion. I checked just now:

# docker system prune --all
# toolbox create --distro fedora --release 34 --container test11
# toolbox enter test11
# sudo su -
# dnf update
[pulls rawhide packages]


# toolbox list
7f6c60b1df02   registry.fedoraproject.org/f34/fedora-toolbox:34   6 months ago

So yes, I'm pulling rather old image of Fedora 34, but I still don't know why.

Comment 3 Debarshi Ray 2021-04-27 18:18:03 UTC
Try using the rm and rmi commands of toolbox(1) or podman(1). Toolbox uses Podman underneath, and Docker has an entirely different store for containers and images.

Comment 4 Łukasz Posadowski 2021-04-28 16:59:00 UTC
Sorry, it was "podman system prune -all". I really don't know what I pasted here.

Comment 5 Debarshi Ray 2021-04-29 18:45:14 UTC
Ok.

The manual says that 'system prune' is meant to remove 'unused containers'. I am not sure, off hand, what 'unused' means in this context. I'd use 'toolbox list' to check if it did actually remove the old image and the container.

If it didn't, I'd use 'rm' and 'rmi' to ensure that.

Comment 6 Łukasz Posadowski 2021-05-06 11:56:26 UTC
Thank You for patience. :) I did
podman system prune -a
podman image prune -a

"toolbox list" showed no container and no image.

Then:

$ toolbox create --distro fedora --release 34 --container test11

Pulling registry.fedoraproject.org/f34/fedora-toolbox:34: [...]

$ toolbox list
IMAGE ID      IMAGE NAME                                        CREATED
7f6c60b1df02  registry.fedoraproject.org/f34/fedora-toolbox:34  7 months ago

CONTAINER ID  CONTAINER NAME  CREATED             STATUS      IMAGE NAME
570162950f13  test11          About a minute ago  configured  registry.fedoraproject.org/f34/fedora-toolbox:34

$ toolbox enter test11
$ sudo su -

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.


Welcome to the Toolbox; a container where you can install and run
all your tools.

 - Use DNF in the usual manner to install command line tools.
 - To create a new tools container, run 'toolbox create'.

For more information, see the documentation.

⬢[root@toolbox ~]# dnf update
Fedora 34 openh264 (From Cisco) - x86_64                                        1.4 kB/s | 2.5 kB     00:01
Fedora - Modular Rawhide - Developmental packages for the next Fedora release   1.0 MB/s | 1.9 MB     00:01
Fedora - Rawhide - Developmental packages for the next Fedora release           5.0 MB/s |  57 MB     00:11
Dependencies resolved.
================================================================================================================
 Package                                  Architecture  Version                            Repository      Size
================================================================================================================
Upgrading:
 alternatives                             x86_64        1.15-2.fc34                        rawhide         35 k
 audit-libs                               x86_64        3.0.1-2.fc35                       rawhide        115 k
 basesystem                               noarch        11-11.fc34                         rawhide        7.0 k
 bash                                     x86_64        5.1.4-1.fc35                       rawhide        1.7 M
[...]

Comment 7 Jens Petersen 2021-06-08 05:23:52 UTC
(In reply to Łukasz Posadowski from comment #2)
> # toolbox list
> 7f6c60b1df02   registry.fedoraproject.org/f34/fedora-toolbox:34   6 months
> ago
> 
> So yes, I'm pulling rather old image of Fedora 34, but I still don't know
> why.

Please use registry.fedoraproject.org/fedora-toolbox:34.
(f34/fedora-toolbox:34 is deprecated and obsolete).
It would be nice if there was a redirect and
also if toolbox always offered to pull the latest image.

Comment 8 Debarshi Ray 2021-06-16 11:11:31 UTC
(In reply to Jens Petersen from comment #7)
> (In reply to Łukasz Posadowski from comment #2)
> > # toolbox list
> > 7f6c60b1df02   registry.fedoraproject.org/f34/fedora-toolbox:34   6 months
> > ago
> > 
> > So yes, I'm pulling rather old image of Fedora 34, but I still don't know
> > why.
> 
> Please use registry.fedoraproject.org/fedora-toolbox:34.
> (f34/fedora-toolbox:34 is deprecated and obsolete).
> It would be nice if there was a redirect and
> also if toolbox always offered to pull the latest image.

Oh, yes, that's it. Thanks, Jens.

Maybe your toolbox RPM is too old, or the older fedora-toolbox:34 image actually never got deleted from your system.

Comment 9 Łukasz Posadowski 2021-06-16 16:36:44 UTC
Thank You. I would never figure that out. 

Fixed. :)


Note You need to log in before you can comment on or make changes to this bug.