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

[v0.61] Some backports #2268

Merged
merged 4 commits into from
Dec 17, 2024
Merged

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Dec 9, 2024

Backports of #2250
#2258
#2256
#2265

Luap99 and others added 4 commits December 9, 2024 15:09
These images can and will change at any time and thus can break our CI
without any external changes which is very bad. The TestPush test is
failing because it expects two not one image as it converts from docker
to oci on push. However the upstream docker.io/library/alpine was
switched to an oci image thus the test started failing as the local
storage now has the same id and just stores two different tags for the
same image.

Switch to our own controlled quay.io images where possible. This is
neither complete nor do I fully understand the tests here. I did a quick
search and replace and will see what works or not.

Signed-off-by: Paul Holzinger <[email protected]>
(cherry picked from commit 97d2614)
Starting with pasta 2024_11_27.c0fbc7e there is new "local mode"[1] in
pasta that defaults to setting up link local addresses in the netns when
no suitable interface was found. this is done to fix the podman issue[2]
where we fail to start in these cases which was a poor UX. Now the pasta
change alone works fine for these users but there is one problem.

Podman adds hosts entries for the container ip/name tuple and for the
host.containers.internal. These entries are filtered out thus neither
ipv4 or ipv6 bool was set and no addresses where added to IPAddresses.
Thus podman had no info to add entries and just left them empty, while
for most cases this is fine there might be a few users who expect
host.containers.internal and the container name to resolve correctly.

This commit changes the logic to only skip ipv6 link local addresses but
allow ipv4 link local addresses. With that podman will add the proper
entry.

[1] https://archives.passt.top/passt-dev/[email protected]/
[2] containers/podman#24614

Signed-off-by: Paul Holzinger <[email protected]>
(cherry picked from commit 0b0b18e)
Using the path package is not correct on windows as it always defaults
to the "/" as path separator. Instead one must use the filepath package.

Fixes containers/podman#24616

Signed-off-by: Paul Holzinger <[email protected]>
(cherry picked from commit 512cfbd)
In some cases if /etc/ is mounted read-only the non-existence
of the `/etc/containers/networks` directory will cause basic
functionality to fail.

```
bash-5.2# mount --bind -o ro /etc/containers/ /etc/containers/
bash-5.2# podman info
Error: mkdir /etc/containers/networks: read-only file system
```

Since it's going to get created anyway let's just have the
directory exist from the beginning.

Signed-off-by: Dusty Mabe <[email protected]>
(cherry picked from commit 9f2002b)
Copy link
Contributor

openshift-ci bot commented Dec 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Dec 9, 2024
@Luap99
Copy link
Member Author

Luap99 commented Dec 9, 2024

cc @TomSweeneyRedHat

@TomSweeneyRedHat
Copy link
Member

LGTM
and happy green test buttons.

@rhatdan
Copy link
Member

rhatdan commented Dec 17, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 17, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 4973cc1 into containers:v0.61 Dec 17, 2024
12 checks passed
@Luap99 Luap99 deleted the v0.61-bckports branch December 19, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants