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

container layering operation misses --install #4192

Closed
dustymabe opened this issue Dec 6, 2022 · 0 comments · Fixed by #4193
Closed

container layering operation misses --install #4192

dustymabe opened this issue Dec 6, 2022 · 0 comments · Fixed by #4193

Comments

@dustymabe
Copy link
Member

Host system details

Container build. The container has rpm-ostree-2022.16-1.fc37.x86_64.

Expected vs actual behavior

I'm seeing a case where running a command on a system versus in a container build gives different results. In a Fedora CoreOS system I'm getting:

Upgraded:
  containers-common 4:1-73.fc37 -> 4:1-79.fc37
  containers-common-extra 4:1-73.fc37 -> 4:1-79.fc37
  podman 4:4.3.1-1.fc37 -> 101:0.0.git.17339.73e6539f-1.fc37
Removed:
  podman-plugins-4:4.3.1-1.fc37.x86_64
Added:
  podman-quadlet-101:0.0.git.17339.73e6539f-1.fc37.x86_64

Whereas in a container build I'm getting:

Installing 3 packages:
  containers-common-4:1-79.fc37.noarch (copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next)
  containers-common-extra-4:1-79.fc37.noarch (copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next)
  podman-101:0.0.git.17339.73e6539f-1.fc37.x86_64 (copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next)
Removing 1 packages:
  podman-plugins-4:4.3.1-1.fc37.x86_64 (@System)

Steps to reproduce it

To see the behavior how it should be on an FCOS system:

# cd /etc/yum.repos.d/
# curl -LO https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-37/rhcontainerbot-podman-next-fedora-37.repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   420  100   420    0     0   3064      0 --:--:-- --:--:-- --:--:--  3065
# rpm-ostree override replace --experimental \
    --from repo=copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next \
    podman containers-common containers-common-extra \
    --install podman-quadlet --remove podman-plugins
Checking out tree bd2c579... done
Enabled rpm-md repositories: fedora-cisco-openh264 fedora-modular updates-modular updates fedora copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next updates-archive
Updating metadata for 'fedora-cisco-openh264'... done
Updating metadata for 'fedora-modular'... done
Updating metadata for 'updates-modular'... done
Updating metadata for 'updates'... done
Updating metadata for 'fedora'... done
Updating metadata for 'copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next'... done
Updating metadata for 'updates-archive'... done
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264'; generated: 2022-10-06T11:01:40Z solvables: 4
rpm-md repo 'fedora-modular'; generated: 2022-11-10T09:23:24Z solvables: 1454
rpm-md repo 'updates-modular'; generated: 2022-12-02T00:39:09Z solvables: 1455
rpm-md repo 'updates'; generated: 2022-12-06T01:25:47Z solvables: 11536
rpm-md repo 'fedora'; generated: 2022-11-10T09:30:00Z solvables: 66822
rpm-md repo 'copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next'; generated: 2022-12-06T20:10:35Z solvables: 888
rpm-md repo 'updates-archive'; generated: 2022-12-06T02:10:18Z solvables: 10266
Resolving dependencies... done
Will download: 4 packages (14.0 MB)
Downloading from 'copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next'... done
Importing packages... done
Applying 4 overrides and 1 overlay
Processing packages... done
Running pre scripts... done
Running post scripts... done
Running posttrans scripts... done
Writing rpmdb... done
Writing OSTree commit... done
Staging deployment... done
Upgraded:
  containers-common 4:1-73.fc37 -> 4:1-79.fc37
  containers-common-extra 4:1-73.fc37 -> 4:1-79.fc37
  podman 4:4.3.1-1.fc37 -> 101:0.0.git.17339.73e6539f-1.fc37
Removed:
  podman-plugins-4:4.3.1-1.fc37.x86_64
Added:
  podman-quadlet-101:0.0.git.17339.73e6539f-1.fc37.x86_64

To see what is happening in a Container build:

$ cat Dockerfile.fcos-podman-next
FROM quay.io/fedora/fedora-coreos:testing
RUN cd /etc/yum.repos.d/ && \
    curl -LO https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-37/rhcontainerbot-podman-next-fedora-37.repo && \
    rpm-ostree override replace --experimental \
        --from repo=copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next \
        podman containers-common containers-common-extra \
        --remove podman-plugins --install podman-quadlet && \
    rpm-ostree cleanup -m && \
    ostree container commit


$ podman build --no-cache -t quay.io/dustymabe/fcos-podman-next:testing -f Dockerfile.fcos-podman-next 
STEP 1/2: FROM quay.io/fedora/fedora-coreos:testing
STEP 2/2: RUN cd /etc/yum.repos.d/ &&     curl -LO https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-37/rhcontainerbot-podman-next-fedora-37.repo &&     rpm-ostree override replace --experimental         --from repo=copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next         podman containers-common containers-common-extra         --remove podman-plugins --install podman-quadlet &&     rpm-ostree cleanup -m &&     ostree container commit
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   420  100   420    0     0    904      0 --:--:-- --:--:-- --:--:--   903
Enabled rpm-md repositories: copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next updates-modular updates fedora-cisco-openh264 fedora-modular fedora updates-archive
Updating metadata for 'copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next'...done
Updating metadata for 'updates-modular'...done
Updating metadata for 'updates'...done
Updating metadata for 'fedora-cisco-openh264'...done
Updating metadata for 'fedora-modular'...done
Updating metadata for 'fedora'...done
Updating metadata for 'updates-archive'...done
Importing rpm-md...done
rpm-md repo 'copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next'; generated: 2022-12-06T20:10:35Z solvables: 888
rpm-md repo 'updates-modular'; generated: 2022-12-02T00:39:09Z solvables: 1455
rpm-md repo 'updates'; generated: 2022-12-06T01:25:47Z solvables: 11536
rpm-md repo 'fedora-cisco-openh264'; generated: 2022-10-06T11:01:40Z solvables: 4
rpm-md repo 'fedora-modular'; generated: 2022-11-10T09:23:24Z solvables: 1454
rpm-md repo 'fedora'; generated: 2022-11-10T09:30:00Z solvables: 66822
rpm-md repo 'updates-archive'; generated: 2022-12-06T02:10:18Z solvables: 10266
Resolving dependencies...done
Will download: 3 packages (13.2?MB)
Downloading from 'copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next'...done
Installing 3 packages:
  containers-common-4:1-79.fc37.noarch (copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next)
  containers-common-extra-4:1-79.fc37.noarch (copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next)
  podman-101:0.0.git.17339.73e6539f-1.fc37.x86_64 (copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next)
Removing 1 packages:
  podman-plugins-4:4.3.1-1.fc37.x86_64 (@System)
Updating: containers-common;4:1-79.fc37;noarch;copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next
Updating: containers-common-extra;4:1-79.fc37;noarch;copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next
Updating: podman;101:0.0.git.17339.73e6539f-1.fc37;x86_64;copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next
Cleanup: podman;4:4.3.1-1.fc37;x86_64;installed
Cleanup: containers-common-extra;4:1-73.fc37;noarch;installed
Cleanup: containers-common;4:1-73.fc37;noarch;installed
Removing: podman-plugins;4:4.3.1-1.fc37;x86_64;installed
COMMIT quay.io/dustymabe/fcos-podman-next:testing
--> b5df09b651f
Successfully tagged quay.io/dustymabe/fcos-podman-next:testing
b5df09b651ffbef1bb7ca199a674470495e00f2cec2553422bb50fe89bd1b486
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant