-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
systests: fixes for coping with extra systemd image #18762
Conversation
We _usually_ have only one image in store, $IMAGE, but it's perfectly fine to also have $SYSTEMD_IMAGE also. Fix a few tests so they can handle that condition. And, cleanup: - remove a no-longer-useful test ("podman load NEWNAME", functionality that was removed 2+ years ago in containers#8877) - reorder some tests in the image-mount test, to make them safer and easier to understand - use no-such-image, not no-such-container, in image-mount test. Computer don't care, but this human felt confused for a sec. Signed-off-by: Ed Santiago <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago 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 |
The current way of bind mounting the host timezone file has problems. Because /etc/localtime in the image may exist and is a symlink under /usr/share/zoneinfo it will overwrite the targetfile. That confuses timezone parses especially java where this approach does not work at all. So we end up with an link which does not reflect the actual truth. The better way is to just change the symlink in the image like it is done on the host. However because not all images ship tzdata we cannot rely on that either. So now we do both, when tzdata is installed then use the symlink and if not we keep the current way of copying the host timezone file in the container to /etc/localtime. Also note that we need to rebuild the systemd image to include tzdata in order to test this as our images do not contain the tzdata by default. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2149876 Signed-off-by: Paul Holzinger <[email protected]>
DO NOT MERGE: I cherrypicked #18756 to see how tests go. |
Failures, but they smell like registry flakes so I've restarted them and am going to sleep. @Luap99 if any part of the first commit is useful to you, feel free to grab it. |
Closing in favor of #18756 |
We usually have only one image in store, $IMAGE, but it's
perfectly fine to also have $SYSTEMD_IMAGE also. Fix a few
tests so they can handle that condition.
And, cleanup:
functionality that was removed 2+ years ago in Remove the ability to use [name:tag] in podman load command #8877)
them safer and easier to understand
Computer don't care, but this human felt confused for a sec.
Signed-off-by: Ed Santiago [email protected]